Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>For WiX 2 you can use &amp;Feature to find out if that feature is installed or not:</p> <pre><code>&lt;Dialog Id="ExitDlg" Width="370" Height="270" Title="[ProductName] [Setup]" NoMinimize="yes"&gt; &lt;Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="Finish"&gt; &lt;Publish Event="EndDialog" Value="Return"&gt;1&lt;/Publish&gt; &lt;Publish Event="DoAction" Value="LaunchFile"&gt;(NOT Installed) AND (LAUNCHPRODUCT = 1) AND (&amp;amp;MainExecutable = 3)&lt;/Publish&gt; &lt;/Control&gt; &lt;Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Text="Cancel" /&gt; &lt;Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="[DialogBitmap]" /&gt; &lt;Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="Back" /&gt; &lt;Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="20" Transparent="yes" NoPrefix="yes"&gt; &lt;Text&gt;Click the Finish button to exit the Wizard.&lt;/Text&gt; &lt;/Control&gt; &lt;Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /&gt; &lt;Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes"&gt; &lt;Text&gt;{\VerdanaBold13}Completing the [ProductName] Wizard&lt;/Text&gt; &lt;/Control&gt; &lt;Control Id="Launch" Type="CheckBox" X="135" Y="120" Width="150" Height="17" Property="LAUNCHPRODUCT" CheckBoxValue="1"&gt; &lt;Text&gt;Launch [ProductName]&lt;/Text&gt; &lt;Condition Action="hide"&gt; NOT (&amp;amp;MainProgramFeature = 3) &lt;/Condition&gt; &lt;/Control&gt; &lt;/Dialog&gt; </code></pre> <p>This way, you can hide the dialog and use the same condition to not launch the program (regardless of the initial state of the check box).</p>
 

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