Page 1 of 1

How to have Setup request Admin credentials

Posted: Thu Apr 19, 2007 12:24 am
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.

Posted: Thu Apr 19, 2007 8:30 am
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.

Posted: Thu Apr 19, 2007 8:50 pm
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

Posted: Fri Apr 20, 2007 11:51 am
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.

Posted: Sun Jun 24, 2007 8:04 am
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.