Yes, the easiest way to Fix that:

1. Copy original UI File from WixSources into your Dev Sources.
2. Rename Your Copy, as in WixUI_IntallDir-<project name>
3. Change the UI Reference you noted below to point to the file from step 2.

Quoting Kelli Hendrickson <ke...@wamit.com>:

>
> Thank you.  I did take your advice and look at going through things one by
> one.  I actually retreated to downloading a clean version of the sample and
> compared the files and found an error my working version of
> SampleFirstUI.wxs file.
>
> The line:
>     <UIRef Id='WixUI_InstallDir'/>
>
> was causing the duplicate symbols.  When I removed it, the sample compiled
> and linked just fine.  I am at least confident that my installation is clean
> and continue coming up the learning curve.
>
> Kelli
>
>
> -----Original Message-----
> From: Kelli Hendrickson
> Sent: Friday, November 01, 2013 10:23 AM
> To: General discussion about the WiX toolset.
> Subject: Re: [WiX-users] Duplicate Symbols for WixUI on WiX Tutorial code
>
> I'm sorry if I was not clear.  I have not duplicated anything from the
> sources.  I am compiling and liking the tutorial from the website in the
> original post.  The .wxs file is below:
>
> The compile command:
> candle.exe SampleWixUI.wxs
>
> The link command:
> light.exe -ext WiXUIExtension -out WixUI.msi SampleWixUI.wixobj
>
> The output and errors:
> Windows Installer Xml Linker version 3.7.1224.0
> Copyright (C) Outercurve Foundation. All rights reserved.
>
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Mondo.wxs(54)
> : error LGHT0091 : Duplicate symbol
> 'ControlEvent:WelcomeDlg/Next/NewDialog/VerifyReadyDlg/Installed AND PATCH'
> found. This typically means that an Id is duplicated. Check to make sure all
> your identifiers of a given type (File, Component, Feature) are unique.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs(58)
> : error LGHT0092 : Location of symbol related to pr
> evious error.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Mondo.wxs(40)
> : error LGHT0091 : Duplicate symbol 'Property:WixUI_Mode' found. This
> typically means that an Id is duplicated. Check to make sure all your
> identifiers of a given type (File, Component, Feature) are unique.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs(39)
> : error LGHT0092 : Location of symbol related to pr
> evious error.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Mondo.wxs(79)
> : error LGHT0091 : Duplicate symbol
> 'ControlEvent:MaintenanceTypeDlg/Back/NewDialog/MaintenanceWelcomeDlg/1'
> found. This typically means that an Id is duplicated. Check to make sure all
> your identifiers of a given type (File, Component, Feature) are unique.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs(79)
> : error LGHT0092 : Location of symbol related to pr
> evious error.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Mondo.wxs(78)
> : error LGHT0091 : Duplicate symbol
> 'ControlEvent:MaintenanceTypeDlg/RemoveButton/NewDialog/VerifyReadyDlg/1'
> found. This typically means that an Id is duplicated. Check to make sure all
> your identifiers of a given type (File, Component, Feature) are unique.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs(78)
> : error LGHT0092 : Location of symbol related to pr
> evious error.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Mondo.wxs(51)
> : error LGHT0091 : Duplicate symbol
> 'ControlEvent:ExitDialog/Finish/EndDialog/Return/1' found. This typically
> means that an Id is duplicated. Check to make sure all your identifiers of a
> given type (File, Component, Feature) are unique.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs(55)
> : error LGHT0092 : Location of symbol related to pr
> evious error.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Mondo.wxs(74)
> : error LGHT0091 : Duplicate symbol 'ControlEvent:Mainte
> nanceWelcomeDlg/Next/NewDialog/MaintenanceTypeDlg/1' found. This typically
> means that an Id is duplicated. Check to make sure all your identifiers of a
> given type (File, Component, Feature) are unique.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs(75)
> : error LGHT0092 : Location of symbol related to pr
> evious error.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Mondo.wxs(56)
> : error LGHT0091 : Duplicate symbol
> 'ControlEvent:LicenseAgreementDlg/Back/NewDialog/WelcomeDlg/1' found. This
> typically means that an Id is duplicated. Check to make sure all your
> identifiers of a given type (File, Component, Feature) are unique.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs(60)
> : error LGHT0092 : Location of symbol related to pr
> evious error.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Mondo.wxs(39)
> : error LGHT0091 : Duplicate symbol 'Property:DefaultUIFont' found. This
> typically means that an Id is duplicated. Check to make sure all your
> identifiers of a given type (File, Component, Feature) are unique.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs(38)
> : error LGHT0092 : Location of symbol related to pr
> evious error.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Mondo.wxs(77)
> : error LGHT0091 : Duplicate symbol
> 'ControlEvent:MaintenanceTypeDlg/RepairButton/NewDialog/VerifyReadyDlg/1'
> found. This typically means that an Id is duplicated. Check to make sure all
> your identifiers of a given type (File, Component, Feature) are unique.
> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs(77)
> : error LGHT0092 : Location of symbol related to pr
> evious error.
>
> ---------------------------
> SampleFirstUI.wxs -----------------------------------------
> <?xml version='1.0' encoding='windows-1252'?>
> <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
>   <Product Name='Foobar 1.0' Id='1A8512BC-36AA-40B7-838E-ED88C95BD541'
> UpgradeCode='F374CF0A-96E2-42C3-8862-E74F6DA7CDF9'
>     Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme
> Ltd.'>
>
>     <Package Id='*' Keywords='Installer'
>       Description="Acme's Foobar 1.0 Installer"
>       Comments='Foobar is a registered trademark of Acme Ltd.'
> Manufacturer='Acme Ltd.'
>       InstallerVersion='100' Languages='1033' Compressed='yes'
> SummaryCodepage='1252' />
>
>     <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1"
> />
>     <Property Id='DiskPrompt' Value="Acme's Foobar 1.0 Installation [1]" />
>
>     <Directory Id='TARGETDIR' Name='SourceDir'>
>       <Directory Id='ProgramFilesFolder' Name='PFiles'>
>         <Directory Id='Acme' Name='Acme'>
>           <Directory Id='INSTALLDIR' Name='Foobar 1.0'>
>
>             <Component Id='MainExecutable'
> Guid='7999D237-BA87-4065-A298-3C7B20E87E74'>
>               <File Id='FoobarEXE' Name='FoobarAppl10.exe' DiskId='1'
> Source='FoobarAppl10.exe' KeyPath='yes'>
>                 <Shortcut Id="startmenuFoobar10" Directory="ProgramMenuDir"
> Name="Foobar 1.0" WorkingDirectory='INSTALLDIR' Icon="Foobar10.exe"
> IconIndex="0" Advertise="yes" />
>                 <Shortcut Id="desktopFoobar10" Directory="DesktopFolder"
> Name="Foobar 1.0" WorkingDirectory='INSTALLDIR' Icon="Foobar10.exe"
> IconIndex="0" Advertise="yes" />
>               </File>
>             </Component>
>
>             <Component Id='HelperLibrary' Guid=''>
>               <File Id='HelperDLL' Name='Helper.dll' DiskId='1'
> Source='Helper.dll' KeyPath='yes' />
>             </Component>
>
>             <Component Id='Manual'
> Guid='591A567E-2FF7-4CC1-8D0E-2DFB94F8A23A'>
>               <File Id='Manual' Name='Manual.pdf' DiskId='1'
> Source='Manual.pdf' KeyPath='yes'>
>                 <Shortcut Id="startmenuManual" Directory="ProgramMenuDir"
> Name="Instruction Manual" Advertise="yes" />
>               </File>
>             </Component>
>
>           </Directory>
>         </Directory>
>       </Directory>
>
>       <Directory Id="ProgramMenuFolder" Name="Programs">
>         <Directory Id="ProgramMenuDir" Name="Foobar 1.0">
>           <Component Id="ProgramMenuDir"
> Guid="6DCD4235-EB4C-4C9B-BF26-62FE4C46A50D">
>             <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
>             <RegistryValue Root='HKCU'
> Key='Software\[Manufacturer]\[ProductName]' Type='string' Value=''
> KeyPath='yes' />
>           </Component>
>         </Directory>
>       </Directory>
>
>       <Directory Id="DesktopFolder" Name="Desktop" />
>     </Directory>
>
>     <Feature Id='Complete' Title='Foobar 1.0' Description='The complete
> package.'
>       Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'>
>       <Feature Id='MainProgram' Title='Program' Description='The main
> executable.' Level='1'>
>         <ComponentRef Id='MainExecutable' />
>         <ComponentRef Id='HelperLibrary' />
>       <ComponentRef Id='ProgramMenuDir' />
>       </Feature>
>
>       <Feature Id='Documentation' Title='Description' Description='The
> instruction manual.' Level='1000'>
>         <ComponentRef Id='Manual' />
>       </Feature>
>     </Feature>
>
>     <UIRef Id="WixUI_Mondo" />
>     <UIRef Id='WixUI_InstallDir'/>
>     <Property Id='WIXUI_INSTALLDIR' Value='INSTALLDIR' />
>     <UIRef Id="WixUI_ErrorProgressText" />
>
>     <Icon Id="Foobar10.exe" SourceFile="FoobarAppl10.exe" />
>
>   </Product>
> </Wix>
>
> -----Original Message-----
> From: ecyo...@grandecom.net
> Sent: Friday, November 01, 2013 9:47 AM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Duplicate Symbols for WixUI on WiX Tutorial code
>
> Use Programs and Features to Uninstall Wix, then move your project out
> of your Dev directory.  Second, Delete your Dev Directory, then
> redownload Wix37.exe and Wix37-sources.zip.  Unzip the sources back
> into your Dev Directory.  After this open your Gui source Files in
> your project, and Rename the Files each one references to something
> new.  In short your modified file cannot reference anything with the
> same name as the UI source Files.
>
> Quoting Kelli Hendrickson <ke...@wamit.com>:
>
>>
>> Hello,
>> I think I have broken my WiX installation and have not been able to
>> recover from it.
>>
>> I am using WiX 3.7 from command prompt on a 64-bit Windows 7 laptop.
>>
>> When initially working on the tutorial for WiX
>> (http://wix.tramontana.co.hu/tutorial/user-interface/ui-wizardry), I
>> was able to successfully build the MSI file using the UI components.
>>  I then tried to apply it to the application that I am working on
>> and ran into undefined symbols issues.  Not thinking clearly, I
>> blamed my issues on WiX and not a typo on my part.  I tried to
>> update my WiX, Repair and then uninstall and reinstall it.  After
>> that (I admit idiotic) process, I found the typo in my application
>> files and was to remove the undefined symbols errors only to start
>> getting duplicate symbols errors for the components that involve the
>> WiX UI in my application.
>>
>> After a lot of online research, I decided to go back and repeat my
>> initial success with the tutorial files just to check my
>> installation.  Now when I compile and link the tutorial, I get many
>> errors like the following:
>>
>> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Mondo.wxs(54)
>> : error LGHT0091 : Duplicate symbol
>> 'ControlEvent:WelcomeDlg/Next/NewDialog/VerifyReadyDlg/Installed AND
>> PATCH' found. This typically means that an Id is duplicated. Check
>> to make sure all your identifiers of a given type (File, Component,
>> Feature) are unique.
>> E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs(58)
>> : error LGHT0092 : Location of symbol related to previous
>> error.
>>
>> All of my searches on the web for duplicate symbols return results
>> for when users are customizing the UI and have not renamed their
>> Ids.  In my application and the tutorial, none of this has been
>> done.  I am fairly certain that this is due to my
>> repair/uninstall/reinstall of WiX 3.7.  I would just love some help
>> in cleaning up my installation so that the tutorial works again.
>>
>> Does anyone have any suggestions on how to investigate where the
>> duplicate symbols are coming from?  The reference to the E drive is
>> confusing me as I do not have one.  When I uninstalled and rebooted,
>> before reinstalling, I looked in the registry to determine whether
>> or not there were some lingering references to WiX in the registry
>> and did not find any.
>>
>> Thanks,
>> Kelli
>>
>>
>> ----
>> Kelli Hendrickson
>> ke...@wamit.com
>>
>> ===========================================================
>> WAMIT Inc.
>> 822 Boylston St., Suite 202, Chestnut Hill, MA 02467, USA
>> Phone: 617-651-1618
>> http://www.wamit.com
>> ===========================================================
>> ------------------------------------------------------------------------------
>> Android is increasing in popularity, but the open development platform
>> that
>> developers love is also attractive to malware creators. Download this
>> white
>> paper to learn more about secure code signing practices that can help keep
>> Android apps secure.
>> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>
>
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>




------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to