Note that there are some explanatory texts on larger screens.

plurals
  1. POWIX - Adding a custom Dialog having trouble with back/next buttons
    primarykey
    data
    text
    <p>I am working on creating a custom WixUi configuration, here is what I've done so far:</p> <p>Copied the WixUI_Minimal.wxs file into my project and changed the Id to: WixUI_CustomMinimal Copied the WelcomeEulaDlg.wxs file into my project and changed the Id to: CustomWelcomeEulaDlg Copied the WelcomeDlg.wxs file into my project and changed the Id to: CustomWelcomeDlg Added InstallTypeDlg.wxs to my project</p> <p>Modified the CustomWelcomeEulaDlg to change the Install button to a next button. Modified WixUI_CustomMinimal to make the Next/NextNoShield buttons on WelcomeEulaDlg open the InstallTypeDlg dialog</p> <p>Added the InstallTypeDlg Dialog to the InstallUiSequence.</p> <p>So now the problem: I am trying to setup a back button on InstallTypeDlg, this is working but after pressing the back button and then pressing the next button on CustomWelcomeEulaDlg InstallTypeDlg is skipped and it goes straight to installing.</p> <p>Here are my files:</p> <p>WixUI_CustomMinimal</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!-- &lt;copyright file="WixUI_Minimal.wxs" company="Outercurve Foundation"&gt; Copyright (c) 2004, Outercurve Foundation. This software is released under Microsoft Reciprocal License (MS-RL). The license and further copyright text can be found in the file LICENSE.TXT at the root directory of the distribution. &lt;/copyright&gt; --&gt; &lt;!-- First-time install dialog sequence: - WixUI_WelcomeEulaDlg Maintenance dialog sequence: WixUI_MaintenanceWelcomeDlg - WixUI_MaintenanceTypeDlg - WixUI_VerifyReadyDlg Patch dialog sequence: - WixUI_WelcomeDlg - WixUI_VerifyReadyDlg --&gt; &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt; &lt;Fragment&gt; &lt;UI Id="WixUI_CustomMinimal"&gt; &lt;TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /&gt; &lt;TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /&gt; &lt;TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /&gt; &lt;Property Id="DefaultUIFont" Value="WixUI_Font_Normal" /&gt; &lt;Property Id="WixUI_Mode" Value="Minimal" /&gt; &lt;DialogRef Id="ErrorDlg" /&gt; &lt;DialogRef Id="FatalError" /&gt; &lt;DialogRef Id="FilesInUse" /&gt; &lt;DialogRef Id="MsiRMFilesInUse" /&gt; &lt;DialogRef Id="PrepareDlg" /&gt; &lt;DialogRef Id="ProgressDlg" /&gt; &lt;DialogRef Id="ResumeDlg" /&gt; &lt;DialogRef Id="UserExit" /&gt; &lt;DialogRef Id="CustomWelcomeDlg" /&gt; &lt;DialogRef Id="CustomWelcomeEulaDlg" /&gt; &lt;DialogRef Id="InstallTypeDlg" /&gt; &lt;Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999"&gt;1&lt;/Publish&gt; &lt;Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg"&gt;1&lt;/Publish&gt; &lt;Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg"&gt;1&lt;/Publish&gt; &lt;Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg"&gt;1&lt;/Publish&gt; &lt;Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg"&gt;1&lt;/Publish&gt; &lt;Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg"&gt;1&lt;/Publish&gt; &lt;Publish Dialog="CustomWelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg"&gt;Installed AND PATCH&lt;/Publish&gt; &lt;Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="CustomWelcomeDlg" Order="2"&gt;Installed AND PATCH&lt;/Publish&gt; &lt;Publish Dialog="CustomWelcomeEulaDlg" Control="Next" Event="NewDialog" Value="InstallTypeDlg"&gt;Installed AND PATCH&lt;/Publish&gt; &lt;Publish Dialog="CustomWelcomeEulaDlg" Control="NextNoShield" Event="NewDialog" Value="InstallTypeDlg"&gt;Installed AND PATCH&lt;/Publish&gt; &lt;Publish Dialog="InstallTypeDlg" Control="Back" Event="NewDialog" Value="CustomWelcomeEulaDlg" Order="2"&gt;Installed AND PATCH&lt;/Publish&gt; &lt;InstallUISequence&gt; &lt;Show Dialog="CustomWelcomeDlg" Before="CustomWelcomeEulaDlg"&gt;Installed AND PATCH&lt;/Show&gt; &lt;Show Dialog="CustomWelcomeEulaDlg" Before="InstallTypeDlg"&gt;NOT Installed&lt;/Show&gt; &lt;Show Dialog="InstallTypeDlg" Before="ProgressDlg"&gt;NOT Installed&lt;/Show&gt; &lt;/InstallUISequence&gt; &lt;Property Id="ARPNOMODIFY" Value="1" /&gt; &lt;/UI&gt; &lt;UIRef Id="WixUI_Common" /&gt; &lt;/Fragment&gt; &lt;/Wix&gt; </code></pre> <p>CustomWelcomeEulaDlg</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!-- &lt;copyright file="WelcomeEulaDlg.wxs" company="Outercurve Foundation"&gt; Copyright (c) 2004, Outercurve Foundation. This software is released under Microsoft Reciprocal License (MS-RL). The license and further copyright text can be found in the file LICENSE.TXT at the root directory of the distribution. &lt;/copyright&gt; --&gt; &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt; &lt;Fragment&gt; &lt;UI&gt; &lt;Dialog Id="CustomWelcomeEulaDlg" Width="370" Height="270" Title="!(loc.WelcomeEulaDlg_Title)"&gt; &lt;Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="!(loc.WelcomeEulaDlgBitmap)" /&gt; &lt;Control Id="Title" Type="Text" X="130" Y="6" Width="225" Height="30" Transparent="yes" NoPrefix="yes" Text="!(loc.WelcomeEulaDlgTitle)" /&gt; &lt;Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /&gt; &lt;Control Id="LicenseAcceptedCheckBox" Type="CheckBox" X="130" Y="207" Width="226" Height="18" CheckBoxValue="1" Property="LicenseAccepted" Text="!(loc.WelcomeEulaDlgLicenseAcceptedCheckBox)" /&gt; &lt;Control Id="Print" Type="PushButton" X="88" Y="243" Width="56" Height="17" Text="!(loc.WixUIPrint)"&gt; &lt;Publish Event="DoAction" Value="WixUIPrintEula"&gt;1&lt;/Publish&gt; &lt;/Control&gt; &lt;Control Id="Back" Type="PushButton" X="156" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUIBack)" /&gt; &lt;Control Id="Next" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Default="yes" Text="Next" Hidden="yes"&gt; &lt;Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg"&gt;!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1&lt;/Publish&gt; &lt;Publish Event="EndDialog" Value="Return"&gt;&lt;![CDATA[OutOfDiskSpace &lt;&gt; 1]]&gt;&lt;/Publish&gt; &lt;Publish Event="SpawnDialog" Value="OutOfRbDiskDlg"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)&lt;/Publish&gt; &lt;Publish Event="EndDialog" Value="Return"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"&lt;/Publish&gt; &lt;Publish Event="EnableRollback" Value="False"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"&lt;/Publish&gt; &lt;Publish Event="SpawnDialog" Value="OutOfDiskDlg"&gt;(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")&lt;/Publish&gt; &lt;Condition Action="disable"&gt;&lt;![CDATA[LicenseAccepted &lt;&gt; "1"]]&gt;&lt;/Condition&gt; &lt;Condition Action="enable"&gt;LicenseAccepted = "1"&lt;/Condition&gt; &lt;Condition Action="show"&gt;ALLUSERS&lt;/Condition&gt; &lt;/Control&gt; &lt;Control Id="NextNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Default="yes" Text="Next" Hidden="yes"&gt; &lt;Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg"&gt;!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1&lt;/Publish&gt; &lt;Publish Event="EndDialog" Value="Return"&gt;&lt;![CDATA[OutOfDiskSpace &lt;&gt; 1]]&gt;&lt;/Publish&gt; &lt;Publish Event="SpawnDialog" Value="OutOfRbDiskDlg"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)&lt;/Publish&gt; &lt;Publish Event="EndDialog" Value="Return"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"&lt;/Publish&gt; &lt;Publish Event="EnableRollback" Value="False"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"&lt;/Publish&gt; &lt;Publish Event="SpawnDialog" Value="OutOfDiskDlg"&gt;(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")&lt;/Publish&gt; &lt;Condition Action="disable"&gt;&lt;![CDATA[LicenseAccepted &lt;&gt; "1"]]&gt;&lt;/Condition&gt; &lt;Condition Action="enable"&gt;LicenseAccepted = "1"&lt;/Condition&gt; &lt;Condition Action="show"&gt;NOT ALLUSERS&lt;/Condition&gt; &lt;/Control&gt; &lt;Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"&gt; &lt;Publish Event="SpawnDialog" Value="CancelDlg"&gt;1&lt;/Publish&gt; &lt;/Control&gt; &lt;Control Id="LicenseText" Type="ScrollableText" X="130" Y="36" Width="226" Height="162" Sunken="yes" TabSkip="no"&gt; &lt;Text SourceFile="!(wix.WixUILicenseRtf)" /&gt; &lt;/Control&gt; &lt;/Dialog&gt; &lt;/UI&gt; &lt;InstallUISequence&gt; &lt;Show Dialog="CustomWelcomeEulaDlg" Before="ProgressDlg" Overridable="yes"&gt;NOT Installed&lt;/Show&gt; &lt;/InstallUISequence&gt; &lt;/Fragment&gt; &lt;/Wix&gt; </code></pre> <p>InstallTypeDlg</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!-- &lt;copyright file="WelcomeEulaDlg.wxs" company="Outercurve Foundation"&gt; Copyright (c) 2004, Outercurve Foundation. This software is released under Microsoft Reciprocal License (MS-RL). The license and further copyright text can be found in the file LICENSE.TXT at the root directory of the distribution. &lt;/copyright&gt; --&gt; &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt; &lt;Fragment&gt; &lt;UI&gt; &lt;Property Id="INSTALLTYPE" Value="Null"/&gt; &lt;Dialog Id="InstallTypeDlg" Width="370" Height="270" Title="!(loc.WelcomeEulaDlg_Title)"&gt; &lt;Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="!(loc.WelcomeEulaDlgBitmap)" /&gt; &lt;Control Id="Title" Type="Text" X="130" Y="6" Width="225" Height="30" Transparent="yes" NoPrefix="yes" Text="!(loc.WelcomeEulaDlgTitle)" /&gt; &lt;Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /&gt; &lt;Control Id="Print" Type="PushButton" X="88" Y="243" Width="56" Height="17" Text="!(loc.WixUIPrint)"&gt; &lt;Publish Event="DoAction" Value="WixUIPrintEula"&gt;1&lt;/Publish&gt; &lt;/Control&gt; &lt;Control Id="Back" Type="PushButton" X="156" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /&gt; &lt;Control Id="Install" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Default="yes" Text="Install" Hidden="yes"&gt; &lt;Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg"&gt;!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1&lt;/Publish&gt; &lt;Publish Event="EndDialog" Value="Return"&gt;&lt;![CDATA[OutOfDiskSpace &lt;&gt; 1]]&gt;&lt;/Publish&gt; &lt;Publish Event="SpawnDialog" Value="OutOfRbDiskDlg"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)&lt;/Publish&gt; &lt;Publish Event="EndDialog" Value="Return"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"&lt;/Publish&gt; &lt;Publish Event="EnableRollback" Value="False"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"&lt;/Publish&gt; &lt;Publish Event="SpawnDialog" Value="OutOfDiskDlg"&gt;(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")&lt;/Publish&gt; &lt;Publish Event="AddLocal" Value="ServiceFeature"&gt;&lt;![CDATA[INSTALLTYPE = "SERVICE"]]&gt;&lt;/Publish&gt; &lt;Publish Event="Remove" Value="ServiceFeature"&gt;&lt;![CDATA[INSTALLTYPE &lt;&gt; "SERVICE"]]&gt;&lt;/Publish&gt; &lt;Condition Action="disable"&gt;INSTALLTYPE = "Null"&lt;/Condition&gt; &lt;Condition Action="enable"&gt;&lt;![CDATA[INSTALLTYPE &lt;&gt; "Null"]]&gt;&lt;/Condition&gt; &lt;Condition Action="show"&gt;ALLUSERS&lt;/Condition&gt; &lt;/Control&gt; &lt;Control Id="InstallNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Default="yes" Text="Install" Hidden="yes"&gt; &lt;Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg"&gt;!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1&lt;/Publish&gt; &lt;Publish Event="EndDialog" Value="Return"&gt;&lt;![CDATA[OutOfDiskSpace &lt;&gt; 1]]&gt;&lt;/Publish&gt; &lt;Publish Event="SpawnDialog" Value="OutOfRbDiskDlg"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)&lt;/Publish&gt; &lt;Publish Event="EndDialog" Value="Return"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"&lt;/Publish&gt; &lt;Publish Event="EnableRollback" Value="False"&gt;OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"&lt;/Publish&gt; &lt;Publish Event="SpawnDialog" Value="OutOfDiskDlg"&gt;(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")&lt;/Publish&gt; &lt;Publish Event="AddLocal" Value="ServiceFeature"&gt;&lt;![CDATA[INSTALLTYPE = "SERVICE"]]&gt;&lt;/Publish&gt; &lt;Publish Event="Remove" Value="ServiceFeature"&gt;&lt;![CDATA[INSTALLTYPE &lt;&gt; "SERVICE"]]&gt;&lt;/Publish&gt; &lt;Condition Action="disable"&gt;INSTALLTYPE = "Null"&lt;/Condition&gt; &lt;Condition Action="enable"&gt;&lt;![CDATA[INSTALLTYPE &lt;&gt; "Null"]]&gt;&lt;/Condition&gt; &lt;Condition Action="show"&gt;NOT ALLUSERS&lt;/Condition&gt; &lt;/Control&gt; &lt;Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"&gt; &lt;Publish Event="SpawnDialog" Value="CancelDlg"&gt;1&lt;/Publish&gt; &lt;/Control&gt; &lt;Control Id="FeatureGroup" Property="INSTALLTYPE" Type="RadioButtonGroup" Default="no" X="130" Y="36" Width="226" Height="162"&gt; &lt;RadioButtonGroup Property="INSTALLTYPE"&gt; &lt;RadioButton Text="Console" Height="17" Value="CONSOLE" Width="150" X="20" Y="0" /&gt; &lt;RadioButton Text="Windows Service" Height="17" Value="SERVICE" Width="150" X="20" Y="25" /&gt; &lt;RadioButton Value="Null" X="0" Y="0" Width="0" Height="0" Text="Null" /&gt; &lt;/RadioButtonGroup&gt; &lt;/Control&gt; &lt;/Dialog&gt; &lt;/UI&gt; &lt;InstallUISequence&gt; &lt;Show Dialog="InstallTypeDlg" Before="ProgressDlg" Overridable="yes"&gt;NOT Installed&lt;/Show&gt; &lt;/InstallUISequence&gt; &lt;/Fragment&gt; &lt;/Wix&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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. 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