Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>your problem is really hard to solve if you use standard collection windows as MUI or XPUI, if you are using Modern UI (MUI) then the next code could help you to code the functionality you need (in the XPUI case this does not work at all)</p> <p><strong>WARNING</strong> : I did <strong>NOT</strong> tested the next procedures (just compiled), because i'm currently using XPUI and i have deprecated the MUI in my installer, moreover i have provided <strong>no logic</strong> to re-enable the "next" button in the OnChange_Service function.</p> <ol> <li><p>handle the event change on your target section, i do not know if it works, but i propose to use the NSD_OnChange procedure (defined in nsdialogs)</p> <blockquote> <p>!include 'nsdialogs.nsh'</p> <pre><code>Function &lt;...&gt; ${NSD_OnChange} &lt;... name of the target section ...&gt; OnChange_Service FunctionEnd </code></pre> </blockquote></li> <li><p>In the event handler function place the code to disable your button</p> <blockquote> <p>function OnChange_Service</p> <p>var /GLOBAL NextButton</p> <p>GetDlgItem $NextButton $HWNDPARENT 1</p> <p>SectionGetFlags &lt;... name of the target section ...> $0</p> <p>IntOp $0 $0 &amp; ${SECTION_OFF}</p> <p>StrCmp $0 "1" DISABLENEXT GOTOENDONCHANGE</p> <p>DISABLENEXT:</p> <p>EnableWindow $NextButton 0</p> <p>GOTOENDONCHANGE:</p> <p>functionend</p> </blockquote></li> </ol> <p>Anywhere i think it is better to use custom window if you need to do some manipulations on the window control state.</p> <p>Make me know if it works in your project</p> <p>(If you want to use boolean operator in your code, then use the LogicLib plugin)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload