Skip to main content

Environment Variables

The Environment Variables view lists all environment variables in the MSI and lets you review, edit, or add them.

Master packager Advanced Editor - Environment Variables view

Fields

FieldDescription
NameSets the environment variable name.
ValueSets the environment variable value. It can contain plain text or reference MSI properties such as [PROPERTY].
ComponentDefines which component installs the environment variable.
TypeDefines whether the environment variable is installed for all users or for a specific user.
note

Every environment variable in an MSI must belong to a component.

Action on install

Choose what should happen to the environment variable during installation.

Master packager Advanced Editor - Environment Variables - Action On Install

OptionDescription
Create or UpdateAdds a new environment variable or updates the value if it already exists.
Create if does not existAdds the environment variable only if it is not already present on the system.
RemoveDeletes the environment variable during installation.

Action on uninstall

Choose what should happen during uninstallation.

Master packager Advanced Editor - Environment Variables - Action On Uninstall

OptionDescription
RemoveDeletes the environment variable during uninstall.
LeaveKeeps the environment variable unchanged during uninstall.

Replacement behavior

Choose how the environment variable should be modified during installation.

Master packager Advanced Editor - Environment Variables - Replacement

OptionDescription
Append at end of current value (default)Adds the new value to the end of the existing content.
Replace current valueOverwrites the existing value completely.
Insert at beginning of current valueAdds the new value to the start of the existing content.

Variable type

OptionDescription
System (default)Installs the environment variable for all users.
UserInstalls the environment variable for a specific user.