InstallShield6.2制作安装程序时,如何安装注册字体?

wxqzhy 2005-08-24 12:05:05
制作安装程序时,有自己的字体想安装到系统中,如何操作?各位帮忙啊!!!
...全文
140 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
zxyjyzxyjy 2005-08-25
  • 打赏
  • 举报
回复
学习
xqk 2005-08-25
  • 打赏
  • 举报
回复
up
everandforever 2005-08-24
  • 打赏
  • 举报
回复
Starting from version 5 Installshield supports Font installation. For example, the following script:

InstallFont( "MRV Code39MA.TTF", "Morovia Code 39 Font");

Installs the Morovia Cod39M font file.

If you have an older version, you may refer to this page for more information: http://support.installshield.com/kb/view.asp?articleid=q106077
wxqzhy 2005-08-24
  • 打赏
  • 举报
回复
不行啊,请问如何在安装时把文件安装到制定的文件夹,比如d:\app ,搞不定了,帮忙啊
everandforever 2005-08-24
  • 打赏
  • 举报
回复
For information about installing fonts in an InstallShield 11 InstallScript project, please see the InstallShield Help Library topic Creating Installations > Organizing Files for Your Installation > Using Components > Installing Fonts.

在INSTALLSHIELD 7或更旧的版本中好像可以用
GDI32.AddFontResource(BYREF STRING)

你的INSTALLSHIELD好像太老了。
everandforever 2005-08-24
  • 打赏
  • 举报
回复
也可以直接尝试一下 CopyFile 到系统的font目录下。windows2000以上或许会自动安装字体。

font目录可以这样获得
ITEMIDLIST* pidlDeskTop;
if( S_OK != SHGetSpecialFolderLocation( NULL, CSIDL_FONTS, &pidlDeskTop ) )
{
return FALSE;
}
everandforever 2005-08-24
  • 打赏
  • 举报
回复
AddFontResourceEx 可以临时地安装一个字体。MSDN说

This function installs the font only for the current session. When the system restarts, the font will not be present. To have the font installed even after restarting the system, the font must be listed in the registry.

1,649

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 非技术类
社区管理员
  • 非技术类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