Archive: LogicLib feature request


LogicLib feature request
 

${IfCmd} MessageBox MB_YESNO "PlugIn für Adobe Acrobat 6.0 installieren?" IDYES ${||} !insertmacro SelectSection ${SEC_ACRO6} ${|} 
I was using this in my installer code, but this led to an malfunction.

Even if I click button "NO" the section will be selected. It probably a restriction in using ${IfCmd}.

I just use a simple workaround BUT it would be nice to get this running. This single line would get more powerful than it is already. LogicLib is really a beauty.

This code (with a simple StrCpy instead of a macro call) works and is also shown in LogicLib examples:

${IfCmd} MessageBox MB_YESNO "PlugIn für Adobe Acrobat 6.0 installieren?" IDYES ${||} StrCpy $DoAction 1 ${|}

${If}$DoAction = 1
!insertmacro SelectSection ${SEC_ACRO6}
${EndIf}

That works fine for me. Seems like a problem somewhere else. Maybe the section is selected already for another reason and that's why it seems to always execute. Add ${If} ${SectionIsSelected} before that to make sure.