Fix writing of registry config values
This commit is contained in:
parent
865329e188
commit
33b6bca4dd
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class Context {
|
||||||
|
|
||||||
[void] Set([string] $key, $value, [Microsoft.Win32.RegistryValueKind] $type) {
|
[void] Set([string] $key, $value, [Microsoft.Win32.RegistryValueKind] $type) {
|
||||||
$configKey = $this.EnsureConfigKey();
|
$configKey = $this.EnsureConfigKey();
|
||||||
$null = $configKey.SetValue($key, $value, $type);
|
$null = Set-ItemProperty -Path $configKey.PSPath -Value $value -Type $type;
|
||||||
}
|
}
|
||||||
|
|
||||||
[void] Remove([string] $key) {
|
[void] Remove([string] $key) {
|
||||||
|
|
Loading…
Reference in a new issue