| Reference information | |
|---|---|
| Applies to | Windows Installer |
| Related topics |
Tarma Installer does not use this variable; it uses the RegOwner variable instead. However, because USERNAME is defined as <RegOwner>, you can use it in Tarma Installer packages if compatibility with Windows Installer is required. Be sure to check its Save for Tarma box in the Product Variable attributes pane in that case. |
| External links | |
Public property that contains the name of the user performing the installation. (Actually, it is the name of the owner of the target system.)
| Usage | |
|---|---|
| How to set |
You can set this variable to a default value; if you leave it empty, Windows Installer will set it using information from the registry on the target system. You can suppress the latter by setting the NOUSERNAME variable. 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 <USERNAME> (Tarma native syntax, preferred) or [USERNAME] (Windows Installer syntax). |