Jump to content

Silent install fonts ?


Redman

Recommended Posts

The ones you don't run are the safer.

The ones you don't even download are the safest.

Anyway, try this :

@echo off
Copy /Y MyHugeFontFolder\*.ttf %windir%\fonts
del /f/q %appdata%\GDIPFONTCACHEV1.DAT
shutdown -l -t 5 -c "log on back to refresh font cache"

:thumbup (this is an untested code)

++

Edited by Delprat
Link to comment
Share on other sites


Guest mikorist

This not work for me when i put fonts in unnatended cd

and start

@echo off
Copy /Y MyHugeFontFolder\*.ttf %windir%\fonts
del /f/q %appdata%\GDIPFONTCACHEV1.DAT
shutdown -l -t 5 -c "log on back to refresh font cache"

Tell me what i do for unnatended cd ?

I BACK TO MY

installfont.exe :yes:

Edited by mikorist
Link to comment
Share on other sites

This not work for me when i put fonts in unnatended cd

and start

Tell me what i do for unnatended cd ?

I lost 4 h for THIS STUPID CODE!!

I BACK TO MY

installfont.exe :yes:

Is this current topic in the "Unattended Windows" forum ?

Not at all :no:

The code i gave refreshes the current user's font cache (the "font cache" is something like the "icon cache" : you may need to refresh it if you replace an existing font file). I didn't stated it can do anything more. (the script says itself "log on back to refresh font cache" :wacko: )

If you want a full font slipstream, look for "Fully Slipstream Fonts" thread in HFSLIP forum. The batch i posted there works in conjonction with HFSLIP (you can rename it HFSPLUG2.CMD and throw it in HFTOOLS to let HFSLIP run it, or you can run FONTSLIP manually before HFSLIP), and it uses FONTINST.EXE to get the correct registry entries. (in fact, you can bypass HFSLIP if you know how to deal with the files created by FONTSLIP : a reg hive HIVEFNT.INF to instal via txtsetup.sif [HiveInfs.Fresh], and FON/TTF files to cab & refer into txtsetup.sif [sourceDiskFiles] & dosnet.inf [Files])

And don't forget that all this "slipstream" stuff is needed only if you need your fonts during GUI setup (ex. setup billboard customisation, etc.).

++

Link to comment
Share on other sites

Why they were not be redirectng in "current topic" ?? :rolleyes:

Any ideas?? : ;)

I'm not a mod. But i strongly dislike reading posts saying my lines are "stupid" with no more explanation, and with no real understanding of what were these lines. And i like them even less when they are in bold, with "superior sized" characters... (yes, red colored, bold, and size=3... you edited it, proving you feel wrong)

Since you quoted lots, you must know what is the good solution for you (you seem to have ignored most of them...)

Btw, i was not knowing the thread you refer to (rvm addon) when i posted my batch.

++

Edited by Delprat
Link to comment
Share on other sites

  • 1 year later...
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. :)

i'm having the same problem.. my pfm fonts don't seem to get added. they are the only one's i have tried, however.

Link to comment
Share on other sites

I'm having the same issue with the TYPE 1 fonts (PFM), you can copy the files over but it doesn't show up. Easily way for Type 1 is to open your Windows\Font folder and just drag the PFM files over. I wish there can be a more automated way though.

Link to comment
Share on other sites

  • 1 year later...

PFM font files are not compatible with Windows and only can be installed by dragging them in the fonts folder via explorer if they have a PFB script file. I use a conversion tool from fontlab dot com to convert them usualy to TTF before I include them in a package such as a installer.

http://pubory.uv.ro/pub/index.php?thumbnail=./dev/fontinst00.png

 

Font files can be best installed on Windows XP or newver creating a compact package such a microsoft cabinet file with a information file wich can be included or merged with another pack later.

There are more ways to create a inf file. The most hard one is for Windows 95 using fontreg and the most easy is using fontinst.

I use IExpress Wizard included in Windows to make standallone selfextract cabinet files and is best if this is done / build on the lower version of Windows witch should be supported using or including last versions of system files that ever work.

http://pubory.uv.ro/pub/index.php?thumbnail=./dev/fontinst01.png

 

 

Will show as example the "European Union Expansion Font Update" for both Windows 9x and NT based.

1.

The layout inf file using FontReg should look like this, FontsUPD.inf:
 

