jai123
30th July 2012 18:02 UTC
Display installation path depending on selected section
Hi,
I have an installer which can install several different softwares. For instance,
Section "Section1"
InstallSoftware1
SectionEnd
Section "Section2"
InstallSoftware2
SectionEnd
I want to display a different installation directory in the MUI_PAGE_DIRECTORY page, depending on which section was chosen (I am going to limit just one section at any given time).
Any suggestions?
demiller9
30th July 2012 18:28 UTC
Just the obvious suggestions. Put the Component page before the Install Location page, use the leave function of the Component page to set $InstallDir.
jai123
30th July 2012 19:28 UTC
I see. I am not too familiar with the leave function. How do I use this?
Also, I was wondering how do I know which checkbox was selected?
Thanks
Afrow UK
30th July 2012 21:05 UTC
Set a leave function using MUI_PAGE_CUSTOMFUNCTION_LEAVE (check the readme). Use ${If} ${SectionIsSelected} to check a section is selected (search the forum).
Stu
jai123
30th July 2012 21:19 UTC
Thanks Stu. That solves my problem.