Make UAC optional in Windows Installer on Vista

前端 未结 3 1144
醉话见心
醉话见心 2021-01-17 09:47

I\'m have written an msi file that offers a choice of \"per-user\" or \"for all\" installation in the UI phase, and now find that the installer fails on Vista:

相关标签:
3条回答
  • 2021-01-17 09:57

    Try this reference: UAC in MSI Notes: How to Build Packages that work for both Standard User and Per-Machine?

    0 讨论(0)
  • 2021-01-17 10:03

    Unfortunately, the Windows Installer does not provide a way to create a single package that can install per-machine and per-user but only prompt for UAC on the per-machine case. The issue is that the bit that can suppress the UAC prompt is stored in the SummaryInformation stream and is not modifiable while the package is executing.

    0 讨论(0)
  • 2021-01-17 10:09

    I turned off UAC by setting the bit 3 of PID_WORDCOUNT in my MSI package. I can able to install it for "ALLUSERS" and "PER-USER", and also write in for HKLM in both the modes on VISTA machines. Is it mandatory for you to get UAC popup for privileged user during installation?

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