| Reference information | |
|---|---|
| Applies to | Windows Installer |
| Related topics | AdminUser, Privileged. The corresponding variable in Tarma Installer is TsuInstallLevel. |
| External links | |
Public property that indicates whether an All Users or current user installation must be performed.
| ALLUSERS value | Description |
|---|---|
| (not set) |
Always perform a Current User installation. This will redirect the All Users folders and registry keys to their Current User equivalent. As a result, your product will only be accessible to the user who performed the installation, and any shortcuts will only be visible to that user. See Standard folders for more information about folder redirection. |
| 1 |
Always perform an All Users installation. No redirection of folders or registry keys takes place and your product will be accessible to all users on the system. If the installing user does not hold the privileges for an All Users installation (the user must be a member of the Administrators group for an All Users installation with Windows Installer), the installer will display a warning prior to installation and will refuse to install. |
| 2 | Perform an All Users installation if possible, or fall back automatically to a Current User installation if the installing user account does not hold the required privileges. |
| Usage | |
|---|---|
| How to set | Do not set this variable directly; instead use the Installation level attribute on the Windows Installer Installer Options project page. However, because this is a public property, you can also set it on the installer's command line. |
| How to use | You can refer to this variable as <ALLUSERS> (Tarma native syntax, preferred) or [ALLUSERS] (Windows Installer syntax). In conditional expressions you can omit the brackets and simply use ALLUSERS (or ALLUSERS = 1) as a test for an All Users installation. |