Old 5th July 2005, 11:44   #1
x-nem
Junior Member
 
Join Date: Jul 2005
Posts: 7
Unhappy 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
x-nem is offline   Reply With Quote
Old 5th July 2005, 11:58   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You need to jump over the !insertmacro MUI_INSTALLOPTIONS_DISPLAY.

code:

!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
Afrow UK is offline   Reply With Quote
Old 5th July 2005, 12:15   #3
x-nem
Junior Member
 
Join Date: Jul 2005
Posts: 7
thanx it works perfectly
x-nem is offline   Reply With Quote
Old 5th July 2005, 12:52   #4
x-nem
Junior Member
 
Join Date: Jul 2005
Posts: 7
Quote:
Originally posted by Afrow UK
You need to jump over the !insertmacro MUI_INSTALLOPTIONS_DISPLAY.

code:

!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
x-nem is offline   Reply With Quote
Old 5th July 2005, 12:56   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Yes you can. It's one of the !defines in Include\Sections.nsh. Same as Sections,
SectionGroup "A group" SecGroup01

-Stu
Afrow UK is offline   Reply With Quote
Old 5th July 2005, 13:06   #6
x-nem
Junior Member
 
Join Date: Jul 2005
Posts: 7
Quote:
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
x-nem is offline   Reply With Quote
Old 5th July 2005, 13:11   #7
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Make sure you place the SectionGroup and Section's before these functions (further up in the script).

-Stu
Afrow UK is offline   Reply With Quote
Old 5th July 2005, 13:17   #8
x-nem
Junior Member
 
Join Date: Jul 2005
Posts: 7
thx a lot I thought the order dont change anything thats why i dont try it
x-nem is offline   Reply With Quote
Old 5th July 2005, 13:18   #9
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
If one of sections in sectiongroup is unselected - sectiongroup unselected too.
glory_man is offline   Reply With Quote
Old 5th July 2005, 13:36   #10
x-nem
Junior Member
 
Join Date: Jul 2005
Posts: 7
Quote:
Originally posted by glory_man
If one of sections in sectiongroup is unselected - sectiongroup unselected too.
sure
x-nem is offline   Reply With Quote
Old 5th July 2005, 13:49   #11
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
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.
glory_man is offline   Reply With Quote
Old 5th July 2005, 13:50   #12
x-nem
Junior Member
 
Join Date: Jul 2005
Posts: 7
Quote:
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
x-nem is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump