Custom actions can swallow the cancel message. If you look at the WiX toolset's custom actions, we have wrappers for most of the MSI APIs and in those wrappers, special handling ifa cancel is sent back. If you have an install with custom actions where the cancel button is being lost, this is often the issue.
The other issue is the Windows Installer may have sent the "Disable Cancel button" message already. Clicking cancel after that point, of course, has no effect. On Fri, Jun 8, 2012 at 6:39 AM, Rob Hamflett <rob_hamfl...@sn.scee.net>wrote: > I'm seeing a strange issue where it looks like I can't cancel an > installation during the last action before InstallFinalize in the > InstallExecuteSequence. > > I have two deferred custom actions for updating VS 2008 and 2010 > (running "devenv /setup /nosetupvstemplates") and they are scheduled > immediately before InstallFinalize. > > When I see the progress text for the 2008 action I cancel the > installation. The 2008 action takes some time to run so the installer > continues to show this text for a bit until it eventually rolls back and > aborts the installation. If I do the same thing during the 2010 setup, > (which comes after the 2008 action and is the last thing before > InstallFinalize) then the cancel dialog still shows as normal, but this > time the installer will run to completion. > > I re-ran the installer and opted not to install the 2010 support, so the > 2010 action won't run. This time when I cancel during the 2008 action, > the installer waits for the 2008 action to complete but this time the > installation completes instead of rolling back. > > Does anyone have any insight into what's going on? > > Thanks, > Rob > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users