Skip to main content
Version: v3

RegistrySearch Element (Util Extension)

Description
Describes a registry search.
Windows Installer references
None
Parents
Bundle, Fragment
Inner Text
None
Children
None
Attributes
NameTypeDescriptionRequired
AfterStringId of the search that this one should come after. 
ConditionStringCondition for evaluating the search. If this evaluates to false, the search is not executed at all. 
ExpandEnvironmentVariablesYesNoTypeWhether to expand any environment variables in REG_SZ, REG_EXPAND_SZ, or REG_MULTI_SZ values. 
FormatEnumerationWhat format to return the value in. This attribute's value must be one of the following:
raw
Returns the unformatted value directly from the registry. For example, a REG_DWORD value of '1' is returned as '1', not '#1'.
compatible
Returns the value formatted as Windows Installer would. For example, a REG_DWORD value of '1' is returned as '#1', not '1'.
 
IdStringId of the search for ordering and dependency. 
KeyStringKey to search for.Yes
ResultEnumeration Rather than saving the matching registry value into the variable, a RegistrySearch can save an attribute of the matching entry instead. This attribute's value must be one of the following:
exists
Saves true if a matching registry entry is found; false otherwise.
value
Saves the value of the registry key in the variable. This is the default.
 
RootEnumerationRegistry root hive to search under. This attribute's value must be one of the following:
HKLM
HKEY_LOCAL_MACHINE
HKCU
HKEY_CURRENT_USER
HKCR
HKEY_CLASSES_ROOT
HKU
HKEY_USERS
Yes
ValueStringOptional value to search for under the given Key. 
VariableStringName of the variable in which to place the result of the search.Yes
Win64YesNoTypeInstructs the search to look in the 64-bit registry when the value is 'yes'. When the value is 'no', the search looks in the 32-bit registry. The default value is 'no'. 
See Also
Util Schema