Help - Search - Members - Calendar
Full Version: Silent install fonts ?
MSFN Forums > Unattended Windows Discussion & Support > Application Installs
Pages: 1, 2

   
Google Internet Forums Unattended CD/DVD Guide
Redman
How can we silent install fonts ?

thanx

Redman
MaDxCrEaM
I would imagine just make the directory on you unnatended cd $OEM$\$$\Fonts

Put them there, and they should be copied over during installation. If someone else could clarify this, as I have not tried it myself.
MCT
yes, i extract fonts during T-12 & everything works
Martin Zugec
The same solution...
a06lp
wait, a reg tweak is not needed in addition?

i copy them to system32, AND apply this regtweak:
CODE
;Install 4 Custom Fonts
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Linkin Park 1.0 (TrueType)"="LinkinPark.ttf"
"WilhelmKlingsporGotisch (TrueType)"="WILHLMK.TTF"
"A.M.P. (TrueType)"="amp.TTF"
"Astigma Regular (TrueType)"="a**.TTF"
MCT
ive had no need for a reg tweak
a06lp
so simply putting (or extracting via SFX archive after installation is totally finished) to Windows\Fonts will work?

can ppl confirm this in real-world tests?
big poppa pump
You need to copy over the fonts to the fonts directory and as mentioned run the regtweak from cmdlines.txt to register your font.
maxXPsoft
I use a different method which was discussed long ago
]To simply register just open the folder if you don't mind using that method.
In cleanup.cmd
CODE
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Runonce /V RegisterFonts /D "%SystemRoot%\explorer.exe /e,/root,%systemroot%\Fonts"

All that does is open the folder and you just close it. Can use a Kill on it if you want.
Saves all that yada yada yada ttf
Anderz
I have put all my new fonts in $$\Fonts and run the thing mentioned by maxXPsoft.

It works kike a charm!

PS: Only using $$\Fonts didn't work for me dudes ...
Astalavista
QUOTE (MCT @ Jan 14 2005, 05:46 PM)
yes, i extract fonts during T-12 & everything works

MCT can u pls give more details?

Are you using winrar sfx?

with it extracting to

%systemroot%\Fonts\
SiMoNsAyS
only rar-sfx fonts to the fonts folder don't work for me. i use to open the fonts folder and after a few seconds kill the process

ps: alt. you can open word to register fonts newwink.gif
SyntaxError
I have my fonts in a winrar sfx silent extract directly to %windir%\fonts from RunOnceEx.cmd and they install with no problem. What's so hard about that?

Edit: never mind. seems my apps can't see the new fonts. DOH!
Astalavista
hhehehe MCT and Simonsays are both senior member they know what they are talking about.
MCT
hey, sorry, ive been @ work, havent had a chance 2 reply tongue.gif

but yes, all i do is use a winrar SFX & install it & T-12 extracting to %Windir%\Fonts i only install 2 fonts & both are recognised by all my programs
SyntaxError
So I have the right idea, I just need to put the fonts.exe command in cmdlines.txt instead of runonceex.cmd ?
Astalavista
MCT i just tried it and it works.
SyntaxError
I put "fonts.exe" (winrar silent sfx) in cmdlines.txt and placed the file itself in the $OEM$ folder. The fonts extracted silently at T-12 but after the final reboot, windows apps could not see the fonts. I had to open the fonts folder and install them again manually.

There has got to be a way to install a couple dozen fonts unattended without having to add a reg entry for each font.

Any ideas?
Astalavista
i installed 20 fonts using mct method and it worked.

what does your winrar.sfx look like?

post your comments
SyntaxError
;The comment below contains SFX script commands

Path=%windir%\fonts
SavePath
Silent=1
Overwrite=2


I'm installing 36 true type fonts.
Astalavista
humm

mine is similar

but i hv mine in %systemroot%\fonts\

just curious did u patch your wfp?
SyntaxError
By "wfp" I think you mean windows file protection. If this is the case, then no, I haven't disabled it. Haven't had a need to do so.

