Archive: Multiple sections with an installer


Multiple sections with an installer
I have a program with two versions (2 different languages)

I like that when I select a language (for example english) install first applicattion and if I select another language different of english I want that install seconf version of program

I try to modify script this
!ifdef LANG_FRENCH
Section "a" SEC01
*** install section 1 ****
SectionEnd
!else
Section "a" SEC01
****install section2****
SectionEnd
!endif


What can I do to obtain this?

Thanks


!ifdef is a compile-time instruction.

Check the $LANGUAGE variable and compare it to ${LANG_FRENCH}.
If you're installing from the language selection, then surely you don't need the Components page? If you're not having a Components page then you'll only need one Section and in that Section you can use LogicLib ${If}...${Else}...${EndIf} to install the required files.

-Stu


OK, But I have a problem and is when I try to put ${If},

for example:

${If} $LANGUAGE == $LANG_FRENCH
---------------
${else}
--------------
${endif}


I always obtain error in line
${If} $LANGUAGE == $LANG_FRENCH

message error is Ivanlid Command ${If}

What Can I do?


Thanks


solved, I have put if into section