x-nem
5th July 2005 12:44 UTC
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
Afrow UK
5th July 2005 12:58 UTC
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
x-nem
5th July 2005 13:15 UTC
thanx it works perfectly
x-nem
5th July 2005 13:52 UTC
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
Afrow UK
5th July 2005 13:56 UTC
Yes you can. It's one of the !defines in Include\Sections.nsh. Same as Sections,
SectionGroup "A group" SecGroup01
-Stu
x-nem
5th July 2005 14:06 UTC
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
Afrow UK
5th July 2005 14:11 UTC
Make sure you place the SectionGroup and Section's before these functions (further up in the script).
-Stu
x-nem
5th July 2005 14:17 UTC
thx a lot I thought the order dont change anything thats why i dont try it :)
glory_man
5th July 2005 14:18 UTC
If one of sections in sectiongroup is unselected - sectiongroup unselected too.
x-nem
5th July 2005 14:36 UTC
Originally posted by glory_man
If one of sections in sectiongroup is unselected - sectiongroup unselected too.
sure :)
glory_man
5th July 2005 14:49 UTC
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.
x-nem
5th July 2005 14:50 UTC
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