Fix writing of registry config values

This commit is contained in:
Manuel Thalmann 2023-06-30 02:34:52 +02:00
parent 865329e188
commit 33b6bca4dd

View file

@ -53,7 +53,7 @@ class Context {
[void] Set([string] $key, $value, [Microsoft.Win32.RegistryValueKind] $type) {
$configKey = $this.EnsureConfigKey();
$null = $configKey.SetValue($key, $value, $type);
$null = Set-ItemProperty -Path $configKey.PSPath -Value $value -Type $type;
}
[void] Remove([string] $key) {