I’m trying use a Visual Studio 2010 setup project to package a set of Type 1 fonts into a MSI file for easy installation.
I’ve configured my setup project to place all the PFM and PFB files in the Fonts folder, set all the PFM files to vsdrfFont and fixed the naming issue mentioned here:
http://cjwdev.wordpress.com/2011/03/14/installing-non-truetype-fonts-with-visual-studio-installer/
However, this isn’t working for Type 1 fonts.
The Type 1 font files are installed but the font is still not recognized and doesn’t appear in the Fonts window.
If installed manually, Type 1 fonts are registered under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Type 1 Installer\Type 1 Fonts and work fine.
How can the same result be achieved with a setup project?
Here is a solution that involves an MSI custom action. I have written in using C#, but any other language capable of calling a DLL can be user. Here is a tutorial link for C#: Walkthrough: Creating a Custom Action
As far as I know,
InstallFontFileis undocumented, but allows to install the font permanently. Use this at your own risk.Note: you still need to modify the .MSI to ensure the Fonts file have a FontTitle as described in the link you gave.