The only patched system files i use are uxtheme.dll, ntoskrnl.exe for my custom bootscreen, logonui.exe, logon.scr, and logoff.exe files.
Astalavista
I dont know what to tell u i just tested MCT method again

on another workstation and it installed all the fonts.

and i just check with Office 2003 it recognizes all the fonts

just did the sfx method.
SyntaxError
Might have something to do with trying my UA on a dell dimension 3000 on the last couple test runs. Those **** dells make xp act funny sometimes. Then again, it's most likely just another random bug in windows cause I've had similar problems with my apps, sometimes they get registered and sometimes they don't.

Where are the fonts that come with xp stored on the cd? Maybe that file could be unpacked, then add the new fonts to it, and repack it.
Astalavista
nope i dont think that would work. It has been tried with no success in the past.

hey! I love dell systems i hv a couple of the XPS and they still work ok.

dont blame the machine... tongue.gif blame the one writing and preparing the code.
SyntaxError
My code works fine other than the fonts part. And the dell I mentioned is rented so it's a real POS lol. I've installed my corporate xp cd on (not UA) on several dells before with no trouble though. I think it's just windows being it's lame buggy self as usual. These fonts aren't really important so I might just leave them out.
Redman
Thanx guys this herlp me alot smile.gif

Redman
Dobby
QUOTE (Astalavista @ Jan 17 2005, 03:17 AM)
I dont know what to tell u i just tested MCT method again

on another workstation and it installed all the fonts.

and i just check with Office 2003 it recognizes all the fonts

just did the sfx method.

Didn't someone say that opening Word will register the fonts? Astalavista, is that perhaps why it's working for you if you are checking by opening an Office app?

Just a thought.
asbsamsf
"fontinst.exe" is a small application from microsoft; Copy the font into the %windir%\fonts folder and then, register the fonts. The font is available even before the reboot. also send a message to all top-level windows in the system. This message notifies other applications that the font table has been added a font.


CODE
fontinst.exe  /F fontinst.inf


fontinst.inf

QUOTE
[fonts]Arial.TTF
ArialBD.TTF
Ariali.TTF
ArialBI.TTF
Cour.TTF
CourBD.TTF
Couri.TTF
CourBI.TTF
Times.TTF
TimesBD.TTF
Timesi.TTF
TimesBI.TTF
SiMoNsAyS
@asbsamsf, many thanks man, it will solve my font-problems! biggrin.gif thumbup.gif
asbsamsf
@SiMoNsAyS
u r welcome welcome.gif
Kelsenellenelvian
I am sorry but I must be missin something I can't get the font install program to work right and I am just tryin to install 1 font with it.
asbsamsf
Fontinst.exe, fontinst.inf and all fonts should be in the same folder
Kelsenellenelvian
That is what I was doing wrong I still had my sfx file installing the fonts. I works awesomely thank you very much!!!!!


P.S. I was up half the night with this very problem.
Thank you.
asbsamsf
An example fontinst.zip (54,2 KB)

P.S. you can call just fontinst.exe if you name your inf file "fontinst.inf" otherwise you have to call "fontinst.exe /f whatever.inf"
GTiger
Isn't it necessary to add a line to delete the Fontinst.exe and Fontinst.ini after they do the job?

Thanks!
Astalavista
QUOTE
asbsamsf


awesome dude... good work! new style.
lilweirddude
nice program, makes installing fonts easier
asbsamsf
QUOTE (GTiger @ Feb 9 2005, 01:13 AM)
Isn't it necessary to add a line to delete the Fontinst.exe and Fontinst.ini after they do the job?

Thanks!

u can use IExpress Packager or winrar sfx , install Fontinst.exe, and it'll be done; install, delete , ....

P.S.
i've found a tool "installfont.exe" in wpi package, usage:

