How to determine if the User has Admin Rights before I proceed with Installation.
I believe there is certain Registry entry which would determine if the user has Admin Rights or Not.
Any help on this would be appreciated.
Thanks
Rakesh
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Admin Rights before Installation ?
Started by
rkjain
, Jul 31 2002 07:22
2 replies to this topic
Posted 31 July 2002 - 08:14
Hello,
You can use this:
nResult = Is(USER_ADMINISTRATOR, "");
take this in the OnBegin event.
You can use this:
nResult = Is(USER_ADMINISTRATOR, "");
take this in the OnBegin event.
Jens
Posted 31 July 2002 - 09:55
Hi,
another solution: call (in the OnBegin section)
It will return TRUE if user logged in as admin, otherwise FALSE. The ".WINNT" addresses not only NT, but Win2K etc. as well.
Eberhard
another solution: call (in the OnBegin section)
Code Sample |
nReturn = SYSINFO.WINNT.bAdmin_Logged_On; |
It will return TRUE if user logged in as admin, otherwise FALSE. The ".WINNT" addresses not only NT, but Win2K etc. as well.
Eberhard