JG Vimalan's Blog

It is all about coding!

Installing font using C# setup project

One of my team member asked about installing font to the system when a C# application is installed. Here are the steps,

a. Create a C# setup project. Open ‘File System’. Right click on ”File System’ and select ‘Add Special Folder’, choose ‘Fonts Folder’.

b.  Right click ‘Fonts Folder’ and select Add->File

c. Browse and select the font file(s) you wish to install.

d. Ensure that, the register property of the font file is set to vsdrfFont.

e. Now, run the setup. Once the setup is completed, you can find that, any font dialog in the system displays the installed font.

If you wish the font should remain in the system even after uninstalling the application, set the permanent’ property of the font file to true.


February 22, 2011 - Posted by | C#.NET


  1. neatly explained. thanks for posting.

    Comment by Saravana | February 25, 2011 | Reply

  2. this is what i am looking for, thanks a lot

    Comment by Kavitha | March 2, 2011 | Reply

  3. Great articale! I have a doubt, how can I write log for each step executed by the .NET installer?

    Comment by Raghu | May 31, 2011 | Reply

  4. very good.

    Comment by Payman | September 30, 2011 | Reply

  5. Good one.Its good not use private font collection as it needs extra coding.

    Comment by askthetechexpert | October 9, 2011 | Reply

  6. Thanks

    Comment by Durgadas | January 30, 2012 | Reply

  7. good article..thanks

    Comment by abc | September 5, 2012 | Reply

  8. Cool one. Also, pls explain abt the Target File Name in Properties window

    Comment by MadhuV | November 15, 2012 | Reply

  9. thank you, it is so clear and easy 😀

    Comment by MantasAnni | January 8, 2014 | Reply

  10. Nice job indian guy!

    Comment by F | March 30, 2014 | Reply

  11. Thanks you, man..

    Comment by Yousef | August 22, 2015 | Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: