mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 03:11:45 +00:00
bugfix: replace system HKEY with user
This commit is contained in:
parent
adc469b4f9
commit
0042e03908
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user