IRegistryKey
This interface is used to navigate the keys added in a project, modifies key properties and adds or deletes values.
Declaration
IRegistryKey : IDispatch
Properties
String FullPath - Gets the full path of the registry key.
String Name - Gets or sets the registry key name.
String RootName - Gets the registry key root name.
IRegistryKey ParentKey - Gets the parent key of the current registry key.
Array<IRegistryKey> - Gets all child keys of the registry key.
Array<IRegistryValue>Values - Gets all values from registry key.
Bool CreateIfAbsentAtInstall - Gets or sets the flag "Create if(absent) at install"
Bool DeleteIfPresentAtUninstall - Gets or sets the flag “Delete (if present) at uninstall”.
Methods
CreateKey(String name) returns IRegistryKey
This
method creates a new key with the specified name.
$b.RegistryComponent.CurrentUserOrLocalMachine.FullPath $b.RegistryComponent.CurrentUserOrLocalMachine.CreateKey("test")
CreateValueStringPrepend(String name, String data = “”)
returns IRegistryValue
This method creates a new value with the specified
name. The data can be specified or the default value is added. The data
will be prepended.
CreateValueStringAppend(String path) returns IRegistryValue
This
method creates a new value with the specified name. The data can be
specified or the default value is added. The data will be appended.
CreateValueStringReplace(String path, Bool
is64Bit) returns IRegistryValue
This
method creates a new value with the specified name. The data can be
specified or the default value is added. The data will be replaced.
CreateValueExpandableString(String path, String data = “”)
returns IRegistryValue
This method creates a new value at the specified
path. The data can be specified or the default value is added.
CreateValueInteger(String path, String data) returns
IRegistryValue
This method creates a new value at the specified
path. The data has to be specified, there is no default value.
CreateValueInteger(String path, String data) returns
IRegistryValue
This method creates a new value at the specified
path. The data has to be specified, there is no default value.
CreateValueBinary(String path, String data = “”)
returns IRegistryValue
This method creates a new value at the specified
path. The data can be specified or the default value is added.
DeleteValue(IRegistryValuevalueToDelete)
This method deletes
the specified registry value.
DeleteKey(IRegistryKeykeyToDelete)
This method deletes the
specified registry key.
DeleteAllValues()This method deletes all values.
DeleteAllKeys()
This method deletes all
keys.