From 0042e0390852f46d152a541a890f2647d8467c54 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 28 Nov 2024 17:25:12 +0100 Subject: [PATCH] bugfix: replace system HKEY with user --- util/windows.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/windows.psm1 b/util/windows.psm1 index 8dbe3d0..77a96d2 100644 --- a/util/windows.psm1 +++ b/util/windows.psm1 @@ -168,7 +168,7 @@ function InstallFont # Prerequisites / Constants Add-Type -AssemblyName PresentationCore $destination = "$env:LOCALAPPDATA\Microsoft\Windows\Fonts\" - $regKey = "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Fonts" + $regKey = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Fonts" # Create destination directory if (-not (Test-Path $destination))