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-showing-final-installation-interrupted-i-e-UserExit-dialog-on-Cancel-tp5323855p5323855.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