I have an MSI installer built with Wix. It does not require elevated privileges, having ALLUSERS=2 and MSIINSTALLPERUSER=1. It works fine in the user unteractive mode, but fails when launched from a non-elevated command prompt in the silent (/qn) or passive (/passive) mode.
The error in the log appearing straight after "Action start: InstallFinalize":
Error 1925. You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and then retry this installation.
Interestingly, if I run the installer from an admin command prompt in the silent mode, it succeeds. It installs into the per-user folder and writes registry to HKCU as expected, but when I uninstall it, it triggers the UAC elevation prompt, which suggests that there's some component there that has been installed per-machine, rather than per-user. Again, this does not happen if it was installed in the user-interactive mode.
Any help will be much appreciated.
InstallScope
in thePackage element
? Are all your folders per-user? In the compiled MSI, what is the word count value? I don't have Orca available right now, but it should be in the Summary Information Stream. AreALLUSERS
andMSIINSTALLPERUSER
defined in the property table? (just checking). What WiX GUI dialog set do you use? - Stein ÅsmulInstallScope
on the Package element to anything because it setsALLUSERS
to either nothing or 1, but I need it to be 2 for the dual-purpose MSI. So I setALLUSERS
to 2 via a Property element. TheInstallPrivileges
attribute isn't set to anything either, so it defaults to 'elevated'. Otherwise, the user cannot choose to install per-machine. I use the WixUI_Advanced dialog set. - igorsp7