MSI Factory 2.3

Create Environment Variable

Create Environment Variable

Previous topic Next topic  

Create Environment Variable

Previous topic Next topic  

MSI Factory

Variable name:

The name of the environment variable to create.

Value:

The value to write (or append/prepend) to the environment variable. You can use folder references and properties here. Right-click on the field and choose Insert from the context menu to see a list of items that can be inserted. For example, to set an environment variable to your installation folder, specify "[INSTALLDIR]."

Separator:

Optional attribute to change the separator used between values. By default a semicolon is used.

If value exists:

What to do if the environment variable is already defined and has a value during installation. Choose from:

Overwrite - Overwrite the existing value with this new one.

Prepend - Prepend the value to the existing value using the Separator to separate items.

Append - Append the value to the existing value using the Separator to separate items.

Leave - Leave the existing value unmodified.

System wide

If checked, the environment variable will be set for all users on the system. If unchecked, the environment variable will only be defined for the current user.

Permanent

If checked, the environment variable will not be removed on uninstall. If unchecked, the environment variable will be removed during uninstall. Always leave this value unchecked if you are modifying a common system environment variable such as PATH.

More Information

MSDN Online: Environment Table

WiX Help File: Environment Element


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us