Setup Environment Variables via Edit Window in Installation Package

Setup Environment Variables via Edit Window in Installation Package

Jason Lv8

Setup Environment Variables via Edit Window in Installation Package

Table of Contents

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

Edit Environment Variable Dialog - Installer Project

In this dialog you can edit the properties of a new environment variable or change the properties of an already existing one.

Edit Environment Variable dialog

General

Name

The environment variable’s name. You can localize this value.

Value

The environment variable’s content. This field is of Formatted Type and can be edited using Smart Edit Control . You can localize this value.

https://techidaily.com

Component

The component which will contain the environment variable. When this component is installed the environment variable is created. Also, the variable is removed when the component is uninstalled.

Adding and Removing

On Install

The following operations can be performed on an environment variable when the package is installed:

  • Create or update
  • Create only if it doesn’t exist
  • Remove
https://techidaily.com

Remove on uninstall

This checkbox will make the Windows Installer remove the environment variable when the package is uninstalled.

NoteDuring an uninstall Windows Installer will remove only what it added. If a value was appended to an existing environment variable, only that value will be removed (not the entire variable).

https://techidaily.com

System variable

If the target Windows operating system is based on NT technology, enabling this option will set the environment variable as a system variable. If this option is disabled the variable is installed as a normal environment variable instead.

When Existing

If the variable already exists on the target machine, you can choose the way in which the existing variable’s content modifies:

  • Replace
  • Append
  • Prepend

In the last two cases (append, prepend) you can choose the character that will be the separator between the existing value and new one.

Did you find this page useful?

Please give it a rating:

Thanks!

Report a problem on this page

Information is incorrect or missing

Information is unclear or confusing

Something else

Can you tell us what’s wrong?

Send message

Also read:

  • Title: Setup Environment Variables via Edit Window in Installation Package
  • Author: Jason
  • Created at : 2024-10-05 18:39:14
  • Updated at : 2024-10-10 19:48:33
  • Link: https://fox-useful.techidaily.com/setup-environment-variables-via-edit-window-in-installation-package/
  • License: This work is licensed under CC BY-NC-SA 4.0.