When cancelling the installation process the dialog launched is the one
in the InstallUISequence with sequence -2 (UserExit in the standard WiX
UI).

I don't think you can have multiple entries in the Sequence tables with
the same sequence number so providing another appropriately Conditioned
dialog is unlikely to work.

The easiest way you could achieve this would be to Condition the
Controls on the UserExit dialog to only show if some property is or
isn't set & then add more controls to show when the opposite is true.

Neil Sleighholm's blog page on Customizing the WiX UI's may provide you
with some guidance for this ->
http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.html

Palbinder Sandher 
Software Deployment & IT Administrator
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: chaiguy1337 [mailto:lo...@electricstorm.com] 
Sent: 22 July 2010 04:27
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Avoid showing final "installation interrupted"
(i.e. UserExit) dialog on Cancel


Hi all. I would like to avoid showing that last dialog when the user
clicks "Cancel" before installation has begun. I would still like the
dialog to be shown if the user cancels an installation that has been
started, as this tells them the cancellation was successful, but if no
install is taking place, I would like clicking Cancel to just terminate
the installer gracefully and silently.

I have gotten a couple "ideas" on how to do this from different people,
which is to define a property when the cancel button is clicked and then
make this a condition for the exit dialog, but I unfortunately don't
know how to do this. I've tried a couple things, namely declaring in my
Cancel button element:


                                <Control Id="Cancel"
        
Type="PushButton"
                                                        X="184"
                                                        Y="261"
                                                        Width="56"
                                                        Height="19"
                                                        Cancel="yes"
        
Text="!(loc.WixUICancel)">
                                        <Publish Property="AbortInstall"
Value="1" />
                                        <Publish Event="EndDialog"
        
Value="Exit">1</Publish>

...and then adding this to the Show element of the UserExit dialog:

<InstallUISequence>
                                <Show Dialog="Simple_UserExit"
                                                OnExit="cancel">NOT
AbortInstall</Show>
                        </InstallUISequence>

...but that doesn't seem to do anything. :(

-----
A. Logan Murray
http://pihole.org/
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Avoid-show
ing-final-installation-interrupted-i-e-UserExit-dialog-on-Cancel-tp53238
55p5323855.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
This SF.net email is sponsored by Sprint What will you do first with
EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to