I have an application that will be deployed as an MSI package (created on WiX).
I decide whether to specify elevated or limited privileges required by the installer.
The application does not contain anything that requires elevated privileges, except for the default installation location, which is located in the "Program Files" section.
Now the problem is:
If I specify elevated privileges , the user asks for UAC for the administrator password during installation. This is not required and prevents the installation of non-admin users.
If I specify limited privileges , then the user will be presented with a dialog box for choosing the installation location with Program Files by default. If they do not change the installation location (95% of the end users probably will not), then the installer will complete with a message that he must contact the administrator or run the application as administrator. If they run the installer as an administrator, then they can easily install them in Program Files, but most users probably do not know how to run the installer as an administrator.
I can potentially set the default installation location, for example, C: \ Company name \ Program \, but it seems to me non-standard, and most users will not like it (they are probably used for installation in Program Files).
How do you solve this problem when installing applications under limited user accounts?
installer windows-installer uac privileges
Marek
source share