Require Administrator priviledges for installation

Got a problem you cannot solve? Try here.
stevew
Posts: 78
Joined: Tue Dec 06, 2005 2:01 am

Require Administrator priviledges for installation

Postby stevew » Thu Dec 29, 2005 8:52 pm

The old vendor setup for my software required Administrator or Power User priviledges to be installed. I was not using the Windows Installer engine. With Power User I was still able to write to HKEY_LOCAL_MACHINE so I always did a check for Admin or Power User.

With InstallAWARE, is the Power User a non issue since the Windows Installer engine is being used and always runs in priviledged mode? (is that a true question)

I wonder if this sample code is still necessary:

Get System Setting Administrator Rights into CHECKSYSTEM
if Variable CHECKSYSTEM not Equals TRUE
Set Variable CHECKPOWER to
Get System Setting Logged on User Priviledge Level into CHECKPOWER
if Variable CHECKPOWER Equals POWER
Set Variable CHECKSYSTEM to TRUE
end
end
if Variable CHECKSYSTEM not Equals TRUE
Terminate Installation
end

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Fri Dec 30, 2005 4:11 am

Hi

The answer is yes and no. The system administrator must have set the "Always Install Elevated" system policy to "true" using the Group Policy Editor. Then and only then will MSI do elevated privilege installs - otherwise, it will not automatically elevate privileges.

If you know that your setup will run in corporate lockdown environments where admins will control this policy, you can take that sample code out. If not, and you will be distributing your setup to end users (who are almost sure to be unaware of the Group Policy Editor, etc.), leave it in.

Hope that provides some guidance!
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 103 guests