2014-05-06 62 views
0

我的NSIS腳本出現問題,我嘗試在用戶通過使用文本框插入ClientId的自定義頁面。nsDialogs無效的命令

我得到這麼遠的問題是,我的編譯器給我的這個錯誤:

Invalid command: nsDialogs::Create Error in script "C:*Directory*\Installer.nsi" on line 35 -- aborting creation process

我已經在我的劇本既包括nsDialogs.nsh和LogicLib.nsh。

!include nsDialogs.nsh 
!include LogicLib.nsh 

Var Dialog 
Var Label 
Var Text 

Name "Installer" 

OutFile "Installer.exe" 

InstallDir $PROGRAMFILES\MyProject 

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的安裝中?

感謝

回答

0

像插件缺少這聽起來我。確保你在插件目錄中有一個nsDialogs.dll ...