Create ExpandString
values by default
This commit is contained in:
parent
3c60befb27
commit
f91980ce9a
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue