shiva21
16th August 2011 07:24 UTC
nsDialogs Example Not Working
Hello.
I followed Step By Step Tutorial from this link -http://nsis.sourceforge.net/Docs/nsDialogs/Readme.html, The nsDialog is not opening at all, am I making any mistake.
I checked that the custom page function is getting called, but the crete dialog is not working.
-Shiva S
MSG
16th August 2011 08:01 UTC
Please pastebin your code. We cannot smell what's wrong from a distance...
shiva21
16th August 2011 09:16 UTC
Below is the Code which I used.
!include nsDialogs.nsh
!include LogicLib.nsh
Name nsDialogs
OutFile nsDialogs.exe
XPStyle on
Var Dialog
Var Label
Var Text
Page custom nsDialogsPage
Page instfiles
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
Section
DetailPrint "hello world"
SectionEnd
T.Slappy
17th August 2011 09:38 UTC
This code is working fine for me: HM NIS Edit, WinXP, NSIS 2.46