Which registry entry should I read which would enable me to determine whether I have admin rights to install or not.
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 - how to determine
Started by
rkjain
, Jun 18 2003 00:00
1 reply to this topic
Posted 18 June 2003 - 03:26
You don't use registry entries, just use a built-in function call. The code to do so would be the following:
CODE |
NUMBER nResult; STRING szMsg; nResult = Is(USER_ADMINISTRATOR,""); if (nResult = FALSE) then szMsg = "This install requires Administrator privileges.\n" + "Please login with such rights and try again."; Msg(szMsg, SEVERE); abort; endif; |