From 7fcb36dd1ccb29d6ff5f3e7a93e49d73c7865636 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 31 Jul 2024 22:33:16 +0200 Subject: [PATCH] Set registry values properly --- scripts/Windows/Scripts/SetupConfig.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/Windows/Scripts/SetupConfig.ps1 b/scripts/Windows/Scripts/SetupConfig.ps1 index 5382304b..e32e2640 100644 --- a/scripts/Windows/Scripts/SetupConfig.ps1 +++ b/scripts/Windows/Scripts/SetupConfig.ps1 @@ -75,12 +75,8 @@ $null = New-Module { $Value ) - if ($Value -is [string]) { - - } - $key = Get-SetupConfigKey; - return $key.SetValue($Value); + $null = Set-ItemProperty ($key.PSPath) -Name $Name -Value $Value; } <#