cpinstall
Posts: 19
Joined: Thu Jun 08, 2006 4:00 pm

Prompt to run as administrator

When running the installer .exe file as a user with limited privileges, following error message, is there a way to prompt the user for an administrator username and password for an account to perform the install?

I've seen this from other installers.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

On Windows Vista you can do this by using the "Per User (with administrator rights required)" or the "Per Machine" option in the "Install Parameters" page.

When using these settings, if the user which runs the installation does not have enough privileges he will be prompted by the UAC to log on as an administrator.

You can read more about this feature here:
http://www.advancedinstaller.com/user-g ... eters.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cpinstall
Posts: 19
Joined: Thu Jun 08, 2006 4:00 pm

Sorry for not being clear. I am referring to Windows XP.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that this is not possible because it is not supported by Windows XP. On Windows Vista this is managed by the User Account Control.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cpinstall
Posts: 19
Joined: Thu Jun 08, 2006 4:00 pm

cosmin wrote:Hi,

I'm afraid that this is not possible because it is not supported by Windows XP. On Windows Vista this is managed by the User Account Control.

Regards,
Cosmin
I just tried installing the Adobe Acrobat Professional trial version as a limited user on Windows XP. After extraction, it prompted me for an administrator user and password for installation.

Here is a screenshot of the prompt:
http://img49.imageshack.us/my.php?image ... 250tb4.png

Isn't this a standard Windows prompt? I've seen something like this before when trying to install other software.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
Isn't this a standard Windows prompt? I've seen something like this before when trying to install other software.
Please note that this is a custom dialog created by the EXE installation package of Adobe Acrobat and it is not related to Windows Installer (the installation package is using a custom external User Interface).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cpinstall
Posts: 19
Joined: Thu Jun 08, 2006 4:00 pm

cosmin wrote:Hi,
Isn't this a standard Windows prompt? I've seen something like this before when trying to install other software.
Please note that this is a custom dialog created by the EXE installation package of Adobe Acrobat and it is not related to Windows Installer (the installation package is using a custom external User Interface).

Regards,
Cosmin
Is there a way to perform a similar thing with Advanced Installer using a Custom Action?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that this cannot be done with a custom action because it needs to be done before the actual installation starts.

The solution is to create your own EXE that displays a custom dialog, gets the required information, allows the user to log on as administrator and launches the MSI installation.

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

Return to “Common Problems”