How to have Setup request Admin credentials

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

How to have Setup request Admin credentials

Postby PhillipTaylor » Thu Apr 19, 2007 12:24 am

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:

Postby MichaelNesmith » Thu Apr 19, 2007 8:30 am

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

PhillipTaylor
Posts: 2
Joined: Thu Apr 19, 2007 12:01 am

Postby PhillipTaylor » Thu Apr 19, 2007 8:50 pm

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:

Postby ken rentz » Fri Apr 20, 2007 11:51 am

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

Postby BrandonK » Sun Jun 24, 2007 8:04 am

+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.


Return to “Technical Support”

Who is online

Users browsing this forum: Bing [Bot] and 65 guests