C# Class WixSharp.RegValueProperty

Defines WiX custom property assigned by MSI runtime during the installation to the RegistrySearch result.

RegValueProperty is used to set a property from the registry value when accessing the registry is inconvenient for a custom action.

RegistrySearch returns raw data thus data will always contain prefix indicating data type:

DWORD: Starts with '#' optionally followed by '+' or '-'.

REG_BINARY: Starts with '#x' and the installer converts and saves each hexadecimal digit (nibble) as an ASCII character prefixed by '#x'.

REG_EXPAND_SZ: Starts with '#%'.

REG_MULTI_SZ: Starts with '[~]' and ends with '[~]'.

REG_SZ: No prefix, but if the first character of the registry value is '#', the installer escapes the character by prefixing it with another '#'.

In Wix# the preferred way of setting a property value is assigning it from T:WixSharp.ManagedAction. However T:WixSharp.ManagedAction may not be an available option if the target system does not have .NET installed. In such cases RegValueProperty should be used.
Inheritance: Property
ファイルを表示 Open project: Eun/WixSharp

Public Properties

Property Type Description
EntryName string
Key string
Root RegistryHive

Public Methods

Method Description
RegValueProperty ( ) : Microsoft.Win32

Initializes a new instance of the RegValueProperty class.

RegValueProperty ( Id id, string name, RegistryHive root, string key, string entryName, string defaultValue = "" ) : Microsoft.Win32

Initializes a new instance of the RegValueProperty class with properties/fields initialized with specified parameters.

RegValueProperty ( string name, RegistryHive root, string key, string entryName, string defaultValue = "" ) : Microsoft.Win32

Initializes a new instance of the RegValueProperty class with properties/fields initialized with specified parameters.

Method Details

RegValueProperty() public method

Initializes a new instance of the RegValueProperty class.
public RegValueProperty ( ) : Microsoft.Win32
return Microsoft.Win32

RegValueProperty() public method

Initializes a new instance of the RegValueProperty class with properties/fields initialized with specified parameters.
public RegValueProperty ( Id id, string name, RegistryHive root, string key, string entryName, string defaultValue = "" ) : Microsoft.Win32
id Id The explicit to be associated with instance.
name string The name of the property.
root RegistryHive The registry hive name.
key string The registry key name.
entryName string The registry entry name.
defaultValue string The registry entry default value.
return Microsoft.Win32

RegValueProperty() public method

Initializes a new instance of the RegValueProperty class with properties/fields initialized with specified parameters.
public RegValueProperty ( string name, RegistryHive root, string key, string entryName, string defaultValue = "" ) : Microsoft.Win32
name string The name of the property.
root RegistryHive The registry hive name.
key string The registry key name.
entryName string The registry entry name.
defaultValue string The registry entry default value.
return Microsoft.Win32

Property Details

EntryName public_oe property

The registry entry name.

Default value is String.Empty

public string EntryName
return string

Key public_oe property

The registry key name.

Default value is String.Empty

public string Key
return string

Root public_oe property

The registry hive name.

Default value is RegistryHive.CurrentUser

public RegistryHive Root
return RegistryHive