; FontsUPD.INF;; This is the Setup information file for some optional aditional fonts; not included in the Windows 98 product.;[version]LayoutFile= FontsUPD.inf, Layout.inf, Layout1.inf, Layout2.infsignature="$CHICAGO$"SetupClass=BASE[SourceDisksNames]1 = "Fonts Files Upgrade for Windows 98-XP", , 01[SourceDisksFiles]PANMAP.DLL=1FONTREG.EXE=1FONTEXT.DLL=1MFC30.DLL=1FONTVIEW.EXE=1ARIAL.TTF=1ARIAL__R.TTF=1ARIAL_YM.TTF=1ARIALB_R.TTF=1ARIALBD.TTF=1ARIALBI.TTF=1ARIALBIR.TTF=1ARIALCAPS.TTF=1ARIALI.TTF=1ARIALI_R.TTF=1ARIALN.TTF=1ARIALNB.TTF=1ARIALNBI.TTF=1ARIALNI.TTF=1ARIALUNI.TTF=1ARIBLK.TTF=1ARLRDBDO.TTF=1ARLRDBDT.TTF=1CALIBRI.TTF=1CALIBRI0.TTF=1CALIBRIB.TTF=1CALIBRII.TTF=1CALIBRIZ.TTF=1SEGOE.TTF=1SEGOEB.TTF=1SEGOEPR.TTF=1SEGOEPRB.TTF=1SEGOESC.TTF=1SEGOESCB.TTF=1SEGOEUI.TTF=1SEGOEUIB.TTF=1SEGOEUII.TTF=1SEGOEUIL.TTF=1SEGOEUIZ.TTF=1SEGUIBD.TTF=1SEGUIBK.TTF=1SEGUISB.TTF=1SEGUISYM.TTF=1TIMES.TTF=1TIMESBD.TTF=1TIMESBI.TTF=1TIMESI.TTF=1TAHOMA.TTF=1TAHOMABD.TTF=1TREBUC.TTF=1TREBUCBD.TTF=1TREBUCBI.TTF=1TREBUCIT.TTF=1VERDANA.TTF=1VERDANAB.TTF=1VERDANAI.TTF=1VERDANAZ.TTF=1[DestinationDirs]CustomTTFonts = 11 ; LDID_SYSfolder.sys = 11folder.win = 25MultiLangInf = 17[DefaultInstall]CopyFiles = folder.sys, folder.win, CustomTTFontsAddReg = folder.addre[BaseWinOptions]CustomTTFonts.Base[CustomTTFonts.Base]CopyFiles = folder.sys, folder.win, CustomTTFontsAddReg = folder.addreUpdateInis= CustomTTFonts.inis;** Add Registry Entries ***;** Register Font Review for Win95 ***[folder.addreg]HKCR,CLSID\BD84B381-8CA2-1069-AB1D-08000948F534,,,"PANOSE Core Mapper"HKCR,CLSID\BD84B381-8CA2-1069-AB1D-08000948F534\InprocServer32,,,"panmap.dll"HKCR,CLSID\BD84B381-8CA2-1069-AB1D-08000948F534\InprocServer32,ThreadingModel,,"Apartment"HKCR,CLSID\BD84B380-8CA2-1069-AB1D-08000948F534,,,"%Font_Folder_Desc%"HKCR,CLSID\BD84B380-8CA2-1069-AB1D-08000948F534\InProcServer32,,,"fontext.dll"HKCR,CLSID\BD84B380-8CA2-1069-AB1D-08000948F534\InProcServer32,ThreadingModel,,"Apartment"HKCR,CLSID\BD84B380-8CA2-1069-AB1D-08000948F534\DefaultIcon,,,"fontext.dll, -101"HKCR,CLSID\BD84B380-8CA2-1069-AB1D-08000948F534\Hierarchical,,,"0"HKCR,ttffile\shellHKCR,ttffile\shell\openHKCR,ttffile\shell\open\command,,,"%25%\fontview.exe %%1"HKCR,ttffile\shell\printHKCR,ttffile\shell\print\command,,,"%25%\fontview.exe /p %%1"HKCR,fonfile\shellHKCR,fonfile\shell\openHKCR,fonfile\shell\open\command,,,"%25%\fontview.exe %%1"HKCR,fonfile\shell\printHKCR,fonfile\shell\print\command,,,"%25%\fontview.exe /p %%1"; Set the System attribute on the Fonts folder:; R=1; H=2; S=4; HS=6; SHR=7HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Win,,,%25%HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Win,FONTS,,"FONTS,4";****************************************************;** Copy files ***;**************************************************[folder.sys]panmap.dllfontreg.exefontext.dllmfc30.dll[folder.win]fontview.exe,,,8;****************************************************;*** This section added for Custom Fonts Support ***;****************************************************[CustomTTFonts]; the "8" flag forces a rename since the files may be in use and we can't detect it.ARIAL.TTF,,,8ARIAL__R.TTF,,,8ARIAL_YM.TTF,,,8ARIALB_R.TTF,,,8ARIALBD.TTF,,,8ARIALBI.TTF,,,8ARIALBIR.TTF,,,8ARIALCAPS.TTF,,,8ARIALI.TTF,,,8ARIALI_R.TTF,,,8ARIALN.TTF,,,8ARIALNB.TTF,,,8ARIALNBI.TTF,,,8ARIALNI.TTF,,,8ARIALUNI.TTF,,,8ARIBLK.TTF,,,8ARLRDBDO.TTF,,,8ARLRDBDT.TTF,,,8CALIBRI.TTF,,,8CALIBRI0.TTF,,,8CALIBRIB.TTF,,,8CALIBRII.TTF,,,8CALIBRIZ.TTF,,,8SEGOE.TTF,,,8SEGOEB.TTF,,,8SEGOEPR.TTF,,,8SEGOEPRB.TTF,,,8SEGOESC.TTF,,,8SEGOESCB.TTF,,,8SEGOEUI.TTF,,,8SEGOEUIB.TTF,,,8SEGOEUII.TTF,,,8SEGOEUIL.TTF,,,8SEGOEUIZ.TTF,,,8SEGUIBD.TTF,,,8SEGUIBK.TTF,,,8SEGUISB.TTF,,,8SEGUISYM.TTF,,,8TIMES.TTF,,,8TIMESBD.TTF,,,8TIMESBI.TTF,,,8TIMESI.TTF,,,8TAHOMA.TTF,,,8TAHOMABD.TTF,,,8TREBUC.TTF,,,8TREBUCBD.TTF,,,8TREBUCBI.TTF,,,8TREBUCIT.TTF,,,8VERDANA.TTF,,,8VERDANAB.TTF,,,8VERDANAI.TTF,,,8VERDANAZ.TTF,,,8;*** TTF End[CustomTTFonts.inis]win.ini,fonts,,"Arial (OpenType) = ARIAL.TTF"win.ini,fonts,,"Arial RO (TrueType) = ARIAL__R.TTF"win.ini,fonts,,"Arial Simbol (OpenType) = ARIAL_YM.TTF"win.ini,fonts,,"Arial RO Bold (TrueType) = ARIALB_R.TTF"win.ini,fonts,,"Arial Bold (OpenType) = ARIALBD.TTF"win.ini,fonts,,"Arial Bold Italic (OpenType) = ARIALBI.TTF"win.ini,fonts,,"Arial RO Bold Italic (TrueType) = ARIALBIR.TTF"win.ini,fonts,,"Arial Caps (OpenType) = ARIALCAPS.TTF"win.ini,fonts,,"Arial Italic (OpenType) = ARIALI.TTF"win.ini,fonts,,"Arial RO Italic (TrueType) = ARIALI_R.TTF"win.ini,fonts,,"Arial Narrow (OpenType) = ARIALN.TTF"win.ini,fonts,,"Arial Narrow Bold (OpenType) = ARIALNB.TTF"win.ini,fonts,,"Arial Narrow Bold Italic (OpenType) = ARIALNBI.TTF"win.ini,fonts,,"Arial Narrow Italic (OpenType) = ARIALNI.TTF"win.ini,fonts,,"Arial Unicode MS (OpenType) = ARIALUNI.TTF"win.ini,fonts,,"Arial Black (TrueType) = ARIBLK.TTF"win.ini,fonts,,"Arial Rouded MT Bold (OpenType) = ARLRDBDO.TTF"win.ini,fonts,,"Arial Rouded Bold (TrueType) = ARLRDBDT.TTF"win.ini,fonts,,"Calibri (OpenType) = CALIBRI.TTF"win.ini,fonts,,"Calibri Caps (OpenType) = CALIBRI0.TTF"win.ini,fonts,,"Calibri Bold (OpenType) = CALIBRIB.TTF"win.ini,fonts,,"Calibri Italic (OpenType) = CALIBRII.TTF"win.ini,fonts,,"Calibri Bold Italic (OpenType) = CALIBRIZ.TTF"win.ini,fonts,,"Segoe Condensed (OpenType) = SEGOE.TTF"win.ini,fonts,,"Segoe Condensed Bold (OpenType) = SEGOEB.TTF"win.ini,fonts,,"Segoe Print (OpenType) = SEGOEPR.TTF"win.ini,fonts,,"Segoe Print Bold (OpenType) = SEGOEPRB.TTF"win.ini,fonts,,"Segoe Script (OpenType) = SEGOESC.TTF"win.ini,fonts,,"Segoe Script Bold (OpenType) = SEGOESCB.TTF"win.ini,fonts,,"Segoe UI (OpenType) = SEGOEUI.TTF"win.ini,fonts,,"Segoe UI Bold (OpenType) = SEGOEUIB.TTF"win.ini,fonts,,"Segoe UI Italic (OpenType) = SEGOEUII.TTF"win.ini,fonts,,"Segoe UI Light (OpenType) = SEGOEUIL.TTF"win.ini,fonts,,"Segoe UI Bold Italic (OpenType) = SEGOEUIZ.TTF"win.ini,fonts,,"Segoe UI Bold Alfa (OpenType) = SEGUIBD.TTF"win.ini,fonts,,"Segoe UI Alfa (OpenType) = SEGUIBK.TTF"win.ini,fonts,,"Segoe UI Semibold (OpenType) = SEGUISB.TTF"win.ini,fonts,,"Segoe UI Simbol (OpenType) = SEGUISYM.TTF"win.ini,fonts,,"Tahoma (OpenType) = TAHOMA.TTF"win.ini,fonts,,"Tahoma Bold (OpenType) = TAHOMABD.TTF"win.ini,fonts,,"Trebuchet MS (OpenType) = TREBUC.TTF"win.ini,fonts,,"Trebuchet MS Bold (OpenType) = TREBUCBD.TTF"win.ini,fonts,,"Trebuchet MS Bold Italic (OpenType) = TREBUCBI.TTF"win.ini,fonts,,"Trebuchet MS Italic (OpenType) = TREBUCIT.TTF"; User-visible strings[Strings];Non-Localizable strings:;Localizable strings:MSFontSizeOptions="Font Size Options"TTFONTS ="True Type Fonts"CustomTTFonts ="Custom True Type Fonts"Font_Folder_Desc = "Fonts"Bold ="Bold"Italic ="Italic"Bold.Italic ="Bold Italic"PUI_DESC_FONTS = "Windows Setup - Fonts"PUI_VERSION = "4,10,1,1";Normal StringsCustom.Desc="Custom Fonts";end

