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

Identify the user who tryies to install


1 reply to this topic

xguzman

xguzman
  • Members
  • 1 posts

Posted 30 April 2004 - 16:35

I need to verify, before installing, that the current user is the Administrator.
is there a way to do this?

Xavier

Perotin

Perotin
  • Full Members
  • 407 posts

Posted 03 May 2004 - 12:50

InstallShield Knowledgebase is your friend and tells
QUOTE
How do I detect administrator privileges?

InstallScript

In InstallScript, the expression SYSINFO.WINNT.bAdmin_Logged_On returns TRUE if the user has administrator privileges. (The expression Is(USER_ADMINISTRATOR, "") returns the same information.)

Note that these expressions return TRUE on Windows 9x.

MSI

The AdminUser property is set if the user running your installation program has administrator privileges. Therefore, you can use “AdminUser” as an Install Condition, or a condition on a feature, component, or custom action.

The AdminUser property is always set on Windows 9x.


Gruß / regards
Thomas