Allow removing setup options

This commit is contained in:
Manuel Thalmann 2024-09-12 18:44:58 +02:00
parent abaabc0fa6
commit ac80a5d01b

View file

@ -346,8 +346,13 @@ $null = New-Module {
$Value $Value
) )
$key = Get-SetupConfigKey; $key = (Get-SetupConfigKey).PSPath;
$null = Set-ItemProperty ($key.PSPath) -Name $Name -Value $Value;
if ($null -eq $Value) {
Remove-ItemProperty $key -Name $Name;
} else {
$null = Set-ItemProperty $key -Name $Name -Value $Value;
}
} }
<# <#