WiX: "PushButton: 'Next' of Dialog: 'InstallDirDlg' does not have an event defined in the ControlEvent table. It is a 'Do Nothing' button."

wix, wix3.8

Solution

I think you need a reference to the WiX UI you are modifying. Try this:

<UI>
  <UIRef Id="WixUI_InstallDir" />        <!-- Added line -->

  <Publish Dialog="WelcomeDlg"
           Control="Next"
           Event="NewDialog"
           Value="InstallDirDlg"
           Order="2">1</Publish>
  <Publish Dialog="InstallDirDlg"
           Control="Back"
           Event="NewDialog"
           Value="WelcomeDlg"
           Order="2">1</Publish>
</UI>

Problem

I have a WiX 3.8 installer `Product.wxs` that builds correctly in Visual Studio 2010 Professional. I just wanted to modify the steps workflow of the installer, so I added this just after the Wix/Product/Package XML element: ``` <UI> <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" Order="2">1</Publish> <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2">1</Publish> </UI> ``` Problem: WiX now fails with this message: Error 13 ICE17: PushButton: 'Next' of Dialog: 'InstallDirDlg' does not have an event defined in the ControlEvent table. It is a 'Do Nothing' button. C:\src\wix38\src\ext\UIExtension\wixlib\InstallDirDlg.wxs 14 1 Installer What am I doing wrong?

Original source