问题描述
我在安装时在我的 nsis 安装程序中的几台机器上遇到了一个奇怪的错误.它在使用 fontreg.nsh 安装字体时给出无效的 win32 文件句柄"
hi im getting a weird error on few machines in my nsis installer while installing. Its is giving "Invalid win32 file handle" while installing fonts using fontreg.nsh
我试过谷歌,但没有得到这个问题的答案.现在我想取消此消息,那么有什么方法可以取消该消息,或者如果可能的话建议我解决该问题.
i've tried google but didnt got an answer to this issue. now im thinking to suppress this message, so is there any way to suppress the message or if possible suggest me solution to the issue.
这是我的代码
!include "FontReg.nsh"!include "FontName.nsh"!include "WinMessages.nsh"
!include "FontReg.nsh"!include "FontName.nsh"!include "WinMessages.nsh"
StrCpy $FONT_DIR $FONTS
StrCpy $FONT_DIR $FONTS
!insertmacro InstallTTFFont 'calibri_0.TTF'!insertmacro InstallTTFFont 'calibrib.TTF'!insertmacro InstallTTFFont 'calibriz.TTF'!insertmacro InstallTTFFont 'calibrii.TTF'
!insertmacro InstallTTFFont 'calibri_0.TTF' !insertmacro InstallTTFFont 'calibrib.TTF' !insertmacro InstallTTFFont 'calibriz.TTF' !insertmacro InstallTTFFont 'calibrii.TTF'
发送消息 ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0/TIMEOUT=5000
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
请帮帮忙
推荐答案
据我所知,robertinventor 在这里有一个修复(2010 年 3 月 11 日,23:16):
as far I see, robertinventor has a fix here (11th March 2010, 23:16):
http://forums.winamp.com/showthread.php?t=209326
这篇关于如何在 NSIS 中使用 try catch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!