Changes

Fonts

1,111 bytes added, 00:27, 9 February 2010
+Inno Setup script
</source>
== 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 makes this easy and a script like the following will package a number of fonts into a pseudo-application.
<source lang=inno>
[Files]
Source: C:\WINDOWS\Fonts\CALIBRI.TTF; DestDir: {fonts}; FontInstall: Calibri; Flags: onlyifdoesntexist uninsneveruninstall
Source: C:\WINDOWS\Fonts\FuturaStd-Book.otf; DestDir: {fonts}; FontInstall: FuturaStd-Book (OpenType); Flags: onlyifdoesntexist uninsneveruninstall fontisnttruetype
...
 
[Setup]
AppName=Font Installer
AppVerName=Font Installer 1.0
CreateAppDir=false
DisableProgramGroupPage=true
ShowLanguageDialog=no
</source>
 
The package definition would be
<source lang="xml">
<package id="additional-fonts" name="Additional fonts" revision="10" reboot="false" priority="950">
<check type="uninstall" condition="exists" path="Font Installer 1.0" />
<install cmd='%SOFTWARE%\font-setup.exe /sp- /silent /norestart' />
<upgrade cmd='%SOFTWARE%\font-setup.exe /sp- /silent /norestart' />
</package>
</source>
[[category:Silent Installers]]
[[Category: Changing Windows settings]]
Anonymous user