Skip to content

RegistrySearch element (Util extension)

Describes a registry search.

Attributes

After

string

Id of the search that this one should come after.

Bitness

wxs:BitnessTypeUnion

Overrides 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

string

Condition for evaluating the search. If this evaluates to false, the search is not executed at all.

ExpandEnvironmentVariables

wxs:YesNoTypeUnion

Whether to expand any environment variables in REG_SZ, REG_EXPAND_SZ, or REG_MULTI_SZ values.

Id

string

Id of the search for ordering and dependency.

Key

string required

Key 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

required

Registry 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

string

Optional value to search for under the given Key.

Variable

string required

Name of the variable in which to place the result of the search.

Parents