Improve company productivity with a Business Account.Sign Up

x
?
Solved

Install font using MSI

Posted on 2006-10-26
19
Medium Priority
?
8,193 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 59

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 59

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
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
LVL 59

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 59

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 59

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 59

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
 

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 59

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 59

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 59

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 59

Accepted Solution

by:
McKnife earned 2000 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 59

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

595 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