
Windows Installer Editor Reference
153
Assembling an Installation
Show Window
Select whether the target file opens in a normal, minimized, or maximized
window.
Advertised
Mark this to have the shortcut appear on the destination computer regardless of
whether its target is installed or advertised. When the end user opens an
advertised shortcut, installation of the target .EXE file is started. If you clear
this check box, the shortcut appears only if its target is installed, but not if its
target is advertised. You can select a new feature or icon only if this check box
is marked.
Feature
To associate this feature with a different shortcut, select the feature. Because
non-advertised shortcuts cannot be associated with a feature, this field is
enabled for advertised shortcuts only.
3. To select a new icon, click New Icon and specify the icon.
4. Click OK.
Adding an Environment Variable
You can add, edit, and delete environment variables and values to be set by the
operating system on the destination computer. You can add environment variables from
Installation Expert or Setup Editor.
To add an environment variable
1. Do one of the following:
Select Installation Expert > Environment Variables page.
a. From Current Feature, select a feature or condition. (Because any item you
add must be assigned to a specific feature, you cannot add an item when All
Features is selected.)
b. Click Add at the right of the page.
In Setup Editor, on the Components or Features tab, right-click a component or
feature and select New > Environment Variable.
The Environment Variable Details dialog box appears.
2. Complete the dialog box:
Name
Enter a name for the environment variable.
Value
Enter a value for the environment variable.
Note
To read the value of an existing environment variable into a property, use the
Set Property type of custom action to read it into a property. Enter
[%ENVIRONMENT_VARIABLE_NAME] in the Property Value field on the Details
tab of the Set Property dialog box while making the action (brackets required).
Operation
Specify how to handle the variable during installation and uninstallation.