We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Install font using MSI

Medium Priority
8,825 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
Comment
Watch Question

CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
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.

Author

Commented:
I tried running this program and I get an error comctl32.ocx is not registered.....  ?
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
You need the vbruntimes, first link I could grab was http://www.auchnet.de/computer/programme/binaries/vbruntimes.zip
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Put them into c:\windows\system32

Author

Commented:
Same error after copying the files and rebooting.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:

Author

Commented:
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!

CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
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.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
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.

Author

Commented:
I see that that could cause a problem, but the system I am testing it on had the file removed from the fonts folder?
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
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?

Author

Commented:
administrato-r full
system- full
power users- full
users- read

CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Grant full rights to the domain account computername$ (mypc$ for example) as well and try again.

Author

Commented:
Did that and it did not help.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
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.

Author

Commented:
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
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
You got mail

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
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?
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.