Make sure that in wizard you include all files including the inf file if you plan to add a uninstall section, except the text files (License, etc.) to be show before and after extraction and the SED file used by the wizard.

In the wizard box select the layout information file:

http://pubory.uv.ro/pub/index.php?thumbnail=./dev/fontinst02.png

 

2.

Using fontinst both executable and layout information file have to be named "fontinst".
The layout file using FontInst should look like this, fontinst.inf:
 

[fonts]arial.ttfarial__r.ttfarial_ym.ttfarialb_r.ttfarialbd.ttfarialbi.ttfarialbir.ttfarialcaps.ttfariali.ttfariali_r.ttfarialn.ttfarialnb.ttfarialnbi.ttfarialni.ttfarialuni.ttfariblk.ttfarlrdbdo.ttfarlrdbdt.ttfcalibri.ttfcalibri0.ttfcalibrib.ttfcalibrii.ttfcalibriz.ttfsegoe.ttfsegoeb.ttfsegoepr.ttfsegoeprb.ttfsegoesc.ttfsegoescb.ttfsegoeui.ttfsegoeuib.ttfsegoeuii.ttfsegoeuil.ttfsegoeuiz.ttfseguibd.ttfseguibk.ttfseguisb.ttfseguisym.ttftimes.ttftimesbd.ttftimesbi.ttftimesi.ttftahoma.ttftahomabd.ttftrebuc.ttftrebucbd.ttftrebucit.ttftrebucbi.ttfverdana.ttfverdanab.ttfverdanai.ttfverdanaz.ttf

