Archive: Install & Reg Fonts - scripting question


Install & Reg Fonts - scripting question
I'm making an installer for my fonts in Vista.

I have read through the forums, and read the user guide, and I have a script that works.

My question, however, is this:

When I get to this part ...

!insertmacro InstallTTFFont "..\Documents\fonts\BloodOmen.ttf"
!insertmacro InstallTTFFont "..\Documents\fonts\BIGBB__.TTF"
!insertmacro InstallTTFFont "..\Documents\fonts\28DaysLater.ttf


How do I make it "!insertmacro InstallTTFFont" for all 390 of my fonts?

EDIT: Corrected typos :igor:


OOPS! My bad ... I forgot to attch my script!


I'm Chinese, my English is not so good, if you understand it is enough.

You can use a BATch file to create the Code:

1.Open Notepad, type:

For %%f in (*.ttf) do echo !insertmacro InstallTTFFont "..\Documents\fonts\%%f">>code.txt
The above content must be written on one line.

2.Select "File->Save as...", select the file type as "All Files", anyname, but the extention of the file should be ".cmd" or "bat". e.g. "createcode.bat".

3.Put the BATch file to the directory "Documents\fonts", and run the BATch file. The BATch file create a text file in the same directory, then you can copy the code easily.

Thank you jiake. I will try that right now. :)


That works great!
:up:YOU ROCK MAN!!:D