Jump to content

Recommended Posts

Posted

I need to deploy some font files across our computers - under XP, I could do this with an MSI which copied the .ttf files into C:\Windows\Fonts, however that doesn't seem to work under Win7. Any ideas how I do this? FWIW, I'm trying to install the Nelson Handwriting fonts.

 

Thanks!

Posted (edited)
Any ideas how I do this?

 

We install fonts via a post-imaging batch script:

 

echo Installing Sassoon fonts...
copy "\\ks-nas1\Software\Sassoon Primary Infant\sapi____.TTF" %systemroot%\fonts > nul 2>&1
regedit /s "\\ks-nas1\Software\Sassoon Primary Infant\Sassoon.reg"

 

Sassoon.reg contains:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"SassoonPrimaryInfant Regular (TrueType)"="sapi____.TTF"

 

It certainly seems to work on Windows 7 - adjust paths and filenames accordingly for your own system, of course.

Edited by dhicks
Posted
I could do this with an MSI which copied the .ttf files into C:\Windows\Fonts, however that doesn't seem to work under Win7.

Are you registering the fonts in the program you are using to create the MSI, rather than just copying them into the Fonts folder?

 

http://i.imgur.com/wIIYI.png

 

Another option would be to use FontReg.

Posted

Tried running the MSI I created in WinInstall, but that doesn't install the fonts. None of the MSI authoring programs I have contain any option to register a font.

 

I'll try the script which David suggests. FontReg looks promising too, can it be distributed though?

Posted (edited)
FontReg looks promising too, can it be distributed though?

I'm pretty certain it can be. All of Kai Liu's programs are open source.

Edited by Arthur
Posted

Here's the lines I added to one of my start up scripts to copy a font onto the compuer

 

copy "\\\\font\drago__r.ttf" "c:\windows\fonts" /y
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Dragonwyck (True Type)" /t REG_SZ /d "drago__r.ttf" /f

 

You need to register the font on the PC in order for it to be seen. Just copying it on doens't work. This can be achieved by and admin login on to each PC and opening the fints folder.

 

This is obviously a pain in the bottom...

Posted
Tried running the MSI I created in WinInstall, but that doesn't install the fonts. None of the MSI authoring programs I have contain any option to register a font.

If you edit your MSI in InstEd or Orca, you could add an entry to the Font table which registers each font.

 

http://i.imgur.com/V8JCw.png

Posted
Okay, I see my problem. The MSI was good, but the deployment process I use creates CAB files from MSIs and deploys those through Windows Update, and that evidently breaks the font registration. I've deployed the MSI the conventional way through Group Policy and it works fine.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...