bugfix: replace system HKEY with user

This commit is contained in:
Baipyrus 2024-11-28 17:25:12 +01:00
parent adc469b4f9
commit 0042e03908

View File

@ -168,7 +168,7 @@ function InstallFont
# Prerequisites / Constants # Prerequisites / Constants
Add-Type -AssemblyName PresentationCore Add-Type -AssemblyName PresentationCore
$destination = "$env:LOCALAPPDATA\Microsoft\Windows\Fonts\" $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 # Create destination directory
if (-not (Test-Path $destination)) if (-not (Test-Path $destination))