Windows Installer Editor Reference
358
Working With Source Paths
To create a path variable based on an environment variable
1. Select Installation Expert > Path Variables page.
2. Click Add at the right of the page and select Environment Path Variable.
The Environment Variable Path Variable Details dialog box appears.
3. Complete the dialog box:
Variable Name
Enter any name, but do not use special characters or spaces. Because this is not
a Windows Installer property, you do not need to follow Windows Installer
property naming conventions. This variable is inserted into the paths of files
that are pulled from the directory that appears in Current Value.
Current Value
(Read-only) This displays the current value of the environment variable you
select below.
Env. Variable
This list contains the environment variables that are currently defined on your
computer. Select an environment variable that contains a directory path.
Replace When Matched
Mark this to activate this path variable. If this is cleared, this path variable has
no effect on files you add to the installation.
4. Click OK.
See also:
About Path Variables
on page 356
Creating a Path Variable Based on a Registry Value
You can create a path variable that is set to a registry value.
When a registry path value is displayed on the Path Variables page, a double slash
precedes the value name. This is normal. (You might have to scroll to the right to see
this value in the Defined Value column.)
To create a path variable based on a registry value
1. Select Installation Expert > Path Variables page.
2. Click Add at the right of the page and select Registry Path Variable.
The Registry Path Variable Details dialog box appears.
3. Complete the dialog box:
Variable Name
Enter any name, but do not use special characters or spaces. Because this is not
a Windows Installer property, you do not need to follow Windows Installer
property naming conventions. This variable is inserted into the paths of files
that are pulled from the directory that appears in Current Value.
Current Value
(Read-only.) This shows the current data of the registry value specified below.