From f2c7ed03fcc8c8f9f20cb3571939480fc93b5a91 Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Fri, 9 Aug 2024 01:30:48 +0100 Subject: [PATCH] refactor(ThemeMRU): New-ItemProperty -> Set --- src/playbook/Executables/AtlasModules/Scripts/newUsers.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playbook/Executables/AtlasModules/Scripts/newUsers.ps1 b/src/playbook/Executables/AtlasModules/Scripts/newUsers.ps1 index b112c1351b..0ddce37002 100644 --- a/src/playbook/Executables/AtlasModules/Scripts/newUsers.ps1 +++ b/src/playbook/Executables/AtlasModules/Scripts/newUsers.ps1 @@ -7,14 +7,14 @@ $atlasDesktop = "$windir\AtlasDesktop" $atlasModules = "$windir\AtlasModules" function ThemeMRU { - New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes" -Name "ThemeMRU" -Value "$((@( + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes" -Name "ThemeMRU" -Value "$((@( "atlas-v0.4.x-dark.theme", "atlas-v0.4.x-light.theme", "atlas-v0.3.x-dark.theme", "atlas-v0.3.x-light.theme", "dark.theme", "aero.theme" - ) | ForEach-Object { "$windir\resources\Themes\$_" }) -join ';');" -PropertyType String -Force + ) | ForEach-Object { "$windir\resources\Themes\$_" }) -join ';');" -Type String -Force } if ($ThemeMRU) { ThemeMRU; exit }