Board index » delphi » Problems with Install Shield Express - Installing fonts

Problems with Install Shield Express - Installing fonts

Hello!!
I've written a program that needs special fonts to run correctly, so I've
setup IS Express to copy the font files to <windows>\fonts. But after the
installation routine of the program finished on a pc that haven't got this
font files, this font files aren't available. But when I go to the "FONTS"
directory an presse the "F5" button then the fonts are installed.
What can I do to automate this?

Thanks for your help,

Matthias

 

Re:Problems with Install Shield Express - Installing fonts


That's because Fonts is a special folder managed by a special objects that
is executed when you open that folder. It then find new uninstalled fonts
and installs them.

Most probably the font is needed by your app, so it is not imperative that
fonts are refreshed immediately.
So, in your app use AddFontResource to install the new font:
begin
  if Screen.Fonts.Indexof('Your font name')<0 then
    AddFontResource(windowsdir\fonts\your_font_file.TTF);
end;

It may be possible to do that in IS (it has built-in scripter, doesn't it?),
but I'm not familiar with it.
--
----------------------
Regards
Robert Cerny
Remove both qwe when replying
email: robert.qwe.ce...@neosys.xrs.qwe.si

No questions via email, unless explicitly invited.

Re:Problems with Install Shield Express - Installing fonts


check out installshield newsgroups:- news.installshield.com, I've seen
loads of Font messages on there.

Stu.

Matthias <matth...@mega-uelzen.de> wrote in article
<7ic1ep$pu...@news.online.de>...

Quote
> Hello!!
> I've written a program that needs special fonts to run correctly, so I've
> setup IS Express to copy the font files to <windows>\fonts. But after the
> installation routine of the program finished on a pc that haven't got
this
> font files, this font files aren't available. But when I go to the
"FONTS"
> directory an presse the "F5" button then the fonts are installed.
> What can I do to automate this?

> Thanks for your help,

> Matthias

Other Threads