arfinator853
26th February 2005 18:09 UTC
Variables and Skipping pages
On one custom page, I ask the user whether mysql 4.1 is installed and their are three answers in a combo box.
Yes
No
I don't know
If the user selects yes, then I want to skip the download of MySQL installer which is in a function, before anything else installs.
If the user selects no, then it will install as usual.
And if the user selects i dont know, then they probrally dont know anything about it and therefore haven't installed it yet. so in this case, it would proceed to the download as does if no is selected.
Is this possible? Any and all help would be greatly appreciated!
Thanks in advance,
Arfy!
Afrow UK
26th February 2005 19:22 UTC
Use ReadINIStr to find out which radio-button the user has selected. You should look at the InstallOptions examples in the Contrib\InstallOptions folder.
-Stu
arfinator853
26th February 2005 20:10 UTC
I am using a combo box and have already saved the value the user selects in a user variable $installed.
I need the skip pages thing and it should only skip if they say no or i don't know
arfinator853
26th February 2005 20:12 UTC
or...would it be better if I used radio buttons?
Afrow UK
26th February 2005 21:41 UTC
It's up to you. I think radio buttons look better though. You need to use StrCmp to compare the value of $installed to whatever.
See StrCmp in docs for more info.
-Stu