Create ExpandString values by default

This commit is contained in:
Manuel Thalmann 2024-03-24 01:10:00 +01:00
parent ddcf93e14d
commit c772ccb6cd

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) { [void] Set([string] $key, $value, [Microsoft.Win32.RegistryValueKind] $type) {
$configKey = $this.EnsureConfigKey(); $configKey = $this.EnsureConfigKey();
$null = Set-ItemProperty -Path $configKey.PSPath -Name $key -Value $value -Type $type; $null = Set-ItemProperty -Path $configKey.PSPath -Name $key -Value $value -Type $type;