Mastering IRegistryKey: Essential Techniques and Strategies for Optimization

Mastering IRegistryKey: Essential Techniques and Strategies for Optimization

Steven Lv8

Mastering IRegistryKey: Essential Techniques and Strategies for Optimization

Table of Contents

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

IRegistryKey

This interface is used to navigate the keys added in a project, modifies key properties and adds or deletes values.

Declaration

IRegistryKey : IDispatch

https://techidaily.com

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”.

https://techidaily.com

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”)

Copy

**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) returnsIRegistryValue
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) returnsIRegistryValue
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(IRegistryValue valueToDelete)
This method deletes the specified registry value.

DeleteKey(IRegistryKey keyToDelete)
This method deletes the specified registry key.

**DeleteAllValues()**This method deletes all values.

DeleteAllKeys()
This method deletes all keys.

R key

https://techidaily.com https://techidaily.com

See also

IRegistryComponent

IRegistryValue

Did you find this page useful?

Please give it a rating:

Thanks!

Report a problem on this page

Information is incorrect or missing

Information is unclear or confusing

Something else

Can you tell us what’s wrong?

Send message

Also read:

  • Title: Mastering IRegistryKey: Essential Techniques and Strategies for Optimization
  • Author: Steven
  • Created at : 2024-10-04 19:48:33
  • Updated at : 2024-10-10 17:00:22
  • Link: https://fox-zero.techidaily.com/mastering-iregistrykey-essential-techniques-and-strategies-for-optimization/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Mastering IRegistryKey: Essential Techniques and Strategies for Optimization