How do I add my project's directory to the PATH system environment variable?
Refer to entries in the Directory table when adding directories to the PATH system environment variable. For example, consider an installation with a default directory of "Program Files\Example". The INSTALLDIR entry in the Directory table contains the path to the default directory.
To add the default directory in your installation to the PATH system environment variable:
- On the Environment Variables page in Installation Expert, select the Feature to add the PATH system environment variable from the Current Feature drop-down list.
- Click Add. The Environment Variable Details dialog appears.
- Complete the following fields on the Environment Variable Details dialog:
Click OK to close the Environment Variable Details dialog.
Save and compile your installation.
- Name: PATH
- Value: [INSTALLDIR]
- Operation: Set value on install and delete on uninstall.
- Replacement: Append at the end of current value.
- Windows NT/2000/XP system environment variable: Mark this checkbox.
After completing the steps above, your installation adds the default directory to the PATH system environment variable. During uninstall, Windows Installer removes the default directory from the PATH system environment variable.