Old 15th January 2007, 10:01   #1
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
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
Nniol is offline   Reply With Quote
Old 15th January 2007, 10:22   #2
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
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
Nniol is offline   Reply With Quote
Old 15th January 2007, 10:38   #3
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
Solved..

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

Nniol
Nniol is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump