Create a MSI file to install a custom font

Create a MSI file to install a custom font
Create a MSI file to install a custom font

Table of Contents

Estimated reading time: 1 minutes

If you would like to build an installer to install a custom font on a machine, then you can use Visual Studio to do this.

Instructions

All you have to do is to follow these simple instructions:

Open Visual Studio and start a new installer project. Then carry out the following steps:

Right-click on the File System on Target Machine, Add Special Folder > Fonts Folder:

Create a MSI file to install a custom font 1
Click to enlarge

Once you have created the Fonts folder then place your font file there:

Create a MSI file to install a custom font 2
Click to enlarge

This will ensure that the installer places the font file into the Fonts folder within Windows, however, you need to also register the font.

To register the font, you have to go to the Properties for each font file and change Register from vsdrfDoNoRegister to vsdrfFont:

Create a MSI file to install a custom font 3
Click to enlarge
Create a MSI file to install a custom font 4
Click to enlarge

When you have made these changes, you can then generate the installer and test. You should then find that the font is successfully installed.

Feedback

If you have any questions or comments on this guide, then please feel free to leave us a message using our comments system below.

Share this content:

Click to rate this post!
[Total: 1 Average: 5]
Avatar for Andrew Armstrong

About Andrew Armstrong

Founder of TechyGeeksHome and Head Editor for over 15 years! IT expert in multiple areas for over 26 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by Andrew Armstrong

7 Comments on “Create a MSI file to install a custom font”

  1. Thanks big time AJ. Heads up for other SA’s trying to push out MSI’s (for fonts, etc.) via Intune…these instructions for the MSI work fabulously. Some extra information for newbies:

    Once you download Visual Studios 2017 (Community version is fine), you have to make sure you have the installer extension installed to be able to create an installer project. (see https://stackoverflow.com/questions/44286704/create-setup-msi-installer-in-visual-studio-2017)

    Also, the system I did this on did not have the fonts installed yet, so I did not have to do the extra step of changing the Register property for each font.

    When you finish putting the fonts into the project, make sure you build the project and you can pull the .msi file from the build folder stated in the output at the bottom of the Visual Studio IDE.

    As an FYI, if you want to deploy this MSI with Intune (using these instructions [I have no tie to the author]: https://www.anoopcnair.com/intune-beginners-guide-deploy-msi-application/), this MSI works perfectly with Intune. and /quiet command line arguments.

Leave a Reply

Your email address will not be published. Required fields are marked *