Archive: Can a Section effect a custom page?


Can a Section effect a custom page?
Goodday everyone!! ^_^
Wouldnt be a new week unless i had to ask a question to bug you all with. So for my weekly installment:

So i have a section:

Section /o "Import Settings from a File." SEC03

Is there a way to the checking of this section during the install to skip a custom page that requests this data from a user. Process wise it happens after the user picks what is being installed. Now I'll admit that i am not even sure what is calling the custom page "Page custom ConfigOptions".

I believe it is from the oninit:

Function .onInit
;Extract InstallOptions INI files
System::Call "kernel32::GetCurrentProcess() i .s"
System::Call "kernel32::IsWow64Process(i s, *i .r0)"
strcpy $OS64B $0
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "ihm.ini"
!insertmacro PARAMETERNAME SERVER NONE
ifsilent 0 OninitOK
strcmp $SERVER 'NONE' 0 OninitOK
Abort
OninitOK:
!insertmacro PARAMETERNAME RMTCMD 0
StrCmp $RMTCMD 1 onInitEtap1 0
strcpy $RMTCMD 0
onInitEtap1:
ReadEnvStr $TMPHOST COMPUTERNAME
${StrCase} $HOST $TMPHOST "L"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ihm.ini" "Field 2" "State" $SERVER
!insertmacro MUI_INSTALLOPTIONS_WRITE "ihm.ini" "Field 6" "State" $HOST
!insertmacro MUI_INSTALLOPTIONS_WRITE "ihm.ini" "Field 7" "State" $RMTCMD

But that is totally a guess. can anyone enlighten me?


Is there a way to the checking of this section during the install to skip a custom page that requests this data from a user. Process wise it happens after the user picks what is being installed. Now I'll admit that i am not even sure what is calling the custom page "Page custom ConfigOptions".
Either within components' page leave function or within custom page create function (this is function ConfigOptions in your case), check the state of the required section and show/hide the custom page accordingly.

Call Abort in the custom page's show function to skip the page.

Stu


i understand the logic. but i lack the skill and exp to know how to do that. can someone point me in the right direction please


Use ${If} ${SectionIsSelected}. There should be examples of that on this forum if you search.

Stu