(I don't need to declare InstallUISequence as I'm not choosing a
different welcome dialog based on Patch or not)

To simply use WixUI_Minimal with a different id, you can have your UI
fragment look like this:

<Fragment>
  <UI Id="SkyUI_Minimal">
    <UIRef Id="WixUI_Minimal" />
  </UI>
</Fragment>

If you want to add more dialogs to the UI, you can add DialogRef nodes
to the fragment after the UIRef to WixUI_Minimal.

You only need to copy the entire WixUI_Minimal if you want to remove a
dialog or re-order them or if you're customizing one of the dialogs. To
do this, I think you will need to define your own Welcome (and
WelcomeEula) dialogs (with a different id, and with own Show actions
etc) and possibly the other dialogs too. Note that you could just
copy/paste the existing dialog definitions from the Minimal source into
your UI and change the ids.


-----Original Message-----
From: Brad Schick [mailto:schi...@gmail.com] 
Sent: 08 January 2011 02:30
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom UI sequence

Thom, where is the InstallUISequence in you example?

Here is my current code. This is the only UI element in my main product
wxs:

        <UIRef Id="SkyUI_Minimal" />

This is the entire body of the SkyUI_Minimal.wxs file that is included
in my project (unchanged from WixUI_Minimal except the name):

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
    <Fragment>
        <UI Id="SkyUI_Minimal">
            <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="WelcomeDlg" />
            <DialogRef Id="WelcomeEulaDlg" />

            <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>

            <Publish Dialog="WelcomeDlg" Control="Next"
Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish>
            <Publish Dialog="VerifyReadyDlg" Control="Back"
Event="NewDialog" Value="WelcomeDlg" Order="2">Installed AND
PATCH</Publish>

            <InstallUISequence>
                <Show Dialog="WelcomeDlg"
Before="WelcomeEulaDlg">Installed AND PATCH</Show>
                <Show Dialog="WelcomeEulaDlg" Before="ProgressDlg">NOT
Installed</Show> 
            </InstallUISequence>

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

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


Then I have WixUIExtension included in the "reference" section of my VS
2008 project. Again, this is a C++ console application rather than .Net.


-Brad


On Jan 7, 2011, at 12:25 AM, Thom Leigh wrote:

> This is how I do it in my (working) customized minimal UI, using WiX 
> 3.5...
> 
> In the main Product wxs:
> <UI>
>    <UIRef Id="WixUI_NoWelcome" />
>    <UIRef Id="WixUI_ErrorProgressText" /> </UI>
> 
> My customized UI wxs (which, coincidentally, simply removes the 
> Welcome dialog from the standard minimal UI. So I'm not trying to do 
> exactly the same thing as you...):
> 
>    <UI Id="WixUI_NoWelcome">
>            <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" /> -->
> 
>            <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>
>    </UI>
>    <UIRef Id="WixUI_Common" />
> 
> No other wxs files are in the project, and I have a reference to 
> WixUIExtension.
> 
> Maybe you can post fragments of your code and list the wxs files that 
> are in your project, so we can compare...
> 
> -Thom
> 
> 
> -----Original Message-----
> From: Brad Schick [mailto:schi...@gmail.com]
> Sent: 07 January 2011 00:38
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Custom UI sequence
> 
> Well I have WixUIExtension added under Reference in the project. But I

> believe that I need that for the dialogs that I have not copied into 
> the project. Other than that, there is no reference to WixUI_Minimal 
> that I can find in my code.
> 
> -Brad
> 
> 
> On Jan 6, 2011, at 2:40 PM, Neil Sleightholm wrote:
> 
>> It would appear to me that you are still including WixUI_Minimal 
>> somehow.
>> 
>> Neil
>> 
>> -----Original Message-----
>> From: Brad Schick [mailto:schi...@gmail.com]
>> Sent: 06 January 2011 20:14
>> To: General discussion for Windows Installer XML toolset.
>> Subject: Re: [WiX-users] Custom UI sequence
>> 
>> Yes, that was changed from the start. I searched for "WIXUI_Minimal" 
>> in the copied file and replaced the one instance I found in <UI> with

