Executing a custom action that requires elevation after install

后端 未结 2 1354
别跟我提以往
别跟我提以往 2021-01-12 18:40

I have the following WiX snippet:




        
2条回答
  •  梦毁少年i
    2021-01-12 19:01

    FYI, Immediate custom actions are ALWAYS impersonated (i.e. they always run as the user who executes the MSI).

    I like Michael Urman's idea regarding making your Configurator.exe handle the elevation issue.

    I wonder if you could also just include a manifest in your EXE so that the OS knows elevation is always required.

提交回复
热议问题