In article <54eeb3a30905120956p79b48ea7ka564c640e57be...@mail.gmail.com>, Tim Haloun <thal...@google.com> writes:
> I have a simple related question. I am trying to test the execution of my > rollback custom action. I had thought that returning ERROR_INSTALL_FAILURE > from a type 1 CA with return="Check" would do the trick. What I see though > is that further actions are skipped, the msi returns code 1603, and the > rollback CA is not invoked. Does the placement of the rollback action in > the InstallExecuteSequence matter? I currently have it after the other CA > whose failure I want to correct. Yes, sequencing of the actions matters. It always matters. The MSI execution model is to execute actions in the order they are sequenced. The correct way to test rollback CAs is to put a type 19 CA in your execute sequence, just before InstallFinalize which ends the install transaction. Put a condition on the type 19 CA such that it only executes when you want to test rollback, generally using a public property so you can test this from the command-line. Then run your install with the public property set to the right value, the type 19 action will force an error, which will undo the entire transaction and test all rollback actions that were inside the transaction (it doesn't make any sense to have rollback actions sequenced outside the transaction delineated by InstallInitialize and InstallFinalize). -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://blogs.xmission.com/legalize/> ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users