Innovative IRegistry Component Solutions – Streamlining System Configuration and Access Control

Innovative IRegistry Component Solutions – Streamlining System Configuration and Access Control

Kenneth Lv8

Innovative IRegistry Component Solutions – Streamlining System Configuration and Access Control

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.

Declaration

IRegistryComponent : IDispatch

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

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: Innovative IRegistry Component Solutions – Streamlining System Configuration and Access Control
  • Author: Kenneth
  • Created at : 2024-11-16 23:06:09
  • Updated at : 2024-11-22 04:41:53
  • Link: https://fox-sys.techidaily.com/innovative-iregistry-component-solutions-streamlining-system-configuration-and-access-control/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Innovative IRegistry Component Solutions – Streamlining System Configuration and Access Control