Archive: How to have different INSTALLATION Folder in many sections?


How to have different INSTALLATION Folder in many sections?
How to have different INSTALLATION Folder in many sections?

I have created 4 sections and set one only with "one-section" functions
Have
InstallDir C:\xyz

but this is OK when i select 1 option but for 2-3-4 is alway C:\xyz
I have tryed with [ str $INSTDIR "C:\abc" ] in section 2-3-4 and doing this my files are copied in C:\abc
but in Page directory i see C:\xyz

How can i do for have 4 different "Installation folder" for 4 sections?

There is an example that help me?
Thanks
Excuse me for my english.
Sorry


you can change your output folder using the SetOutPath command and $OUTDIR


HI
Probably you have not understand my problem.
I have uploaded my little example test here.
http://digilander.iol.it/scaistar/multitest.zip

There are 3 section.
If i select section "aaa" Installation folder is C:\aaa
How to make that if i select section "bbb" Installation folder will be C:\bbb
and if i select section "ccc" Installation folder will be C:\ccc ???

Thanks for your patience.



Section "Copy aaa" ca
SectionEnd

Section /o "Copy bbb" cb
SectionEnd

Section /o "Copy ccc" cc
SectionEnd

Section "-Install"
SetOutPath $INSTDIR
File /r "files\*.*"
SectionEnd

Function .onInit
StrCpy $1 ${ca}
FunctionEnd

Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${ca}
!insertmacro RadioButton ${cb}
!insertmacro RadioButton ${cc}
!insertmacro EndRadioButtons

StrCmp $1 0 0 +2
StrCpy $INSTDIR "C:\aaa"
StrCmp $1 1 0 +2
StrCpy $INSTDIR "C:\bbb"
StrCmp $1 2 0 +2
StrCpy $INSTDIR "C:\ccc"
FunctionEnd

Thanks!
It Work ok!
:-D

.. but now... i must open .chm and understand what i loss in my code...