CODE
REM Font installation - the easy way
for /R %%i in ( *.ttf ) do (
echo Installing font %%~ni.ttf
copy /Y "%%~fi" "%windir%\Fonts" > nul
"installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul
)
GTiger
QUOTE (asbsamsf @ Feb 9 2005, 03:26 AM)
u can use  IExpress Packager or winrar sfx , install Fontinst.exe, and it'll be done; install, delete , .... 

P.S.
i've found a tool "installfont.exe" in wpi package, usage:

CODE
REM Font installation - the easy way
for /R %%i in ( *.ttf ) do (
echo Installing font %%~ni.ttf
copy /Y "%%~fi" "%windir%\Fonts" > nul
"installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul
)

Thanks, man! But now I'm not sure about what method I'll use to install my 2.378 extra fonts! I think I'll try work only with command lines, following your good tips!

thumbup.gif
fmxer
QUOTE (asbsamsf @ Feb 9 2005, 03:26 AM)
QUOTE (GTiger @ Feb 9 2005, 01:13 AM)
Isn't it necessary to add a line to delete the Fontinst.exe and Fontinst.ini after they do the job?

Thanks!

u can use IExpress Packager or winrar sfx , install Fontinst.exe, and it'll be done; install, delete , ....

P.S.
i've found a tool "installfont.exe" in wpi package, usage:

CODE
REM Font installation - the easy way
for /R %%i in ( *.ttf ) do (
echo Installing font %%~ni.ttf
copy /Y "%%~fi" "%windir%\Fonts" > nul
"installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul
)

*




Can you please explain this alittle further?
You got a file called 'installfont.exe', you put that in a folder with a file called 'fonts.inf' and all your fonts, then you paste that code in the inf file?

thanks smile.gif
asbsamsf
please READ this post if you like this method, then use it.. , if not, forget every thing about 'Fontinst.exe' and 'fonts.inf' and with clear maind READ
QUOTE
P.S.
i've found a tool "installfont.exe" in wpi package, usage:
CODE
REM Font installation - the easy way
for /R %%i in ( *.ttf ) do (
echo Installing font %%~ni.ttf
copy /Y "%%~fi" "%windir%\Fonts" > nul
"installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul
)

this code is "command lines" to be meant for Batch Files ".bat; .cmd"
to use 2nd method
You get a file called 'installfont.exe', you put that in a folder with a 'Batch File' and all your fonts, then you run the 'Batch File'?
totoymola
Hey asbsamsf! Thank you for introducing this tool to us. biggrin.gif
asbsamsf
QUOTE (totoymola @ Feb 19 2005, 10:26 AM)
Hey asbsamsf!  Thank you for introducing this tool to us.  biggrin.gif
*


bon appétit! welcome.gif
totoymola
Question:

Which types for fonts are supported by the FontInst.exe?
SiMoNsAyS
@totoymola tried *.ttf and *.fon without problems. i suppose all the fonts recognized by windows.
totoymola
Hmm... I think not all. Because I tried installing pfm fonts, and it didn't work. Or maybe there's something wrong with my inf. smile.gif
bufoncosmico
sorry, but i still dont get it no.gif

using the fontinst.exe method; i need to put in a sfx all the fonts, fontinst.inf, and fontinst.exe, make the sfx extract everything to the fonts folder in windows and then call the command to register the fonts?

if so:
what should be the comment in the sfx?
i run it in the runonce.cmd, or in the cmdlines.txt ?
bufoncosmico
ok, i finally got it to work...i dunno if its the right or the easyest way, but this work for me:

made 2 sfx, one to copy my fotns to the fonts directory, and another sfx with the fonts, fontsinst.exe, and fontsinst.inf to decompress to a temporary folder, and then run fontinst.exe /f fontinst.inf. All that in my RunOnceEx.cmd

thats it, and it work perfectly... yes.gif
totoymola
QUOTE
made 2 sfx, one to copy my fotns to the fonts directory, and another sfx with the fonts, fontsinst.exe, and fontsinst.inf to decompress to a temporary folder, and then run fontinst.exe /f fontinst.inf.

You dont need your first sfx. Your second one is enough.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.