Archive: nsDialogs Example Not Working


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


Please pastebin your code. We cannot smell what's wrong from a distance...


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


This code is working fine for me: HM NIS Edit, WinXP, NSIS 2.46