+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
Scripts Thread, Script To Install Fonts To Workstations in Coding and Web Development; If you are looking for an easy way to intall fonts in windows 7 with a little script. you can ...
  1. #16

    Join Date
    Aug 2011
    Location
    Bern
    Posts
    4
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Install font with a script that works in windows 7

    If you are looking for an easy way to intall fonts in windows 7 with a little script.

    you can find it for free on our page:


    Cheers

  2. IDG Tech News

  3. #17

    Join Date
    Aug 2011
    Location
    Bern
    Posts
    4
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

  4. Thanks to maximator152 from:

    zachariah (30th January 2012)

  5. #18

    Join Date
    May 2011
    Posts
    1
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Excellent script from maximator152 there - thanks!

    Also, here is a page with easy details to quickly make an msi for one or more fonts:

    laslow.net/2009/02/23/installing-a-font-via-gpo-server-20032008/

    (you'll need to have a copy of WininstallerLE, which I think is still free)

    I've used that method with no problems so far. The only slight inconvenience is the machines need a restart after the msi has run before the font is visible to the user.

  6. #19

    Join Date
    Feb 2012
    Location
    Santo Domingo
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by srochford View Post
    Add in some debugging:
    Code:
    Sub InstallFonts
      on error resume next
      Const FONTS = &H14
      dim , oFSO,oShell, oFolder1, oFolder2, sRoot
      sRoot="\\server\share\fonts\"
      Set oShell = CreateObject("Shell.Application")
      set oFSO=createobject("scripting.filesystemobject")
    
    set oLog=ofso.createtextfile("c:\windows\temp\fonts.log",true)
    
      Set oFolder1 = oShell.Namespace(FONTS)
      set oFolder2=ofso.getfolder(sRoot)
      for each oFile in oFolder2.files
        sName=lcase(oFile.name)
    
    oLog.writeLine "found: " & sName
    
        if right(sName,4)=".ttf" then
          if not ofso.fileexists(oFolder1.self.path & "\" & sName) then
    
    oLog.writeLine "installing: " & sName
    
            oFolder1.copyhere sRoot & sName
          end if
        end if
      next
      on error goto 0
    
    oLog.close
    
    End Sub
    - add the "olog" lines and it should write a log file to c:\windows\temp\fonts.log with some info about what's happening.
    If that file doesn't get created then the script just isn't running. If it gets created and it appears to not find any fonts then your script isn't able to read the fonts directory (remember you must have "domain computers" with read access to get that to work)
    This script didn't work for me, when I double click it present an error in line4.

    This is what I have in line 4 sRoot="c:\font\c39hrp24dhtt.ttf" just to my localdisk.
    And there's no font.log in windows\temp to see what's happening.

    any Ideas?

  7. #20

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,039
    Thank Post
    69
    Thanked 275 Times in 218 Posts
    Rep Power
    97
    I've used fontreg for this in the past, have just put it in some package folder alongside the font files and run: fontreg /copy
    Last edited by PiqueABoo; 19th February 2012 at 03:42 PM.

  8. Thanks to PiqueABoo from:

    TechSupp (20th February 2012)

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 17
    Last Post: 8th December 2011, 08:49 PM
  2. Installing/Copying Fonts from Login Script
    By mattpant in forum Windows
    Replies: 10
    Last Post: 11th August 2011, 09:24 PM
  3. Deploying Fonts
    By HodgeHi in forum Networks
    Replies: 7
    Last Post: 22nd April 2008, 11:10 AM
  4. Missing fonts in Publisher 2003
    By Kyle in forum Windows
    Replies: 1
    Last Post: 17th October 2007, 10:05 AM
  5. Help with Fonts
    By Mr_M_Cox in forum Windows
    Replies: 6
    Last Post: 10th September 2007, 11:17 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •