Seems to me like a timing issue. I think the "cancel" command will not be
processed until your custom action returns. Then Windows Installer might
decide that it is too late to cancel immediately before / during
InstallFinalize.
I would try to call MsiProcessMessage() at the end of your CA. If
MsiProcessMessage() returns IDCANCEL, return ERROR_INSTALL_USEREXIT from
your CA.


achandrapano wrote:
> 
> I have a custom action that occurs right before InstallFinalize. Pressing
> cancel and selecting 'yes' doesn't seem to cause a rollback. Is this a
> timing issue since no rollbacks are allowed after InstallFinalize? The MSI
> log shows the cancel dlg was created but nothing else (I did a diff of 2
> msi logs, one with cancel and one without)
> 

-- 
View this message in context: 
http://n2.nabble.com/Pressing-yes-to-a-cancel-dialog-during-a-binary-custom-action-does-not-trigger-rollback-tp2982772p2982882.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to