View Full Version : Administrator privilege check - Install Script poject

07-04-2005, 07:53 AM
I am using InstallShield 10.5 and I have a Install Script based project.

I want to make sure that my application gets installed only if the user has administrative privilege?

Can we put this check as installation condition for an Install Script Project in General Information -> Product Properties as we do in InstallScript MSI Project or we have to put this check in a script file only?

Thanks in Advance

07-04-2005, 08:31 AM
Its easy via script:
/* Check Admin */
if (SYSINFO.WINNT.bAdmin_Logged_On != TRUE) then
MessageBox("Only a user with Administrator privileges can run this installation.\nCurrent user does not have this privilege.",SEVERE);