Archive: Help plz InstallOptions/ComponentPages


Help plz InstallOptions/ComponentPages
Hi please help me
excuse me for my poor english i m french

my probleme is :
I d like to call different installoptions according to the different choosen components

I dont find the good tip for...
cause I can display the installoptions page but I cant push the button "Next"

I know how to use installoptions with this syntax "page custom <function's name>"

but I dont want that

I d would like to display differnt ini with the different components choosen

Thanx


You need to jump over the !insertmacro MUI_INSTALLOPTIONS_DISPLAY.


!include Sections.nsh

!insertmacro MUI_PAGE_COMPONENTS
Page Custom CustomPageA

Section "A section" Sec01
...
SectionEnd

Function CustomPageA
!insertmacro SectionFlagIsSet ${Sec01} ${SF_SELECTED} ShowPage SkipPage
ShowPage:

!insertmacro MUI_HEADER_TEXT "blah" "blah"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "file.ini"

SkipPage:
FunctionEnd


-Stu

thanx it works perfectly


Originally posted by Afrow UK
You need to jump over the !insertmacro MUI_INSTALLOPTIONS_DISPLAY.


!include Sections.nsh

!insertmacro MUI_PAGE_COMPONENTS
Page Custom CustomPageA

Section "A section" Sec01
...
SectionEnd

Function CustomPageA
!insertmacro SectionFlagIsSet ${Sec01} ${SF_SELECTED} ShowPage SkipPage
ShowPage:

!insertmacro MUI_HEADER_TEXT "blah" "blah"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "file.ini"

SkipPage:
FunctionEnd


-Stu
I would like to know what is ${SF_SELECTED}
can i make this for GroupSection thanx

Yes you can. It's one of the !defines in Include\Sections.nsh. Same as Sections,
SectionGroup "A group" SecGroup01

-Stu


Originally posted by Afrow UK
Yes you can. It's one of the !defines in Include\Sections.nsh. Same as Sections,
SectionGroup "A group" SecGroup01

-Stu
the first page custom works but the second no :-(

here

Function "Set_1"

!insertmacro SectionFlagIsSet ${Sec01} ${SF_SELECTED} ShowPage SkipPage

ShowPage:

InstallOptions::dialog "$TEMP\Install_Ivalua_Buyer\ini\msde_$lg.ini"


SkipPage:

FunctionEnd

Function "Set_2"

!insertmacro SectionFlagIsSet ${SecGroup01} ${SF_SELECTED} ShowPage2 SkipPage2

ShowPage2:

InstallOptions::dialog "$TEMP\Install_Ivalua_Buyer\ini\set_$lg.ini" #affichage de la page web.config

SkipPage2:

FunctionEnd

Make sure you place the SectionGroup and Section's before these functions (further up in the script).

-Stu


thx a lot I thought the order dont change anything thats why i dont try it :)


If one of sections in sectiongroup is unselected - sectiongroup unselected too.


Originally posted by glory_man
If one of sections in sectiongroup is unselected - sectiongroup unselected too.
sure :)

Absolutely. There are three sectiongroup selected states.
1. Selected
2. Partially selected
3. Unselected
First bit in sectiongroup flags represents whether the section is currently enabled (selected). So this is set only in first case. In 2 and 3 state this bit is 0.


Originally posted by glory_man
Absolutely. There are three sectiongroup selected states.
1. Selected
2. Partially selected
3. Unselected
First bit in sectiongroup flags represents whether the section is currently enabled (selected). This is first case. In 2 and 3 state this bit is 0.
I understand