Oxygen vacancies (Vo) can significantly degrade the electrical properties of indium oxide (In2O3) thin films, thus limiting their application in the field of ultraviolet detection. In this work, the Vo is effectively suppressed by adjusting the Trimethylindium (TMIn) flow rate (fTMIn). In addition, with the reduction of the fTMIn, the background carrier concentration and the roughness of the film decrease gradually. And a smooth In2O3 thin film with roughness of 0.44 nm is obtained when the fTMIn is 5 sccm. The MSM photodetectors (PDs) are constructed based on In2O3 thin films with different fTMIn to investigate the opto-electric characteristics of the films. The dark current of the PDs is significantly reduced by five orders from 100 mA to 0.28 μA with the reduction of the fTMIn from 50 sccm to 5 sccm. In addition, the photo response capacity of PDs is dramatically enhanced. The photo-to-dark current ratio (PDCR) increases from 0 to 2589. Finally, the PD with the fTMIn of 5 sccm possesses a record-high responsivity of 2.53 × 103 AW−1, a high detectivity of 5.43 × 107 Jones and a high EQE of 9383 × 100%. Our work provides an important reference for the fabrication of high-sensitivity UV PDs.