RegistrySearch element (Util extension)
Describes a registry search.
Attributes
After
stringId of the search that this one should come after.
Bitness
wxs:BitnessTypeUnionOverrides the default registry to search. The value always64
will force
the search to look in the 64-bit registry even when building for 32-bit.
Simliarly, the value always32
will force the search to look in the 32-bit
registry even when building for 64-bit.
The default value is default
where the search will look in the same registry
as the bitness of the package.
Condition
stringCondition for evaluating the search. If this evaluates to false, the search is not executed at all.
ExpandEnvironmentVariables
wxs:YesNoTypeUnionWhether to expand any environment variables in REG_SZ, REG_EXPAND_SZ, or REG_MULTI_SZ values.
Id
stringId of the search for ordering and dependency.
Key
string requiredKey to search for.
Result
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.
Root
requiredRegistry 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
Value
stringOptional value to search for under the given Key.
Variable
string requiredName of the variable in which to place the result of the search.