AnthonyMastrean / chocolateypackages

Application packages for Windows
https://chocolatey.org/profiles/AnthonyMastrean
18 stars 63 forks source link

Install dejavufonts for all users #315

Open nazar554 opened 5 years ago

nazar554 commented 5 years ago

Install-Fonts function seems to choose per user directory (c:\user\<username>\appdata\local\microsoft\windows\fonts) instead of (c:\windows\fonts) since Windows 10 build 1809

AnthonyMastrean commented 5 years ago

The documentation, updated this month, suggests it's still in C:\Windows\Fonts, but also sounds like it's possible for it to change?

0x14 (20). Virtual folder that contains installed fonts. A typical path is C:\Windows\Fonts.

Let me experiment :)

nazar554 commented 5 years ago

Sorry it seems like you are right, and Install-Fonts still copies into C:\Windows\Fonts, I checked $target.Self. Now I wonder If it was Libreoffice which broke my fonts after choco upgrade all

nazar554 commented 5 years ago

Sorry, It lied to me) It still copies in wrong directory The problem Is likely because it asks me whether to replace it, and I say no Also I have UAC on highest setting (but running PowerShell as Admin)

nazar554 commented 5 years ago

@AnthonyMastrean Can you test with UAC on highest setting/when font is already installed (force install)?

AnthonyMastrean commented 5 years ago

Tested on my machine. UAC on highest setting. Running from Admin PowerShell. Installed dejavufonts. Then force installed again and tried both Yes and No when asked to replace. Nothing shows up in %LOCALAPPDATA%