Require Administrator priviledges for installation
Posted: 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
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