Announcement

Collapse
No announcement yet.

Automate new font deployment

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automate new font deployment

    Hi all

    We want to deploy a new font to our network. I have tried copying the font into winnt\fonts (Windows 2000 pro btw) using a start up script but this doesn't seem to 'install' it like copying through explorer would.

    The font doesn't appear in Word.

    Any ideas?

    Thanks

    Chris
    Server 2000 MCP
    Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

  • #2
    Just had a search through XP's Registry and the font is entered in the following location. If it is the same in Win2K, a silent reg hack could be included in the logon script to get it listing in Word etc.

    HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Panose

    Hope it was of some help or gives you an idea.
    1 1 was a racehorse.
    2 2 was 1 2.
    1 1 1 1 race 1 day,
    2 2 1 1 2

    Comment


    • #3
      we've scripted the deployment like this:

      Code:
      Option explicit
      'Declare And setup Variables
      Dim oShell,oFileSystem,Windir, RemoteFontPath, FontKey
      
      Set oShell = CreateObject ("wscript.shell")
      Set oFileSystem =CreateObject ("scripting.filesystemobject")
      
      
      RemoteFontPath =("\\server\path\subpath")
      FontKey = ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts")
      WinDir = oShell.ExpandEnvironmentStrings ("%windir%")
      
      if OFileSystem.FileExists (WinDir & "\Fonts\Kixbrg__.ttf") = 0 Then
      	'copying file to the windir \font dir
      	OFileSystem.CopyFile RemoteFontPath & "\Kixbrg__.ttf", WinDir & "\fonts\Kixbrg__.ttf",True
      	'setting regkey used by the KIX font... reboot needed, but will not be forced.!!!!!
      	oShell.RegWrite FontKey & "\KIX Barcode (TrueType)","Kixbrg__.ttf","REG_SZ"
      	WScript.Echo "Kixfont Installed"
      End If
      Last edited by Dumber; 9th September 2008, 09:48. Reason: Changed & to & forum migration bug
      Marcel
      Technical Consultant
      Netherlands
      http://www.phetios.com
      http://blog.nessus.nl

      MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
      "No matter how secure, there is always the human factor."

      "Enjoy life today, tomorrow may never come."
      "If you're going through hell, keep going. ~Winston Churchill"

      Comment


      • #4
        Cheers guys ill give ideas a try!

        Thanks
        Server 2000 MCP
        Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

        ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

        Comment

        Working...
        X