PDA

View Full Version : providing Admin privlidges during install?



jcarto
06-21-2002, 11:36 AM
Can anyone tell me which products might allow the install package to upgrade a user to Admin during install and then
reduce them back to their normal privlidge afterwards?

I have several hundred users with no admin rights but they are all over North America. I need to be able to distribute apps to them on CD for them to execute. I will not be giving them admin passwords so they can do the install but still need Admin for the install to function.

I would be willing to embed the admin password somehow in the install (worst case).

Any ideas?

Mike Snyders
06-25-2002, 07:49 AM
Check out this link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/over_0kmr.asp

Does that meet your needs?

Mike Snyders
06-25-2002, 07:59 AM
Sorry, I gave you the wrong URL:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/over_2pwu.asp

jcarto
06-25-2002, 09:03 AM
Thank you,

That does help. It does however, look like the policy should have been set before hand, which of course is not the case here. But we can work that out for the future.

The question I was really trying to get answered was whether Install Shield had a feature for using elevated priviliges specifically?

I guess if not then we will have to rely on the MS implementation.

Regards
JC

jcarto
06-25-2002, 09:13 AM
Actually,

After reading a little further it looks as though a person might have to have Active Directory for this bug (I mean feature) to work.

Of course wouldn't you know it, we don't use active directory.

hmmmmm.

Mike Snyders
06-25-2002, 09:23 AM
Active Directory is not required. Only a couple of registry keys need to be set for all msi packages to run at elevated privilleges.

AlwaysInstallElevated
To always install a package with elevated (system) privileges, set the AlwaysInstallElevated value to "1" under both of the following registry keys.

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer

jcarto
06-25-2002, 11:16 AM
OK Mike,

Thank you for your help,

I will try this out!

JC