I need to verify, before installing, that the current user is the Administrator.
is there a way to do this?
Xavier
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.

Identify the user who tryies to install
Started by
xguzman
, Apr 30 2004 16:35
1 reply to this topic
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
Thomas