REGISTER FONTS ACTION: Hangs installation on some NT based machines

Article:TECH8654  |  Created: 2005-12-09  |  Updated: 2006-12-03  |  Article URL http://www.symantec.com/docs/TECH8654
NOTE: If you are experiencing this particular known issue, we recommend that you Subscribe to receive email notification each time this article is updated. Subscribers will be the first to learn about any releases, status changes, workarounds or decisions made.
Article Type
Technical Solution

Issue



Some installation .EXEs hang when the Register Font actions is executed.


Environment



Product: Wise Installation System 9.02.204.0
Windows NT-based operating systems

Cause



When copying to the FONTs directory it does a SendMessage:(HWND_BROADCAST,WM_FONTCHANGE,0,0).  The problem is on my DELL running XP, Dell's support program DAMon hangs and doesn't service it's message pump.  The result is, our installer hangs after trying to copy fonts.  

Instead you should use SendMessageTimeout so your program doesn't hang because of other ill behaved programs running on the system.  If you look in MSDN under WM_SETTINGCHANGE, it recommends to use SendMessageTimeout to broadcast the change and not just SendMessage.


Solution



This issue has been resolved in Wise Package Studio 7.0 and Wise Installation Studio/Express 7.0.

Workaround:
Call the AddFontResource API manually using SendMessageTimeout instead of SendMessage (see http://www.chami.com/tips/delphi/010297D.html for basic information about manually installing fonts)


Supplemental Materials

SourceDEFECT
ValueLB 45219
DescriptionLogged in Littlebuggy (Altiris - Lindon, Plymouth) database

Legacy ID



16906


Article URL http://www.symantec.com/docs/TECH8654


Terms of use for this information are found in Legal Notices