How to have Setup request Admin credentials

Got a problem you cannot solve? Try here.
Post Reply
PhillipTaylor
Posts: 2
Joined: Thu Apr 19, 2007 12:01 am

How to have Setup request Admin credentials

Post by PhillipTaylor »

Hi There

I've created a setup.exe with Administrative Privileges ticked. However, when I run this application as a standard user on Windows Vista it does not request Administrator credentials to continue, but merely displays a message that administrator rights are required and then exits. It would be preferable in our deployment scenario if the setup requested the credentials and then continued.

How does one achieve this? I suspect Installaware is actually asking for an executionLevel of HighestAvailable inside the manifest of the setup. Is there a way to provide a different manifest for the MSI and the Setup so that I can change it to requireAdministrator?

Phillip Taylor

PS. FYI, Privileges is misspelled in InstallAware.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

This is by design. If an admin is available, you can always "Run As". If admin was always required, then ordinary users would not be able to install at all. Add a check for admin rights to your script if you wish to disallow regular user installs - its a single checkbox in the visual IDE.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
PhillipTaylor
Posts: 2
Joined: Thu Apr 19, 2007 12:01 am

Post by PhillipTaylor »

Ok Mike, thanks for the confirmation. I note that Installshield provides the capability to change the manifest, which is a bit more flexible I think.

Regards

Phillip Taylor
ken rentz
Posts: 71
Joined: Mon Jan 23, 2006 5:33 pm
Contact:

Post by ken rentz »

I'd also like the ability to change the manifest. For most of the installs that we do, I know that Admin privileges are needed. In addition, our installations are supplied on CD with auto-run enabled. This makes the 'run as' option a lot less convenient, since the first thing that will happen upon CD insertion is that it fails the administrator test. The user then needs to open the CD, browse to the executable among all of the other files, and perform the run as option. while I and most of the people in this forum, could do this in their sleep, our target market tends to be a lot less computer savvy.
BrandonK
Posts: 27
Joined: Mon Jul 24, 2006 1:32 pm

Post by BrandonK »

+1 to the requests for this enhancement.

My situation is identical to Ken's (non-computer savvy users, demo CD with autorun). Demo users simply will not know that they have to do this, much less jump through the hoops you describe; they'll just not install the demo.
Post Reply