Solved

Install font using MSI

Posted on 2006-10-26
19
7,724 Views
Last Modified: 2013-12-03
Can anyone tell me how to create an installer package using Wininstall LE to copy a font to everyones PC on a 2003 server domain using GPO.  I am having trouble creating the package.  Do I create a batch file and use that?
Also, will it copy the font if the clients are locked down?

Thanks
0
Comment
Question by:jeffreychorba
  • 11
  • 7
19 Comments
 
LVL 53

Expert Comment

by:McKnife
ID: 17814797
To install a font, you have do two things:
Copy it into %windir%\fonts
register it <- this part is done automatically when you do it locally.
There are many ways to do this remotely.

I would do the following: Download WIWW http://www.sywan.nl/metatraffic2/track.asp?mtr=/download/WIWW_0.0.0.1.zip
and create a small msi that executes this batch:
--
regedit /s \\server\share\yourfont.reg
copy \\server\share\yourfont.ttf %windir%\fonts /y
--
where yourfont.reg is
--
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Yourfont (TrueType)"="yourfont.TTF"
--
AND... check "Reboot the system at the end of installation", otherwise the users cannot use it until they reboot.

WIWW is very nice.
0
 

Author Comment

by:jeffreychorba
ID: 17815459
I tried running this program and I get an error comctl32.ocx is not registered.....  ?
0
 
LVL 53

Expert Comment

by:McKnife
ID: 17815484
You need the vbruntimes, first link I could grab was http://www.auchnet.de/computer/programme/binaries/vbruntimes.zip
0
 
LVL 53

Expert Comment

by:McKnife
ID: 17815494
Put them into c:\windows\system32
0
 

Author Comment

by:jeffreychorba
ID: 17815632
Same error after copying the files and rebooting.
0
 
LVL 53

Expert Comment

by:McKnife
ID: 17815759
0
 

Author Comment

by:jeffreychorba
ID: 17816531
For sake of testing before I deploy this to the server I created a batch file called font.bat in the root of C: This is how it looks:
regedit /s c:\papyrus.reg
copy c:\papyrus.ttf %windir%\fonts

I also copied the papyrus.ttf file and and the papyrus.reg files to c:\

papyrus.reg looks like this:
----------------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]

"Papyrus (TrueType)"="PAPYRUS.TTF"
-----------------------------------------------------------------------------------------------------


Then, I ran the MSI packager you sent me and in the command area I chose "source dir" as the installer property and the program to run as c:\font.bat  the rest of the screens that come up I left empty or default and then saved the MSI.

When I installed it it went throught the motions but did not copy the file or alter the registry.  I even tried rebooting after that.  Then I tried just running the batch file manually and it did work.  

I have no I idea what I am doing wrong.

Please help!

0
 
LVL 53

Expert Comment

by:McKnife
ID: 17817325
Hi,
apart from not choosing "Reboot the system at the end of installation" in WIWW, you did exactly as I did and I use this script/msi in our domain succesfully.
So the batch is ok and the msi gets installed, too but obviously, the batch is not called from the msi. Only thing I can imagine to go wrong are access rights.
If you assign that msi to the computer accounts (so the GPO is in the computer configuration section), it gets executed with system rights.
Make sure, the system account has access rights to font.bat, to papyrus.reg and to papyrus.ttf. I would put these three files to a share where the domain group "domain computers" has access to, this group consists of all the system accounts.
If it still does not work, make sure the bat gets called from the msi, in order to check this, you can turn on auditing and audit file access on that bat and the other files. Then you can use the security event log to see if it works.

We'll get it running, don't worry.
0
 
LVL 53

Expert Comment

by:McKnife
ID: 17817379
Ah, another slight mistake that might lead you into trouble:
In your batch, you forgot the /y after the copy command. So if the font already existed on certain computers, the msi would hang because the batch asks you if you would like to overwrite papyrus.ttf - wiww-msis have to use completely unattended batches.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:jeffreychorba
ID: 17818459
I see that that could cause a problem, but the system I am testing it on had the file removed from the fonts folder?
0
 
LVL 53

Expert Comment

by:McKnife
ID: 17820400
My last comment was not about your problem, just for the future.
How are the access rights to the files papyrus.ttf, to font.bat and that regfile?
0
 

Author Comment

by:jeffreychorba
ID: 17820889
administrato-r full
system- full
power users- full
users- read

0
 
LVL 53

Expert Comment

by:McKnife
ID: 17820990
Grant full rights to the domain account computername$ (mypc$ for example) as well and try again.
0
 

Author Comment

by:jeffreychorba
ID: 17821375
Did that and it did not help.
0
 
LVL 53

Expert Comment

by:McKnife
ID: 17821431
Ok, two last things:
Did you try to monitor if that batch gets called from that msi ->turn on auditing.
Did you use a new msi? It won't install twice, you know.

I could send you mine if you like to try it.
0
 

Author Comment

by:jeffreychorba
ID: 17821815
I did try a new MSI.  If you want to send me yours that might help.  I actually only need to install one font. "papyrus" on all the workstations.  Can I edit the MSI with my server information? My e-mail is jchorba@ptd.net.

Thanks again!!

Jeff
0
 
LVL 53

Accepted Solution

by:
McKnife earned 500 total points
ID: 17821893
You got mail
0
 

Expert Comment

by:Hypervizor
ID: 20357740
We would also like to deploy a font to all Windows workstations in the domain. It would appear as though the question was successfully answered but I don't think the actual answer was fully disclosed here?
0
 
LVL 53

Expert Comment

by:McKnife
ID: 20359839
What are you missing, everything needed was said. I mailed him my msi only for the comfort. Do you need it? Provide your mailadress. You would have to edit it of course, that is, edit the path and names inside the batch.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

23 Experts available now in Live!

Get 1:1 Help Now