The reason you see the AdvancedWelcomeEulaDlg a second time is because in 
AdvancedWelcomeEulaDlg.wxs there is the following:

        <InstallUISequence>
            <Show Dialog="AdvancedWelcomeEulaDlg" Before="ProgressDlg">NOT 
Installed</Show>
        </InstallUISequence>

Hence it's showing up in the InstallUISequence.

What happens when you click Next on the WelcomeDlg is it does what you've set 
the Next button to do. By default in WixUI_Advanced.wxs it spawns 
VerifyReadyDlg using the NewDialog function when Next is clicked. You must have 
also modified that too if you're getting to the FeaturesDlg somehow (I'm 
assuming you've made it spawn AdvancedWelcomeEulaDlg).

The only way to fix it is to copy & paste the contents of 
AdvancedWelcomeEulaDlg.wxs from the WiX source into your code, rename the 
Dialog to something unique (e.g. MyAdvancedWelcomeEulaDlg), remove the above 
code to stop it showing twice then update the references to point at your new 
custom version & remove the references to the original. You'd also want to 
change your <Show Dialog="WelcomeDlg" Before="AdvancedWelcomeEulaDlg">1</Show> 
to <Show Dialog="WelcomeDlg" Before="ProgressDlg">1</Show> otherwise it will 
probably give you problems building or running as it'll be trying to place a 
dialog before a dialog which doesn't exist.

Palbinder Sandher 
Software Deployment Engineer
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer

-----Original Message-----
From: Dave Combs [mailto:dave.co...@kaazing.com] 
Sent: 27 April 2011 19:07
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] another noob question about customizing the standarddialog 
sets

I'm trying to customize the WixUI_Advanced dialog set, and had something
fairly simple, but it doesn't seem to work the way I expected.  I'd like the
Welcome dialog to show up always (not just when doing a patch), so I copied
the WixUI_Advanced.wxs internals and changed the InstallSequence at the end
to say

           <Show Dialog="WelcomeDlg" Before="AdvancedWelcomeEulaDlg"
>1</Show>

(the condition used to be 'Installed AND PATCH'.

Now, if I run an initial install, things look okay until I get to the end of
the Feature dialog, at which point the AdvancedEulaDlg shows up. Looking at
the MSI in Orca, I see
the following:

Action                                 Condition                 Sequence
WelcomeDlg                        1                             1295
AdvancedWelcomeEulaDlg   NOT Installed           1296
MaintenanceWelcomeDlg     Installed AND NOT RESUME AND NOT Preselected AND
NOT PATCH    1297
ResumeDlg                         Installed AND (RESUME OR Preselected)
ProgressDlg
ExecuteAction

The conditions for AdvancedWelcomeEulaDlg and the others are baked into
their .wxs files in UIExtension. I assume what was intended is that during
InstallUISequence, each will be evaluated as an initial condition and that
particular dialog will show up (and none of the others will later evaluate
to true), and then Next and Back definitions will dictate what happens
next.  That's reasonable.  However, it appears I'm then unable to dictate my
own initial dialog (WelcomeDlg always, in our case).  Is there some way to
remove the 'InstallSequence' items for the other dialogs without actually
copying and modifying the dialog .wxs source files?  I couldn't find one,
but would love a pointer to something that explains how to do it.

Thanks!
Dave
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to