Changes
Fonts
,no edit summary
</package>
</packages>
</source>
== 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
so windows automatically installs the new fonts.
<source lang="xml">
<package id="additional-fonts" name="Additional fonts" revision="1" reboot="false" priority="950" execute="once">
<install cmd='wscript.exe "%SOFTWARE%\Packages\Fonts\FontInstall.vbs"' />
</package>
</source>
FontInstall.vbs:
<source lang="vb">
Const FONTS = &H14&
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(FONTS)
MyDir = left(Wscript.ScriptFullName,len(Wscript.ScriptFullName)- len(Wscript.ScriptName)-1)
objFolder.CopyHere MyDir &"\MyNewFont.ttf"
</source>