• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8125
  • Last Modified:

Install font using MSI

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
jeffreychorba
Asked:
jeffreychorba
  • 11
  • 7
1 Solution
 
McKnifeCommented:
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
 
jeffreychorbaAuthor Commented:
I tried running this program and I get an error comctl32.ocx is not registered.....  ?
0
 
McKnifeCommented:
You need the vbruntimes, first link I could grab was http://www.auchnet.de/computer/programme/binaries/vbruntimes.zip
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
McKnifeCommented:
Put them into c:\windows\system32
0
 
jeffreychorbaAuthor Commented:
Same error after copying the files and rebooting.
0
 
jeffreychorbaAuthor 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!

0
 
McKnifeCommented:
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
 
McKnifeCommented:
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
 
jeffreychorbaAuthor 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?
0
 
McKnifeCommented:
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
 
jeffreychorbaAuthor Commented:
administrato-r full
system- full
power users- full
users- read

0
 
McKnifeCommented:
Grant full rights to the domain account computername$ (mypc$ for example) as well and try again.
0
 
jeffreychorbaAuthor Commented:
Did that and it did not help.
0
 
McKnifeCommented:
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
 
jeffreychorbaAuthor 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
0
 
McKnifeCommented:
You got mail
0
 
HypervizorCommented:
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
 
McKnifeCommented:
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

  • 11
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now