Windows Installer Editor Reference
169
Assembling an Installation
file name, enter a value of [#MyApp.exe].) For information about formatted
text strings, see Formatted and Registry Table in the Windows Installer SDK
Help.
Data Type
Select the type of data contained in the named value.
The associated Windows API data types are in parentheses below.
String
(REG_SZ) Identifies the value as an expandable string. To include a
property, enclose the property name in square brackets.
Unexpanded string
(REG_EXPAND_SZ) Identifies the value as a string that contains
unexpanded references to environment variables that are expanded when
the value is retrieved. Enclose the environment variables in single percent
signs. For example, %PATH%.
If you do not want the variable to be expanded, enclose it in double percent
signs. For example, %%WIN%%. This allows Windows system variables to
be embedded.
Double word
(REG_DWORD) Identifies the value as a 32-bit number in decimal notation.
Binary / Hex
(REG_BINARY) Identifies the value as a binary in hexadecimal notation. Do
not use spaces, commas, or other characters to separate the bytes.
Example: AD30C0A94020A8FC4C0008.
3. Click OK.
Setting Permissions for Registry Keys
Use the Registry Key Permissions dialog box to set permissions to protect your
application’s registries against accidental deletion or changes.
See
Configuring General Registry Settings
on page 167.
The permissions you set are applied to the domain and user you specify, so you can set
different permissions for the same registry key for different users. Set permissions only
if you know your users and their domains. Example: If you are a system administrator
and want to set permissions for registry keys in an .MSI as appropriate for your
network.
To add permissions for a domain and user
1. Do one of the following:
In Installation Expert: On the Registry page, right-click a registry key and select
Permissions.
In Setup Editor: On the Components or Features tab, right-click a registry key
and select Permissions.
The Registry Key Permissions dialog box appears.
2. Click Add.
The Lock Permissions Details dialog box appears.
a. Enter the Domain.