Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Push out font to clients 1

Status
Not open for further replies.

DanMIS

MIS
Sep 16, 2004
189
US
I need to be sure that 3 fonts exist on all clients, and push them out if not.

I believe I can use a batch file, such as:
********************************************

if exist %windir%\fonts\ocrb.ttf go to 39
copy OCRB.ttf %windir%\fonts

:39
if exist %windir%\fonts\Code39-Regular-F.ttf go to Free3of9
copy Code39-Regular-F.ttf %windir%\fonts

:Free3of9

if exist %windir%\fonts\FRE3OF9X.TTF go to Exit
copy FRE3OF9X.TTF %windir%\fonts

:Exit
************************************************

I would then run the batch file as a mandatory announcement. Has anyone else accomplished this another way?

Dan
 
Mbrainard:

Use this as an example of how to install. You will have to click View on the toolbar and choose Script Editor.

Copy and paste from between the equals signs into SMS Installer.

you can bypass the need for the Disk Space Check by clicking the eyeglasses on the toolar, once in Script Editor, chProgress Bar Based On, choose anything but percentage of selected files.

===========================================================
item: Remark
Text=******************************************************************************************************************
end
item: Remark
Text=*** The destination of the "Install Files" must be a variable so one was created.
end
item: Remark
Text=*** The variable can include more information then just C: but this is an example.
end
item: Remark
Text=*** The file should be placed in the same directory as the .IPF for the script. If it
end
item: Remark
Text=*** is in a different directory, just point the source to the correct directory. The
end
item: Remark
Text=*** file will then be compressed into the .EXE and the .EXE can be ported by itself.
end
item: Remark
Text=*** Any more questions please asl.
end
item: Remark
Text=******************************************************************************************************************
end
item: Set Variable
Variable=C
Value=c:
end
item: Install File
Source=<filename>.ttf
Destination=%C%\Program Files\anyapplication\<filename>.ttf
Flags=0000000000000010
end


It will need to be registered or rebooted so you could add something like

item: Register Font
Filename=Arial (TrueType)
Font name English=Arial.ttf
end



 
Just to make sure I understand:

I made a similar script to yours (thanks for the pointers). As long as the necessary font files are in the same directory on the SMS Site server as the script file is, it will include the fonts into the EXE file?

Thanks for the reply; I hadn't installed SMS Installer until now. I see a lot of use for that program.

Dan
 
correct.

I still use sms installer for just about everything I push!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top