Hi,

I'm building an installer and it was going good until I wanted to add a new 
dialog.  I now want my installer to be able to install some "extensions" into a 
third party application directory, and therefore want to have a dialog that 
allows users to specify the installation directory.  I'm using Votive with 
VS2008, and I've added two new file to my project "ChooseDirectoriesDialog.wxs" 
and "WixUI_MyUI.wxs".  In the _MyUI one I have the following code (that's 
basically a copy of WixUI_Minimal):

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <Fragment>
    <UI Id="TreasuryServices">
      <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
      <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
      <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />

      <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
      <Property Id="WixUI_Mode" Value="Minimal" />

      <DialogRef Id="ErrorDlg" />
      <DialogRef Id="FatalError" />
      <DialogRef Id="FilesInUse" />
      <DialogRef Id="MsiRMFilesInUse" />
      <DialogRef Id="PrepareDlg" />
      <DialogRef Id="ProgressDlg" />
      <DialogRef Id="ResumeDlg" />
      <DialogRef Id="UserExit" />
      <DialogRef Id="WelcomeEulaDlg" />
      <DialogRef Id="ChooseDirectoriesDlg" />

      <Publish Dialog="WelcomeEulaDlg" Control="Next" Event="NewDialog" 
Value="ChooseDirectoriesDlg">1</Publish>

      <Publish Dialog="ChooseDirectoriesDlg" Control="Back" Event="NewDialog" 
Value="WelcomeEulaDlg">1</Publish>
      <Publish Dialog="ChooseDirectoriesDlg" Control="Next" Event="NewDialog" 
Value="VerifyReadyDlg">1</Publish>

      <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" 
Value="Return" Order="999">1</Publish>

      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" 
Value="MaintenanceTypeDlg">1</Publish>

      <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" 
Value="MaintenanceTypeDlg">1</Publish>

      <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" 
Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
      <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" 
Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
      <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" 
Value="MaintenanceWelcomeDlg">1</Publish>

      <Property Id="ARPNOMODIFY" Value="1" />
    </UI>

    <UIRef Id="WixUI_Common" />
  </Fragment>
</Wix>

I'm now getting the following error when I try to build:

error LGHT0204: ICE03: Not a valid foreign key; Table: ControlEvent, Column: 
Control_, Key(s): WelcomeEulaDlg.Next.NewDialog.ChooseDirectoriesDlg.1

I'm obviously doing something wrong, and I'm pretty certain that the code above 
isn't right - I just couldn't quite figure out what was going on in the 
minimal.wxs file (since it seems to be totally different to any examples I've 
seen).

Cheers,
Adam
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to