Hello Sokoban,
In the link provided, you have just to adapt your PS install script with the following: First command will copy all necessary files from your DP to C:\Windows\Fonts, then you need create the related entries in the following registry key path: HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts.
You can also try with the following batch script if you want and deploy it as an application:
@echo off
set "fontsFolder=C:\Path\to\Fonts\Folder" REM Specify the folder where your font files are located
set "fontsDestination=%SystemRoot%\Fonts" REM Destination folder for installing fonts (Windows Fonts folder)
for /r "%fontsFolder%" %%G in (*.ttf, *.otf) do (
echo Installing font: %%~nG
copy /Y "%%G" "%fontsDestination%" > nul
)
echo All fonts installed successfully.
Regards,
Youssef Saad | Blog: https://youssef-saad.blogspot.com/ | LinkedIn