Archive: Component selection not modified


Component selection not modified
Hi,

I have a simple MUI_PAGE_CUSTOMFUNCTION_LEAVE function on the components selection page.

This function is:


Function func1
SectionGetFlags "${FOO_SECTION}" $0
IntOp $1 $0 & ${SF_SELECTED}
MessageBox MB_OK "Result for foo: $1"
StrCmp $1 "1" 0 +2
MessageBox MB_OK "Foo is selected"
FunctionEnd


If I run the installer, select foo for install, press "Next", I have the MB "Foo is selected". If I go back via "Previous", unselect the foo component, the messageBox will also appear. Why ? Looks like no callback function set the flag for foo when I select/unselect... ?

Gal'

Although I cannot see an error with that code, try using SectionIsSelected with LogicLib. If that doesn't fix it, please make a minimal script that reproduces this.

Stu


I fixed it: I was declaring my sections after the function, so that ${F00_SECTION} was not defined.

Gal'