lynnbt
Posts: 1
Joined: Sat Dec 20, 2008 9:57 am

Prereqs that require admin?

How is this scenario handled by Advanced Installer?

I have a MSI that does not require admin to be installed (it's always installer per user) ... however, it has prereqs (like the .NET framework) that do require admin. So ideally, when a non-admin launches my installer I want the following to happen:

* It detects the prereq is not installed
* It detects the current user is not admin and prompts for admin credentials
* It runs the prereq as admin using these credentials
* After running the prereq it reverts back to the non-admin credentials
* It runs the MSI as the non-admin

I need this to be supported on pre-Vista (XP) machines using Windows Installer 3.1 ... does Advanced Installer support this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Prereqs that require admin?

Hi,

Please note that Advanced Installer can control only the installation package. Therefore, for the entire package you can set only one installation type (with Administrator privileges or without them). If one of the prerequisites requires Administrator privileges, its package is responsible for handling the installation on a non-Admin user account.

A workaround would be to use Launch file as Administrator custom actions for the prerequisites which need Administrator privileges.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”