Unique Registry Component – Essential Elements for Efficient Software Management

Unique Registry Component – Essential Elements for Efficient Software Management

Jason Lv8

Unique Registry Component – Essential Elements for Efficient Software Management

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.

IRegistryComponent

This component gives access to registry keys, imports files and also creates keys and values with the specified path.

https://techidaily.com

Declaration

IRegistryComponent : IDispatch

https://techidaily.com

Properties

IRegistryKey CurrentUserOrLocalMachine - Gets the custom registry hive for current user or local machine.

IRegistryKey HKClassesRoot - Gets the registry hive for classes root.

IRegistryKey HKCurrentUser - Gets the registry hive for current user.

IRegistryKey HKLocalMachine - Gets the registry hive for local machine.

IRegistryKey HKUsers - Gets the registry hive for user.

IRegistryKey HKCurrentConfig - Gets the registry hive for current config.

Methods

$a = New-Object -comobject AdvancedInstaller
$b = $a.CreateProject()
$b.RegistryComponent.CurrentUserOrLocalMachine.Keys

Copy

**FindKeyByPath(String path)**- returns IRegistryKey
This method searches at the specified path and the key is returned if found.

**FindKeyByName(String name)**- returns Array<IRegistryKey >
This method searches for all the keys with the specified name and returns an array containing all the matching keys.

$b.RegistryComponent.FindKeyByName(“[ProductName]”)

Copy

CreateKeyByPath(String path) - returns IRegistryKey
This method creates a new key at the specified path.

ImportRegistryFile(String path, Bool is64Bit)
This method imports a registry file from disk.

**CreateValueStringPrependByPath(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. The data will be prepended.

CreateValueStringAppendByPath(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. The data will be appended.

**CreateValueStringReplaceByPath(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. The data will be replaced.

**CreateValueExpandableStringByPath(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.

**CreateValueIntegerByPath(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.

**CreateValueBinaryByPath(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.

Reg comp

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

Topics

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: Unique Registry Component – Essential Elements for Efficient Software Management
  • Author: Jason
  • Created at : 2024-10-03 21:06:18
  • Updated at : 2024-10-10 17:03:56
  • Link: https://fox-useful.techidaily.com/unique-registry-component-essential-elements-for-efficient-software-management/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Unique Registry Component – Essential Elements for Efficient Software Management