From 2a7adfeba31f95a01af4317c73c4c3b7deb571d6 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; } <#