Mark MSI so it has to be run as elevated Administrator account

后端 未结 3 1626
醉梦人生
醉梦人生 2020-12-07 21:29

I have a CustomAction as part of an MSI.

It MUST run as a domain account that is also a member of the local Administrators account.

It can\'t use the NoImper

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 21:48

    requireAdministrator in the manifest should work.

    You can also use a bootloader .exe file which can use ShellExecute with "RUNAS" as the verb (you can use 7-zip to create the bootloader, or there are many other ways).

提交回复
热议问题