Archive: XPUI crash with Custom page dialog


XPUI crash with Custom page dialog
Hi,
I have an installer I am using including custom page of a dialog I created with NSIS Dialog Designer.
I want to "improve" the installer with ExperienceUI (http://nsis.sourceforge.net/ExperienceUI ), compiling the installer run smoothly but when I run the EXE the installer crash on the dialog page.

would like to have some help :)

here is the code:


Page custom fnc__1_Show
.
.
; dialog create function
Function fnc__1_Create

; === _1 (type: Dialog) ===
nsDialogs::Create 1018
Pop $hCtl__1
${If} $hCtl__1 == error
Abort
${EndIf}

; === Label10 (type: Label) ===
${NSD_CreateLabel} 269 225 95 19 "some text"
Pop $hCtl__1_Label10

; === link1 (type: Link) ===
${NSD_CreateLink} 243 255 60 19 "some text"
Pop $hCtl__1_link1

; === Label9 (type: Label) ===
${NSD_CreateLabel} 45 215 159 19 "some text"
Pop $hCtl__1_Label9

; === CheckBoxHH (type: Checkbox) ===
${NSD_CreateCheckbox} 68 192 291 18 "some text"
Pop $hCtl__1_CheckBoxHH
${If} $hCtl__1_CheckBoxHH_state == ${BST_CHECKED}
${NSD_Check} $hCtl__1_CheckBoxHH
${EndIf}
${NSD_Check} $hCtl__1_CheckBoxHH

; === CheckBoxSS (type: Checkbox) ===
${NSD_CreateCheckbox} 68 174 243 18 "some text"
Pop $hCtl__1_CheckBoxSS
${If} $hCtl__1_CheckBoxSS_state == ${BST_CHECKED}
${NSD_Check} $hCtl__1_CheckBoxSS
${EndIf}
${NSD_Check} $hCtl__1_CheckBoxSS

; === CheckBoxMAIN (type: Checkbox) ===
${NSD_CreateCheckbox} 46 155 233 23 "some text"
Pop $hCtl__1_CheckBoxMAIN
;${NSD_OnClick} $hCtl__1_CheckBoxMAIN DisableCheckbox ;call function to check new state of main checkbox and disable SS and HH checkboxes
${If} $hCtl__1_CheckBoxMAIN_state == ${BST_CHECKED}
${NSD_Check} $hCtl__1_CheckBoxMAIN
${EndIf}
${NSD_Check} $hCtl__1_CheckBoxMAIN

; === Label8 (type: Label) ===
${NSD_CreateLabel} 45 137 234 17 "some text"
Pop $hCtl__1_Label8

; === Label7 (type: Label) ===
${NSD_CreateLabel} 45 123 234 17 "some text"
Pop $hCtl__1_Label7

; === Label6 (type: Label) ===
${NSD_CreateLabel} 45 109 234 17 "some text"
Pop $hCtl__1_Label6

; === Label5 (type: Label) ===
${NSD_CreateLabel} 45 95 234 17 "some text"
Pop $hCtl__1_Label5

; === Label4 (type: Label) ===
${NSD_CreateLabel} 45 81 234 17 "some text"
Pop $hCtl__1_Label4

; === Label3 (type: Label) ===
${NSD_CreateLabel} 45 67 234 17 "some text"
Pop $hCtl__1_Label3

; === Label2 (type: Label) ===
${NSD_CreateLabel} 45 53 234 17 "some text"
Pop $hCtl__1_Label2

; === Bitmap1 (type: Bitmap) ===
${NSD_CreateBitmap} 17 27 395 22 ""
Pop $hCtl__1_Bitmap1
File "/oname=$PLUGINSDIR\img.bmp" "img.bmp"
${NSD_SetImage} $hCtl__1_Bitmap1 "$PLUGINSDIR\img.bmp" $hCtl__1_Bitmap1_hImage

; === Label1 (type: Label) ===
${NSD_CreateLabel} 10 0 156 20 "some text"
Pop $hCtl__1_Label1
CreateFont $hCtl__1_Label1_Font "Microsoft Sans Serif" "13" "400"
SendMessage $hCtl__1_Label1 ${WM_SETFONT} $hCtl__1_Label1_Font 0

FunctionEnd


; dialog show function
Function fnc__1_Show
Call fnc__1_Create
nsDialogs::Show $hCtl__1
FunctionEnd



thx
G

I don't see any problems in your code other than not freeing the image after calling nsDialogs::Show, but that shouldn't cause the crash.

PaR


PaR,
thx for that, would you mind trying reproduce my problem if I send you the whole script?


Yes, send the script and I will check it out.


hi
thx again, dropped an PM with the script


oh, if anyone else would like to try and help..
http://www.megaupload.com/?d=NLNT4065

thx
:)