How to create a shortcut to launch an App with admin privileges from the cmd-line?

后端 未结 4 632
死守一世寂寞
死守一世寂寞 2021-01-02 06:19

I have an installer (Inno-Setup) that installs my application to a path defined by the user. At the end of the install routine i want to create a shortcut that starts the ap

4条回答
  •  长发绾君心
    2021-01-02 06:48

    After creating the shortcut, change its 21st byte (position 0x15) to 32 (0x20) to make it "Run as Administrator". Changing it back to 0 makes it a "normal" (non-admin) shortcut.

提交回复
热议问题