Archive: NSdialog and Radio buttons. Close and cancel button not want


NSdialog and Radio buttons. Close and cancel button not want
Hi All,

I am using radio buttons and nSdialog for creating my installer. However I do not want the default buttons (cancel and close) and instead I want back and next, while the page is displayed. How can I achieve that?

Function fnc_sample_Create

; === sample (type: Dialog) ===
nsDialogs::Create 1018
Pop $hCtl_sample
${If} $hCtl_sample == error
Abort
${EndIf}
!insertmacro MUI_HEADER_TEXT "Dialog title..." "Dialog subtitle..."

; === GroupBox1 (type: GroupBox) ===
${NSD_CreateGroupBox} 22u 19u 222u 91u "Installation Type"
Pop $hCtl_sample_GroupBox1
${NSD_OnClick} $hwnd EnDisableButton

; === RadioButton1 (type: RadioButton) ===
${NSD_CreateRadioButton} 35u 34u 129u 18u "Standalone"
Pop $hCtl_sample_RadioButton1

; === RadioButton2 (type: RadioButton) ===
${NSD_CreateRadioButton} 35u 55u 129u 18u "Network"
Pop $hCtl_sample_RadioButton2

; === RadioButton3 (type: RadioButton) ===
${NSD_CreateRadioButton} 35u 77u 129u 18u "Client"
Pop $hCtl_sample_RadioButton3

nsDialogs::Show

FunctionEnd


Close is only shown on the last page of the installer (usually after installation is complete). It makes absolutely no sense to put a Next button on the last page...


Got it .. Thank you!