set “run as administrator” flag programmatically

后端 未结 1 1627
独厮守ぢ
独厮守ぢ 2020-12-21 05:20

Is it possible to programmatically set the \"Run As Administrator\" flag on exe file or shortcut file?

Does Installshield support this functionality if i\'ll do it a

相关标签:
1条回答
  • 2020-12-21 05:40

    The upstream build process should be manifesting your EXE with the require administrator attribute. This doesn't have anything to do with InstallShield or the shortcut. Done correctly when the user clicks the shortcut, Windows will see the manifest and UAC will prompt for elevation.

    0 讨论(0)
提交回复
热议问题