>> "SkyUI_Minimal".
>> 
>> -Brad
>> 
>> On Jan 6, 2011, at 11:01 AM, Neil Sleightholm wrote:
>> 
>>> In your copy of copy WixUI_Minimal.wxs (SkyUI_Minimal.wxs) you need 
>>> to
>> 
>>> set <UI Id="SkyUI_Minimal">. Can you confirm that is set?
>>> 
>>> Neil
>>> 
>>> -----Original Message-----
>>> From: Brad Schick [mailto:schi...@gmail.com]
>>> Sent: 06 January 2011 18:45
>>> To: General discussion for Windows Installer XML toolset.
>>> Subject: Re: [WiX-users] Custom UI sequence
>>> 
>>> The only reference I have in my source wxs is below, which was 
>>> changed
>> 
>>> to the new name as shown:
>>> 
>>>      <UIRef Id="SkyUI_Minimal" />
>>> 
>>> -Brad
>>> 
>>> On Jan 6, 2011, at 3:28 AM, Neil Sleightholm wrote:
>>> 
>>>> After copying did you change the UI/@id attribute and then 
>>>> reference
>>> this in your source?
>>>> 
>>>> Neil
>>>> 
>>>> Neil Sleightholm
>>>> X2 Systems Limited
>>>> n...@x2systems.com <mailto:n...@x2systems.com>
>>>> 
>>>> 
>>>> ________________________________
>>>> 
>>>> From: Brad Schick [mailto:schi...@gmail.com]
>>>> Sent: Thu 06/01/2011 00:34
>>>> To: wix-users@lists.sourceforge.net
>>>> Subject: [WiX-users] Custom UI sequence
>>>> 
>>>> 
>>>> I am trying to customize the WixUI_Minimal sequence. Following
this:
> 
>>>> http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.
>>>> h
>>>> t
>>>> m
>>>> l And this: 
>>>> http://www.dizzymonkeydesign.com/blog/misc/adding-and-customizing-d
>>>> l
>>>> g
>>>> s
>>>> -in-wix-3/
>>>> 
>>>> My first step was to just copy WixUI_Minimal.wxs, rename it to
>>> SkyUI_Minimal.wxs, added that to my project, and use that new name 
>>> for
>> 
>>> UI in my installer (no other changes). I get the following build
>> errors:
>>>> 
>>>> 
>>> 
> C:\delivery\Dev\wix35_public\src\ext\UIExtension\wixlib\WixUI_Minimal.
>>> wx
>>> s(63,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.
>>>> C:\Users\user\Documents\Visual Studio
>>> 2008\Projects\misc\setup\SkyUI_Minimal.wxs(64,0): error LGHT0171: 
>>> The
> 
>>> location of the action related to previous error.
>>>> 
>>> 
> C:\delivery\Dev\wix35_public\src\ext\UIExtension\wixlib\WixUI_Minimal.
>>> wx
>>> s(64,0): error LGHT0170: The InstallUISequence table contains an 
>>> action 'WelcomeEulaDlg' that is declared in two different locations.
>>> Please remove one of the actions or set the Overridable='yes' 
>>> attribute on one of their elements.
>>>> C:\Users\user\Documents\Visual Studio
>>> 2008\Projects\misc\setup\SkyUI_Minimal.wxs(65,0): error LGHT0171: 
>>> The
> 
>>> location of the action related to previous error.
>>>> Done building project "setup.wixproj" -- FAILED.
>>>> 
>>>> 
>>>> Somewhat humorously, if I add Overridable='yes' to 
>>>> SkyUI_Minimal.wxs
> 
>>>> I
>>> get the following two errors:
>>>> 
>>>> 
>>> C:\delivery\Dev\wix35_public\src\ext\UIExtension\wixlib\WelcomeDlg.w
>>> x
>>> s
>>> (3
>>> 8,0): error LGHT0168: The InstallUISequence table contains an action

>>> 'WelcomeDlg' that is declared overridable in two different
locations.
>>> Please remove one of the actions or the Overridable='yes' attribute 
>>> from one of the actions.
>>>> C:\Users\user\Documents\Visual Studio
>>> 2008\Projects\misc\setup\SkyUI_Minimal.wxs(64,0): error LGHT0169: 
>>> The
> 
>>> location of the action related to previous error.
>>>> 
>>> C:\delivery\Dev\wix35_public\src\ext\UIExtension\wixlib\WelcomeEulaD
>>> l
>>> g
>>> .w
>>> xs(57,0): error LGHT0168: The InstallUISequence table contains an 
>>> action 'WelcomeEulaDlg' that is declared overridable in two 
>>> different
> 
>>> locations.  Please remove one of the actions or the
Overridable='yes'
>>> attribute from one of the actions.
>>>> C:\Users\user\Documents\Visual Studio
>>> 2008\Projects\misc\setup\SkyUI_Minimal.wxs(65,0): error LGHT0169: 
>>> The
> 
>>> location of the action related to previous error.
>>>> Done building project "setup.wixproj" -- FAILED.
>>>> 
>>>> 
>>>> Version  3.5.2415.0 running on Windows 7 with VS 2008. This is an
>>> installer for a C++ console application. Suggestions?
>>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> -
>> --
>> ------
>> Learn how Oracle Real Application Clusters (RAC) One Node allows 
>> customers to consolidate database storage, standardize their database

>> environment, and, should the need arise, upgrade to a full multi-node

>> Oracle RAC database without downtime or disruption 
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> 
>> ---------------------------------------------------------------------
>> -
>> -------- Learn how Oracle Real Application Clusters (RAC) One Node 
>> allows customers to consolidate database storage, standardize their 
>> database environment, and, should the need arise, upgrade to a full 
>> multi-node Oracle RAC database without downtime or disruption 
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> ----------------------------------------------------------------------
> --
> ------
> Learn how Oracle Real Application Clusters (RAC) One Node allows 
> customers to consolidate database storage, standardize their database 
> environment, and, should the need arise, upgrade to a full multi-node 
> Oracle RAC database without downtime or disruption 
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> ----------------------------------------------------------------------
> -------- Gaining the trust of online customers is vital for the 
> success of any company
> that requires sensitive data to be transmitted over the Web.   Learn
how to 
> best implement a security strategy that keeps consumers' information 
> secure and instills the confidence they need to proceed with
transactions.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
Gaining the trust of online customers is vital for the success of any
company
that requires sensitive data to be transmitted over the Web.   Learn how
to 
best implement a security strategy that keeps consumers' information
secure and instills the confidence they need to proceed with
transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to