AdminUser

Reference information
Applies to Tarma Installer, Windows Installer
Related topics ALLUSERS, Privileged, TsuInstallLevel, System information variables

Description

The installer sets this variable to a nonzero value if the installer runs under an account with Administrator privileges; it is not set (or set to 0) if the account does not have Administrator privileges.

This only applies to Windows NT-based systems (Windows NT4, 2000, XP, 2003, and later); on Windows 9x-based systems (Windows 95, 98, and Me), this variable is always set to a nonzero value because all users have unrestricted access on those systems.

MSI Windows installer sets or does not set this variable, depending on the situation. If set, its value is unspecified.

Tarma note Tarma Installer always sets this variable, to either zero or a nonzero value.

Usage

Usage
How to set Set automatically by the installer.
How to use

You can refer to this variable as <AdminUser> (Tarma native syntax, preferred) or [AdminUser] (Windows Installer syntax). In conditional expressions you can omit the brackets and simply use AdminUser as a test for Administrator privileges.