NSD_* macros only work on custom pages that use the nsDialogs plugin, if you want to change the standard dialogs you must use Resource Hacker and the ChangeUI instruction...
Is there any other way?
We remcompile the Installer pretty often, so it would be no so good to use ResHacker every time.
The thing I want is a page that looks like the standard page but with a checkbox.
(I want the checkbox to provide "Advanced settings")
________________________________________________________
Edit: Okay if this doesn't work, here is an other question.
If my checkbox is not checked, then I want to skip the next 2 pages.
Originally Posted by checkbox.nsi
Var /GLOBAL CHECKBOX
Var /GLOBAL ADVANCEDMODE
Function nsDialogsPage
nsDialogs::Create 1018
Pop $0
${NSD_CreateCheckbox} 60% -50 100% 8u "Advanced settings"
Pop $CHECKBOX
GetFunctionAddress $0 OnCheckbox
nsDialogs::OnClick $CHECKBOX $0
nsDialogs::Show
FunctionEnd
Function OnCheckbox
Pop $0
StrCpy $ADVANCEDMODE $0
MessageBox MB_OK "Checkbox clicked!!!"
FunctionEnd
And the relevant part of the other file looks like this:
Originally Posted by installer.nsi
!include checkbox.nsi
Page custom nsDialogsPage
!include install-dir-selection-page.nsi
${If} $ADVANCEDMODE == "0"
!include chrome-selection-page.nsi
!include java-selection-page.nsi
${Endif}
Whats wrong with it?