Changes

Fonts

200 bytes removed, 12:03, 14 August 2009
m
no edit summary
'''This did not work as the is a silent installer for distributing additional fonts are not registered in registry.When you have Administrator rights and open the %WINDIR%\Fonts\ directory after copying Always be sure to be entitled to use the fonts you wont notice that, as the new fonts get registered automaticely then by Windows Explorerare distributing.'''
----
To install new fonts on a Windows machine, you have to do two things:
This is * copy the font file to <code>%WINDIR%\Fonts\</code> directory,* add a silent installer for distributing additional fonts.Always be sure to be entitled to use the fonts you are distributingregistry entry.
Not sure how it behaves when a font is already installed on the client.
<source lang="xml">
<package id="additional-fonts" name="Additional fonts" revision="1" reboot="false" priority="950" execute="once">
<install cmd='%COMSPEC% /c copy /Y "%SOFTWARE%\Fonts\*.TTF " "%WINDIR%\Fonts\" ' />
== example batch file == An example bat file will look like this: </packagesource lang="dos">%COMSPEC% /c copy /Y "%SOFTWARE%\Fonts\*.TTF " "%WINDIR%\Fonts\^regedit /s "%SOFTWARE%\Fonts\add-fonts.reg"
</source>
A very simple Method to install Fonts is to create a minimalistic Setup-Package with INNO-Setup, where you can add all the Font's you want to install. The silent Setup installs and registers the Fontfiles during Installation== example registry file ==
Or you can use a An example registry file will look like this:<presource lang="reg">
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"<font name>Frankfurt Gothic (TrueType)"="<font file name>FRANKGON.TTF"</presource>Substitute  == example XML file for WPKG == <source lang="xml"><package id="additional-fonts"font name=" with for example Additional fonts"Arial (TrueType)revision=", and 1"font file namereboot=" with for example false"arial.ttfpriority="950" execute="once">  <install cmd='"%SOFTWARE%\Fonts\add-fonts.bat"' /> </package></source>  
[[category:Silent Installers]]
[[Category: Changing Windows settings]]