In this case select in the wizard box the fontinst.exe and IExpress will add automaticly the paramenters if any neccesary:

http://pubory.uv.ro/pub/index.php?thumbnail=./dev/fontinst03.png

 

I will post the SED file only for the fontinst:
 

[Version]Class=IEXPRESSSEDVersion=3[Options]PackagePurpose=InstallAppShowInstallProgramWindow=1;HideExtractAnimation=0HideExtractAnimation=1UseLongFileName=1InsideCompressed=0CAB_FixedSize=0CAB_ResvCodeSigning=0RebootMode=NInstallPrompt=%InstallPrompt%DisplayLicense=%DisplayLicense%FinishMessage=%FinishMessage%TargetName=%TargetName%FriendlyName=%FriendlyName%AppLaunched=%AppLaunched%PostInstallCmd=%PostInstallCmd%AdminQuietInstCmd=%AdminQuietInstCmd%UserQuietInstCmd=%UserQuietInstCmd%SourceFiles=SourceFiles[Strings]InstallPrompt=DisplayLicense=eula.txtFinishMessage=Microsoft European Union Expansion Font Update is now installed!TargetName=FontsEUupdate.EXEFriendlyName=Microsoft European Union Expansion Font Update!AppLaunched=fontinst.exePostInstallCmd=<None>AdminQuietInstCmd=UserQuietInstCmd=FILE0="ARIAL.TTF"FILE1="ARIAL__R.TTF"FILE2="ARIAL_YM.TTF"FILE3="ARIALB_R.TTF"FILE4="ARIALBD.TTF"FILE5="ARIALBI.TTF"FILE6="ARIALBIR.TTF"FILE7="ARIALCAPS.TTF"FILE8="ARIALI.TTF"FILE9="ARIALI_R.TTF"FILE10="ARIALN.TTF"FILE11="ARIALNB.TTF"FILE12="ARIALNBI.TTF"FILE13="ARIALNI.TTF"FILE14="ARIALUNI.TTF"FILE15="ARIBLK.TTF"FILE16="ARLRDBDO.TTF"FILE17="ARLRDBDT.TTF"FILE18="CALIBRI.TTF"FILE19="CALIBRI0.TTF"FILE20="CALIBRIB.TTF"FILE21="CALIBRII.TTF"FILE22="CALIBRIZ.TTF"FILE23="FONTINST.EXE"FILE24="FONTINST.INF"FILE25="SEGOE.TTF"FILE26="SEGOEB.TTF"FILE27="SEGOEPR.TTF"FILE28="SEGOEPRB.TTF"FILE29="SEGOESC.TTF"FILE30="SEGOESCB.TTF"FILE31="SEGOEUI.TTF"FILE32="SEGOEUIB.TTF"FILE33="SEGOEUII.TTF"FILE34="SEGOEUIL.TTF"FILE35="SEGOEUIZ.TTF"FILE36="SEGUIBD.TTF"FILE37="SEGUIBK.TTF"FILE38="SEGUISB.TTF"FILE39="SEGUISYM.TTF"FILE40="TAHOMA.TTF"FILE41="TAHOMABD.TTF"FILE42="TIMES.TTF"FILE43="TIMESBD.TTF"FILE44="TIMESBI.TTF"FILE45="TIMESI.TTF"FILE46="TREBUC.TTF"FILE47="TREBUCBD.TTF"FILE48="TREBUCBI.TTF"FILE49="TREBUCIT.TTF"FILE50="VERDANA.TTF"FILE51="VERDANAB.TTF"FILE52="VERDANAI.TTF"FILE53="VERDANAZ.TTF"[SourceFiles]SourceFiles0=[SourceFiles0]%FILE0%=%FILE1%=%FILE2%=%FILE3%=%FILE4%=%FILE5%=%FILE6%=%FILE7%=%FILE8%=%FILE9%=%FILE10%=%FILE11%=%FILE12%=%FILE13%=%FILE14%=%FILE15%=%FILE16%=%FILE17%=%FILE18%=%FILE19%=%FILE20%=%FILE21%=%FILE22%=%FILE23%=%FILE24%=%FILE25%=%FILE26%=%FILE27%=%FILE28%=%FILE29%=%FILE30%=%FILE31%=%FILE32%=%FILE33%=%FILE34%=%FILE35%=%FILE36%=%FILE37%=%FILE38%=%FILE39%=%FILE40%=%FILE41%=%FILE42%=%FILE43%=%FILE44%=%FILE45%=%FILE46%=%FILE47%=%FILE48%=%FILE49%=%FILE50%=%FILE51%=%FILE52%=%FILE53%=

I hope this will help. smile.gif

Edited by florydude
Link to comment
Share on other sites

  • 2 weeks later...

Sure, I will try a workaround with your method next time I will create a personal fonts package with @ 3000 fonts :-) that I most need, all types supported couse some are comercial and I can't convert nor play with them.

This method I showed is just a simple implementation using only core MS Windows features that any newbie can use to backport some fonts for friends or a printer shop were he whan't to open hes documents.

BTW,

is a small tutorial:

Sorry about my por English. :D

Edited by florydude
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...