PDA

View Full Version : Installing Fonts



NewsArchive
03-04-1998, 01:00 AM
How can I use InstallShield that ships with Delphi to include some fonts in
the installation? If I just put them in <WINDIR>\Fonts, they won't be
properly installed, hence not visible in the application until the user go
into the control panel/fonts and opens them, which somehow registers them. I
know there is a bug in this version, but is there a workaround (an API call)
that I can put in Delphi to be executed during first execution? Also, does
this problem exist in InstallShield Professional 5.0 Free edition that comes
with MS Visual Studio 97?

NewsArchive
03-04-1998, 01:00 AM
On Wed, 4 Mar 1998 13:19:21 -0500, "Goran Alimpic" <goran@mhsystems.com>
wrote:
>into the control panel/fonts and opens them, which somehow registers them. I
>know there is a bug in this version, but is there a workaround (an API call)
>that I can put in Delphi to be executed during first execution? Also, does

You might try to use <FONTDIR>. However I am not sure if that helps.
Otherwise you will have to register those fonts manually with a DLL. You
can also upgrade to Express2.

Stefan
ellipse data systems

NewsArchive
04-06-1998, 12:00 AM
Hi,
there is also a function on InstallSite ( http://www.ibv-tools.de )

Stefan Krueger
Software Engineer
skrueger@usa.net

*** InstallSite - Free resources for setup developers
*** http://www.ibv-tools.de

Nica Faustino schrieb in Nachricht <35254D75.1B0FE1F9@installshield.com>...
>Please go to http://www.installshield.com and then click on Support and
>then click on Knowledge base and type Q100057 as article#. This article
>will give you information about installing fonts on Windows operating
>systems.
>
>Hope that helps!
>
>Nica
>Software Consultant
>nicaf@installshield.com
>
>
>Alla Cheidvasser wrote:
>
>> How can my setup program install Wingdings3(wingdings3.ttf) on client's
>> machine?
>> Thanks.
>
>
>

NewsArchive
02-23-2000, 01:00 AM
I'll give that a go.

I'm surprised there isn't a built in method though :-(

Thanks, Vin

Kevin Carbis wrote:

> Here's how I do it:
> function font_InstallUPCFont()
> INT i ;
> NUMBER r ;
> NUMBER regsize ;
> STRING fontfile ;
> STRING fname ;
> STRING res ;
> STRING key ;
> NUMBER rtype ;
> STRING regvalue ;
> begin
> if ( gbFontInstalled ) then
> return ;
> endif;
>
> fname = "Upc Tall Regular (TrueType)" ;
> fontfile = "uptr____.ttf" ;
> key = "SOFTWARE\\MICROSOFT\\Windows NT\\CurrentVersion\\Fonts" ;
> RegDBSetDefaultRoot( HKEY_LOCAL_MACHINE );
> RegDBGetKeyValueEx( key, fname, rtype, regvalue, regsize );
> // if the font already exists, get the hell out.
> if ( regvalue = fontfile ) then
> log("font_InstallUPCFont(), Upc Tall Regular is already installed." );
> return SUCCESS ;
> endif;
>
> // install it.
> if ( FindFile ( WINSYSDIR , fontfile , res ) < 0 ) then
> log_Error("font_InstallUPCFont()",
> "Font file was not moved." );
> return FAIL;
> endif;
> if ( RegDBSetKeyValueEx( key, fname, REGDB_STRING, fontfile, -1 ) < 0 )
> then
> log_Error("font_InstallUPCFont()", "Attempt to put the font in the
> registry failed." );
> return FAIL;
> endif;
> // Notify NT that a font change has occured.'
> i = AddFontResource( fontfile );
> SendMessage( HWND_BROADCAST, WM_FONTCHANGE, 0, 0 );
> if ( i != 0 ) then
> log("font_InstallBarcodeFont() was successful." );
> else
> log("font_InstallBarcodeFont(), the font is already installed." );
> endif;
> gbFontInstalled = TRUE ;
> return SUCCESS ;
> end;
>
> Vincent Finn wrote:
>
> > Hi,
> >
> > This may have been asked before but can anyone tell me the easiest way
> > to install fonts with my program.
> >
> > Thanks, Vin

NewsArchive
06-22-2000, 12:00 AM
Hi Olga,

Thanks for quick response, but the Q100057 is not in there database, I am
getting:
'No Knowledge Base articles matched the query, please search again.'

So, the question is still open

thanks
Tana


"Olga-InstallShield" <supportnews@installshield.com> wrote in message
news:39522fb5.0@208.30.171.38...
> Hello Tana,
>
> There is a knowledge base article that discusses on how to do this. The
> article number is Q100057, and although the article relates more to 5.x,
> with 6.x the steps should be very similar.
>
> --
> Sincerely,
>
> Olga K.
> InstallSheild Technical Support
>
> "Tana" <sahbaz@msn.com> wrote in message news:39522cc0.0@208.30.171.38...
> > How do I install fonts using InstallShield 6.2 ?
> >
> > Thanks
> > Tana
> >
> >
>
>

NewsArchive
06-22-2000, 12:00 AM
Tana,

I was able to find it.
Here is the direct link to it:
http://support.installshield.com/kb/default.asp?action=Display&documents_id=
96&productname=&category=&code=&documentnumber=Q100057&selectproductname=&se
lectcategory=&selectkeyword=&documentnumber2=Q100057&old_document_number=&rn
_descriptor=&contents=&org=search&onlyOne=yes&date_published=1/1/90&last_upd
ated=1/1/90

--
Sincerely,

Olga K.
InstallSheild Technical Support

"Tana" <sahbaz@msn.com> wrote in message news:395234f4.0@208.30.171.38...
> Hi Olga,
>
> Thanks for quick response, but the Q100057 is not in there database, I am
> getting:
> 'No Knowledge Base articles matched the query, please search again.'
>
> So, the question is still open
>
> thanks
> Tana
>
>
> "Olga-InstallShield" <supportnews@installshield.com> wrote in message
> news:39522fb5.0@208.30.171.38...
> > Hello Tana,
> >
> > There is a knowledge base article that discusses on how to do this. The
> > article number is Q100057, and although the article relates more to 5.x,
> > with 6.x the steps should be very similar.
> >
> > --
> > Sincerely,
> >
> > Olga K.
> > InstallSheild Technical Support
> >
> > "Tana" <sahbaz@msn.com> wrote in message
news:39522cc0.0@208.30.171.38...
> > > How do I install fonts using InstallShield 6.2 ?
> > >
> > > Thanks
> > > Tana
> > >
> > >
> >
> >
>
>

NewsArchive
06-22-2000, 12:00 AM
Thanks

Tana


"Olga-InstallShield" <supportnews@installshield.com> wrote in message
news:3952365a.0@208.30.171.38...
> Tana,
>
> I was able to find it.
> Here is the direct link to it:
>
http://support.installshield.com/kb/default.asp?action=Display&documents_id=
>
96&productname=&category=&code=&documentnumber=Q100057&selectproductname=&se
>
lectcategory=&selectkeyword=&documentnumber2=Q100057&old_document_number=&rn
>
_descriptor=&contents=&org=search&onlyOne=yes&date_published=1/1/90&last_upd
> ated=1/1/90
>
> --
> Sincerely,
>
> Olga K.
> InstallSheild Technical Support
>
> "Tana" <sahbaz@msn.com> wrote in message news:395234f4.0@208.30.171.38...
> > Hi Olga,
> >
> > Thanks for quick response, but the Q100057 is not in there database, I
am
> > getting:
> > 'No Knowledge Base articles matched the query, please search again.'
> >
> > So, the question is still open
> >
> > thanks
> > Tana
> >
> >
> > "Olga-InstallShield" <supportnews@installshield.com> wrote in message
> > news:39522fb5.0@208.30.171.38...
> > > Hello Tana,
> > >
> > > There is a knowledge base article that discusses on how to do this.
The
> > > article number is Q100057, and although the article relates more to
5.x,
> > > with 6.x the steps should be very similar.
> > >
> > > --
> > > Sincerely,
> > >
> > > Olga K.
> > > InstallSheild Technical Support
> > >
> > > "Tana" <sahbaz@msn.com> wrote in message
> news:39522cc0.0@208.30.171.38...
> > > > How do I install fonts using InstallShield 6.2 ?
> > > >
> > > > Thanks
> > > > Tana
> > > >
> > > >
> > >
> > >
> >
> >
>
>

NewsArchive
05-09-2001, 12:00 AM
Did you get this to work on a Win2000 PC? I am getting an error when it
actually tries to install the fonts (SetupFont).

Here's the message.
'Setup could not copy WINGDNG3.ttf to the system font directory. Please
install the WINGDNG3 font manually and reboot your computer.'


"Just_Me" <Just_Me@nowhere.com> wrote in message
news:3af84864@12.41.20.38...
> At http://www.installsite.org/isp_os.htm there is a font installation dll
> that works very well. I have personally used it and have never had a
> problem.
>
>
> "Mike" <mike@bostonpost.com> wrote in message
news:3af7e7b2$1@12.41.20.38...
> > The application I am trying to install using InstallShield requires some
> > custom fonts. How can I install these fonts using IS?
> >
> > Mike
> >
> >
>
>

NewsArchive
05-09-2001, 12:00 AM
I got it to work if I use a directory other then SUPPORTDIR.



"Mike" <mike@bostonpost.com> wrote in message news:3af9671f@12.41.20.38...
> Did you get this to work on a Win2000 PC? I am getting an error when it
> actually tries to install the fonts (SetupFont).
>
> Here's the message.
> 'Setup could not copy WINGDNG3.ttf to the system font directory. Please
> install the WINGDNG3 font manually and reboot your computer.'
>
>
> "Just_Me" <Just_Me@nowhere.com> wrote in message
> news:3af84864@12.41.20.38...
> > At http://www.installsite.org/isp_os.htm there is a font installation
dll
> > that works very well. I have personally used it and have never had a
> > problem.
> >
> >
> > "Mike" <mike@bostonpost.com> wrote in message
> news:3af7e7b2$1@12.41.20.38...
> > > The application I am trying to install using InstallShield requires
some
> > > custom fonts. How can I install these fonts using IS?
> > >
> > > Mike
> > >
> > >
> >
> >
>
>