Fix writing of registry config values

This commit is contained in:
Manuel Thalmann 2023-06-30 02:34:52 +02:00
parent ca48076167
commit b6a4b41d1a

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