我有一个问题与我的NSIS脚本,我试图一个自定义页面,其中用户插入一个ClientId通过使用一个文本框。
到目前为止,我得到的问题是,我的编译器给我这个错误:
无效命令:nsDialogs::在脚本"C:*Directory*Installer. "中创建错误。在第35行——中止创建流程
我已经包含了两个nsdialog。nsh和LogicLib。NSH在我的脚本
!include nsDialogs.nsh
!include LogicLib.nsh
Var Dialog
Var Label
Var Text
Name "Installer"
OutFile "Installer.exe"
InstallDir $PROGRAMFILESMyProject
RequestExecutionLevel admin
Page directory
Page custom nsDialogsPage nsDialogsPageLeave
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
Section Installer
SetOutPath $INSTDIR
File /r "*Release Folder*"
WriteUninstaller "uninstall.exe"
Call InstallService
SectionEnd
Function nsDialogsPage
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${EndIf}
${NSD_CreateLabel} 0 0 100% 12u "Hello, welcome to nsDialogs!"
Pop $Label
${NSD_CreateText} 0 13u 100% -13u "Type something here..."
Pop $Text
nsDialogs::Show
FunctionEnd
当我尝试编译Examples/NSIS中的示例脚本时,我得到完全相同的错误。
包含文件确实存在,并且与编译器读取它们的文件夹相同。是否有需要的库文件没有包含在NSIS的安装中?
谢谢
听起来像是缺少插件。确保在插件目录下有nsDialogs.dll