Jump to content


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.
Photo

Admin Rights before Installation ?


2 replies to this topic

rkjain

rkjain
  • Members
  • 4 posts

Posted 31 July 2002 - 07:22

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

Schelli

Schelli
  • Members
  • 8 posts

Posted 31 July 2002 - 08:14

Hello,

You can use this:

nResult = Is(USER_ADMINISTRATOR, "");

take this in the OnBegin event.
Jens

EberhardH

EberhardH
  • Members
  • 137 posts

Posted 31 July 2002 - 09:55

Hi,

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