From b6a4b41d1a86257264418fae11c7fb2ad1d87100 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 30 Jun 2023 02:34:52 +0200 Subject: [PATCH] Fix writing of registry config values --- scripts/Windows/Scripts/Context.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 0b2e4cd1..4125e994 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -53,7 +53,7 @@ class Context { [void] Set([string] $key, $value, [Microsoft.Win32.RegistryValueKind] $type) { $configKey = $this.EnsureConfigKey(); - $null = $configKey.SetValue($key, $value, $type); + $null = Set-ItemProperty -Path $configKey.PSPath -Value $value -Type $type; } [void] Remove([string] $key) {