Create ExpandString values by default

This commit is contained in:
Manuel Thalmann 2024-03-24 01:10:00 +01:00
parent 3c60befb27
commit f91980ce9a

View file

@ -102,6 +102,10 @@ class Context {
}
}
[void] Set([string] $key, $value) {
$this.Set($key, $value, "ExpandString");
}
[void] Set([string] $key, $value, [Microsoft.Win32.RegistryValueKind] $type) {
$configKey = $this.EnsureConfigKey();
$null = Set-ItemProperty -Path $configKey.PSPath -Name $key -Value $value -Type $type;