Thanks that's what I thought...

Here's what I've done...

I copied WixUI_Minimal.wxs into my project and renamed it to
WixUI_Minimal_Modified.wxs.  Then I changed the UI's Id attribute to read...

<UI Id="WixUI_Minimal_Modified">

In my Product.wxs I added...

<UIRef Id="WixUI_Minimal_Modified"/>

If I build I get a bunch of errors about missing dialogs (ErrorDlg,
FatalError, etc.).  So, I add a dll reference to WixUIExtension.

Now I get a bunch of duplicate symbol errors with WixUI_Minimal.wxs.

...
...\MyProject\WixUI_Minimal_Modified.wxs(70,0): 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_Minimal.wxs(56,0):
error LGHT0092: Location of symbol related to previous error.
...

I must have missed a step somewhere... any ideas?



On Tue, Nov 5, 2013 at 4:58 PM, Steven Ogilvie <steven.ogil...@titus.com>wrote:

> Classification: Public
> No you don't need to physically copy the wxs file, you just need to copy
> the <UI element from that wxs file into your code. Then you need to add
> your dialog I.e.
> <DialogRef Id="MyNewDlg"/>
>
> You can substitute your dialog for the LicenseAgreementDlg dialog...
>
> i.e.
>
> <UI Id="WixUI_MYCOMPANYInstallDir">
>       <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="InstallDir" />
>
>       <DialogRef Id="BrowseDlg" />
>       <DialogRef Id="DiskCostDlg" />
>       <DialogRef Id="ErrorDlg" />
>       <DialogRef Id="FatalError" />
>       <DialogRef Id="FilesInUse" />
>       <DialogRef Id="MsiRMFilesInUse" />
>       <DialogRef Id="PrepareDlg" />
>       <DialogRef Id="ProgressDlg" />
>       <DialogRef Id="ResumeDlg" />
>       <DialogRef Id="UserExit" />
>
>       <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction"
> Value="WixUIValidatePath" Order="3">1</Publish>
>       <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog"
> Value="InvalidDirDlg"
> Order="4"><![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
>
>       <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog"
> Value="Return" Order="999">1</Publish>
>
>       <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
> Value="LicenseAgreementDlg">NOT Installed</Publish>
>       <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
> Value="VerifyReadyDlg">Installed AND PATCH</Publish>
>
>       <Publish Dialog="LicenseAgreementDlg" Control="Back"
> Event="NewDialog" Value="WelcomeDlg">1</Publish>
>       <Publish Dialog="LicenseAgreementDlg" Control="Next"
> Event="NewDialog" Value="VerifyReadyDlg">LicenseAccepted = "1"</Publish>
>
>       <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
> Value="LicenseAgreementDlg" Order="1">NOT Installed</Publish>
>       <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
> Value="MaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish>
>       <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
> Value="WelcomeDlg" Order="2">Installed AND PATCH</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>
>
>     </UI>
>
>     <UIRef Id="WixUI_Common" />
>
> Steve
> -----Original Message-----
> From: Tony [mailto:yellowjacketl...@gmail.com]
> Sent: November-05-13 4:43 PM
> To: WiX Users
> Subject: [WiX-users] Modifying a stock WixUI sequence clarification...
>
> I'd like to use WixUI_Minimal, but I need to insert one dialog and remove
> the EULA dialog.  According to the last section of online docs found here (
> http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html
> ),
> I need to copy WixUI_Minimal.wxs from the Wix source into my project and
> then make the necessary changes.
>
> Do I need to rename the copied file's UI Id element to something other
> than WiXUI_Minimal in order to prevent a duplicate with the
> WixUIExtension's version?
>
> --
> Tony
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers Accelerate application
> performance with scalable programming models. Explore techniques for
> threading, error checking, porting, and tuning. Get the most from the
> latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> This message has been marked as Public by Steven Ogilvie on November-05-13
> 4:58:01 PM.
>
> The above classification labels were added to the message by TITUS Message
> Classification. For more information visit www.titus.com.
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models.
> Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and
> register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Tony
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&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