From f91980ce9aae41a60fad195ccd8c56174041dcf3 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 24 Mar 2024 01:10:00 +0100 Subject: [PATCH] Create `ExpandString` values by default --- scripts/Windows/Scripts/Context.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 562e62e0..914843b7 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -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) { $configKey = $this.EnsureConfigKey(); $null = Set-ItemProperty -Path $configKey.PSPath -Name $key -Value $value -Type $type;