Menu

#2442 WelcomeDlg duplicate definition

future
expected-behavior
nobody
2013-05-27
2011-02-02
No

While upgrading a project from 3.0 to 3.5, getting:

23>C:\delivery\Dev\wix35_public\src\ext\UIExtension\wixlib\WixUI_Advanced.wxs(125,0): error LGHT0170: The InstallUISequence table contains an action 'WelcomeDlg' that is declared in two different locations. Please remove one of the actions or set the Overridable='yes' attribute on one of their elements.
23>C:\delivery\Dev\wix35_public\src\ext\UIExtension\wixlib\WixUI_Minimal.wxs(63,0): error LGHT0171: The location of the action related to previous error.

Project contains no definition of WelcomeDlg, find all for "WelcomeDlg" yields:
...DialogText.wxl(139): <string id="user-content-MaintenanceWelcomeDlg_Title" overridable="yes">...
...DialogText.wxl(140): <string id="user-content-MaintenanceWelcomeDlgBitmap" overridable="yes">...
...DialogText.wxl(141): <string id="user-content-MaintenanceWelcomeDlgDescription" overridable="yes">...
...DialogText.wxl(142): <string id="user-content-MaintenanceWelcomeDlgTitle" overridable="yes">...
...DialogText.wxl(236): <string id="user-content-WelcomeDlg_Title" overridable="yes">...
...DialogText.wxl(237): <string id="user-content-WelcomeDlgBitmap" overridable="yes">...
...DialogText.wxl(238): <string id="user-content-WelcomeDlgDescription" overridable="yes">...
...DialogText.wxl(239): <string id="user-content-WelcomeDlgTitle" overridable="yes">...
...\EmsUI_Standard.wxs(15): <publish dialog="ServiceCredentialsDlg" control="Back" event="NewDialog" value="WelcomeDlg">1</publish>
...\EmsUI_Standard.wxs(18): <publish dialog="WelcomeDlg" control="Next" event="NewDialog" value="ServiceCredentialsDlg">1</publish>
...\EmsUI_Standard.wxs(104): <publish dialog="WelcomeDlg" control="Next" event="NewDialog" value="LicenseAgreementDlg">1</publish>
...\EmsUI_Standard.wxs(106): <publish dialog="LicenseAgreementDlg" control="Back" event="NewDialog" value="WelcomeDlg">1</publish>
...\EmsUI_Standard.wxs(123): <publish dialog="MaintenanceWelcomeDlg" control="Next" event="NewDialog" value="MaintenanceTypeDlg">1</publish>
...\EmsUI_Standard.wxs(128): <publish dialog="MaintenanceTypeDlg" control="Back" event="NewDialog" value="MaintenanceWelcomeDlg">1</publish>
...\CustomActions.wxs(171): <custom action="caSetRedirectorWarning" after="WelcomeDlg"></custom>
...\CustomActions.wxs(176): <custom action="caSetExitDialogOptionalText" after="WelcomeDlg"></custom></string></string></string></string></string></string></string></string>

Extension reference properties look similar to:
(Name) WixUIExtension
Full Path c:\Program Files (x86)\Windows Installer XML v3.5\bin\WixUIExtension.dll
Version 0.0

Properties pane shows version 0.0 but when adding a reference in Add References -> Recent it shows version 3.5.2519.0

Went through all .wixproj and .wixlib files and replaced ProductVersion from 3.0 to 3.5 with no effect.

Looks to be a multiple definition of this dialog somewhere in the extension library.

Discussion

  • Bob Arnson

    Bob Arnson - 2011-02-02

    Your custom UI has references to both WixUI_Advanced and WixUI_Minimal, which pulls in conflicting authoring.

     
  • - 2011-02-03

    Neither of those fragments are directly referenced; neither "WixUI_Advanced" nor "WixUI_Minimal" appears anywhere in the entire solution. Is there a way to find out what would be causing the reference?

     
  • candyc

    candyc - 2011-02-16

    We will try to fix the error message.

     
  • kromnast

    kromnast - 2013-03-19

    Hello
    I suffered with this "double definition error" using "WixUI_Minimal" also. I don't think it is done by a better error message. But on the other side I'm new to WIX so it may be simply an error by my coding.
    I created a simple file with wixedit (see below). It creates the "defined in two different location" error. I thought there is an Attribute set Overridable="yes" on the InstallSequence elements, but perhaps I'm missing the big picture.

    Interestingly, the "WixUI_Minimal" template has a InstallUISequence section but the "WixUI_Installdir" has not (in the wix source code).

    <?xml version="1.0" encoding="utf-8"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Product Id="2EAB6900-8940-4353-A5E7-FE039AECFCCF" Name="TestProduct" Language="1033" Version="0.0.0.1" Manufacturer="WixEdit" UpgradeCode="E9135750-7443-492A-B00A-73008DD07404">
    <Package Description="Test file in a Product" Comments="Simple test" InstallerVersion="200" Compressed="yes" />
    <Media Id="1" Cabinet="simple.cab" EmbedCab="yes" />
    <Directory Id="TARGETDIR" Name="SourceDir">
    <Directory Id="ProgramFilesFolder" Name="PFiles">
    <Directory Name="fsdf" Id="FSDF" />
    </Directory>
    </Directory>
    <Feature Id="DefaultFeature" Title="Main Feature" Level="1">
    </Feature>
    <UI>
    <Dialog Id="ShortcutDlg" Width="370" Height="270">
    <Control Type="PushButton" Id="Next" Width="56" Height="17" X="154" Y="172" Text="Next" />
    <Control Type="PushButton" Id="Back" Width="56" Height="17" X="34" Y="172" Text="Back" />
    </Dialog>
    <InstallUISequence>
    <Show Dialog="ShortcutDlg" Before="ProgressDlg">NOT Installed</Show>
    <Show Dialog="WelcomeDlg" Before="WelcomeEulaDlg">NOT Installed OR PATCH</Show>
    <Show Dialog="WelcomeEulaDlg" Before="ShortcutDlg">NOT Installed</Show>
    </InstallUISequence>
    </UI>
    <UIRef Id="WixUI_InstallDir" />
    </Product>
    </Wix>

     

    Last edit: kromnast 2013-03-19
  • Bob Arnson

    Bob Arnson - 2013-05-27
    • status: open --> expected-behavior
     
  • Bob Arnson

    Bob Arnson - 2013-05-27

    Adding or reordering dialogs requires creating an all-new dialog set fragment. Any attempt to just add additional Show or Publish elements will conflict with existing content in the WixUI library. If you have a new dialog set fragment, please open a new bug and attach that fragment so we can see what's conflicting.

     
MongoDB Logo MongoDB