Solved

Install font via login.bat

Posted on 2004-10-28
385 Views
Last Modified: 2013-12-03
We need to "roll out" a new font at our company. The best tool I can see is using the login.bat to call a program that would install the font. I need your help with the program to install the font. What would be the best way to do this using vb 5.0? I'm a novice at VB so be gentle.
0
Question by:csho
    8 Comments
     
    LVL 10

    Accepted Solution

    by:
    usually installing a font is simply nothing more than copying the font file into C:\windows\fonts or C:\winnt\fonts.  All you need is a simple login script to copy the appropriate font files from a network share onto the local drive nothing more than a copy or xcopy DOS command.

    Dis
    0
     
    LVL 83
    I'm not sure this works every time .. usually you need to register the font (note: this can be done pretty easily by doing as dis1931 suggests but you'll need to open the Fonts folder ... ).

    Of course, you could use Inno Setup (a freely available and very nice install program) to install your font ... this will register it and all, just to be sure. YOu can get Inno setup here:

    http://www.jrsoftware.org/isinfo.php

    I used to use Inno, it's very simple to deal with and there are a lot of FAQs and such to walk you through things like this.
    0
     

    Author Comment

    by:csho
    Can inno setup run this invisibly?
    0
     
    LVL 36

    Expert Comment

    by:SidFishes
    have a look here on deployting fonts across a domain

    http://www.experts-exchange.com/Operating_Systems/Win2000/Q_21103326.html
    0
     
    LVL 83
    If by "invisibly" you mean without user interaction, then no ... the user would have to run a basic "install" program.
    0
     
    LVL 10

    Expert Comment

    by:dis1931
    I have never had to register a font before normally copying them right into the folder works.  But then again this may not always be the case but in my experience it works.  You may want to try it on a test machine to see if it functions properly with just copying and if it does then just do the simple script.

    Dis
    0
     

    Author Comment

    by:csho
    Probably a naive question, but if 100 people are trying to copy the same font file, would I need to account for that?
    0
     
    LVL 83
    No ... your OS will handle the request as it deems fit.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
    In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
    In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
    In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now