Skip to content
⌘ NSIS Forum Archive

custom page examples?

5 posts

empezar#

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..
empezar#
Function MirrorSelectStart

EmbeddedLists:😁ialog 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)
empezar#
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..