73
edits
Changes
Fonts
,Reorganised into different methods and added brief outline of using MS fontinst.exe
Always be sure to be entitled to use the fonts you are distributing.
= Batch File Method =
== Basic info ==
</source>
= VBScript Method =
== Example using a VBscript ==
The Microsoft Scripting Guys provide a .vbs solution that does not require a restart, as it copies the fonts using the shell object
</source>
= Inno Method =
== Example Inno Setup Script ==
Because I had problems with the registry setting I found another way to install fonts by writing an installer. [[Inno Setup]] makes this easy and a script like the following will package a number of fonts into a pseudo-application.
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Type 1 Installer\Type 1 Fonts"; ValueType: multisz; ValueName: "BentonSansCond Black"; ValueData: "T{break}BENSCNBL.pfm{break}BENSCNBL.PFB"; Flags: uninsdeletevalue
</source>
= MS fontinst.exe Method =
Microsoft has a very underused app called [ftp://ftp.microsoft.com/Softlib/MSLFILES/fontinst.exe fontinst.exe].
You can pass a .inf file as parameter to fontinst.exe and it will install a list of fonts for you.
The .inf file is formatted like:
<pre>
[fonts]
font01.TTF
font02.TTF
font03.TTF
</pre>
Just pop the exe, ttf's and the inf in a folder and call it like this:
<pre>
fontinst.exe /F MyFontName.inf
</pre>
[[category:Silent Installers]]
[[Category: Changing Windows settings]]