Installing the font on the client machine

I am using Visual Studio 2008 and the built-in installers for a C # client application. How can I use this installer to install a font on a client machine (if it does not already exist)?

+7
installer c # fonts visual-studio-2008
source share
4 answers

In VS2005 (so I also assume 2008), right-click the file system on the target machine, add a special folder -> font folder, and then place the font file there.

+10
source share

For me, Timothy Carter was basically right:

"right-click the file system on the target machine, add a special folder → a font folder, then place the font file there."

But that was not enough. Fonts are not actually installed as system fonts.

To install fonts, I had to visit Properties for each font file and change Register = vsdrfDoNoRegister to Register = vsdrfFont. After that, the created installation file will also install the font!

+3
source share

Take a look at this article.

http://www.atakala.com/Browser/Item.aspx?user_id=amos&dict_id=83

The most important call is the AddFontResource Win32 API call, although the described sequence of operations must be followed in order for you to have a working font setup on the system.

http://msdn.microsoft.com/en-us/library/ms534231(VS.85).aspx

The AddFontResource function adds a font resource from the specified file to the system font table. The font can subsequently be used to display text by any application.

+1
source share

I use InnoSetup to deliver my VS applications. It allows you to install fonts from your system to the client system.

I have never tested on Windows 7 or Vista (you may have some resolution issues).

Remember that not all fonts are freely distributed.

-one
source share

All Articles