I want to install TTF fonts on the host computer (running Windows) during installation of a software I make. Installing fonts on windows means 2 things :
- Copy TTF files in c:\windows\fonts. That is easy to do.
- Register the fonts that is : update the Windows Registry for Windows to update its font list. My question is : how can I do this with install4j ?
Thanks in advance for any help !
Well, I’ve done it “the hard way”, but it works. Here’s my code :
Three final things :
This is script is a Run Script Action i put in the Finish screen of the installer.
Be sure to run this script only in windows environment because your installer will crash under other systems.
This seems to be unnecessary for WinXP but indispensable for Win7 for the fonts to be accessible in the font list after installation.