empezar
1st April 2006 23:56 UTC
custom page examples?
I'd like to have a "mirror selection" for my online installer, is there any examples out there I can learn from?
i would like to have this as a separate page in the installer
and a dropdown menu with the different mirrors..
sort of like the "select installation folder" page, but with a dropdown instead of the text field.
I'm reading the mirrors from a mirrors.ini file containing
[mirrors]
1=http://mirror1.com
2=http://mirror2.com
3=http://mirror3.com
etc..
Afrow UK
2nd April 2006 14:56 UTC
Use InstallOptions, or EmbeddedLists.dll plugin.
-Stu
empezar
2nd April 2006 16:22 UTC
Function MirrorSelectStart
EmbeddedLists::Dialog SingleSelect /HEADINGTEXT "Please select a mirror to download fQuake distfiles from:" /GROUPTEXT "bla1" "bla2" "bla3" "bla4"
Pop $R0
StrCpy $DISTFILES_MIRROR "$R0"
FunctionEnd
Function MirrorSelectEnd
Pop $R0
MessageBox MB_OK "$R0"
FunctionEnd
I'd like to put the string contained within $R0 into a new variable, but StrCpy $NEWVAR "$R0" does NOT work. any explanation? :) (yes i have Var NEWVAR) in the script)
Afrow UK
2nd April 2006 16:44 UTC
Pop $NEWVAR?
Make sure Var NEWVAR is placed above the function in your script.
-Stu
empezar
2nd April 2006 17:33 UTC
do I have to pop every time i want to use the var?
I want to have the variable set for the rest of the installation, in all sections and functions..