WiX installer should always run as administrator

前端 未结 3 1986
庸人自扰
庸人自扰 2020-12-31 05:51

I developed a custom installer with WiX for a .NET WPF application. It works fine if I right-click and run as administrator, however when running without, some components fa

3条回答
  •  渐次进展
    2020-12-31 06:23

    Add this to your package element

        
     
    
    
          Privileged
    
    

    Then creating a simple sfx archive file for msi file with Winrar and these options:

    • Setup tab > Run after execution input: your msi file name

    • Advanced tab > Mark Request Administrative access option checkbox

提交回复
热议问题