Archive: Unable to get Next Button to work


Unable to get Next Button to work
Hi,

I have a custom page here which should ask the user what they want to install / uninstall

However it never allows a user to click on the Next button

The next button is displayed, but greyed out... how do I ungrey it!!!!

Help!!!

Nniol

All my code for the window here....

Page custom CreateOptionDialog "" ": Choose Installer Function?"
Page instfiles

########################################
# CreateOptionDialog
########################################
Function CreateOptionDialog

InstallOptions::dialog $PLUGINSDIR\InstOptions.ini
Pop $R1
StrCmp $R1 "cancel" done
StrCmp $R1 "back" done
StrCmp $R1 "success" done
error: MessageBox MB_OK|MB_ICONSTOP "InstallOptions error:$\r$\n$R1"
done:


FunctionEnd

########################################
# .onInit
########################################
Function .onInit
Push "ODSUpgrdae_Log"
Call OpenLogFile
; .... more stuff
InitPluginsDir
File /oname=$PLUGINSDIR\InstOptions.ini InstOptions.ini

; ... more stuff
FunctionEnd


------
InstOptions.ini
[Settings]
NumFields=4
Title=ODS Upgrade
CancelEnabled=1
CancelShow=1
BackEnabled=0
CancelButtonText=Cancel
NextButtonText=&Next

[Field 1]
Type=Groupbox
Text=Select which task you wish to perform:
Left=0
Right=246
Top=0
Bottom=76

[Field 2]
Type=RadioButton
Text=Undo - attempt to restore the previous installation
Flags=GROUP
Left=10
Right=203
Top=14
Bottom=25
State=1

[Field 3]
Type=RadioButton
Text=Uninstall - remove current installation
Left=10
Right=203
Top=28
Bottom=40

[Field 4]
Type=RadioButton
Text=Upgrade - Attempt to install version 3.2 of DocBroker
Left=10
Right=203
Top=44
Bottom=54


have also tried....
As the dialog is only supposed to run if the previous two conditions are not met....
and then the dialog is to go further to InstFiles to show DetailPrint and Dialog


Page instfiles

Section "Install"

Push "Section Install"
Call Log


StrCmp $InstallFunction ${FUNCTION_UPDATE} 0 +3
Call Upgrade
Return
StrCmp $InstallFunction ${FUNCTION_UNDO} 0 +3
Call Undo
Return

Call CreateOptionDialog


SectionEnd


Solved..

Sorry, call me a muppet had it SetSilent (thought I had removed it)

Nniol