We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

NidecDev
Posts: 1
Joined: Mon Oct 12, 2015 7:11 pm

Deploying msi to non administrative user does not set Administative flag

To whomever it may concern:

I am having an issue with my target machine who has users that are non administrators. In my installer, I set the executable to have Administrator privileges. Nonetheless, when I deploy to windows 7, and windows 8, the administrative privileges are not set. The deployment works fine as long as the user is an administrator. Please point me in the right direction, by letting me know where to look in the documentation , or provide and example on how to ensure that administrative privileges are always set.

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Deploying msi to non administrative user does not set Administative flag

Hello and welcome to Advanced Installer forums,

Please keep in mind that any tasks that require administrator privileges will trigger the UAC prompt (if UAC is enabled) and the user will have to enter its credentials. You cannot prevent the UAC dialog from appearing when you perform a per-machine installation. Only if you install a package per-user you can skip showing this dialog.

If the UAC is off then it will not be any prompt to enter admin credentials.
If the UAC is off then the installation will be launched with the current log-on user right. If the log on user is a guest and the installer require administrator privileges then the installation will fail because it doesn't have sufficient privileges to complete this installation for all users of the machine.

You can take a look on the User Account Control article which may be useful to you.

If you want to request admin privileges up front before starting the installer, you can enable the Run as administrator option in the Install Parameters page. If you don't have this option enabled, the user will be prompted by the UAC (if UAC is enabled) when the Install button is pressed. Of course, the installation type from the Install Parameters page should be set to a Per-Machine installation type or a Per-user only (with administrator rights required) installation type.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”