Removing on rollback is the easy case. The hard case is rollback of uninstall where you removed a bunch of registry keys and have to put them all back. Second hardest is repair where you write a bunch of entries and have to write the old ones back on rollback.
On Mon, Nov 22, 2010 at 11:06 AM, Wilson, Phil <phil.wil...@invensys.com>wrote: > First, I'd look to see if the DifX framework supplies all this stuff > without you needing to do it: > > http://www.microsoft.com/whdc/driver/install/difxtools.mspx > > It sounds like you need to understand rollback custom actions. The basic > idea is that if you create a bunch of registry entries in an install custom > action, then you also need a rollback custom action that restores the system > to its previous state, most likely by removing them. Sequence the rollback > CA before your install CA, and the MSI framework will call the rollback CA > if the install fails and rolls back. > > Phil Wilson > > > -----Original Message----- > From: Bisht, Pradeep [mailto:pradeep_bi...@yahoo.com] > Sent: Monday, November 22, 2010 8:12 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] atomic (un)install when using custom actions; > > Thanks Dave. Can you please elaborate? How can I author them to make my > installation atomic. I have 3 custom actions - each installs a driver - > creates > some registry entries. I need to make sure that if the installation of any > one > driver fails then the rest of the drivers should also not be installed. > Thanks. > > > > ----- Original Message ---- > From: David Watson <dwat...@sdl.com> > To: General discussion for Windows Installer XML toolset. > <wix-users@lists.sourceforge.net> > Sent: Mon, November 22, 2010 3:14:20 AM > Subject: Re: [WiX-users] atomic (un)install when using custom actions; > > The windows installer is inherently transactional, your custom actions need > to > be too. > > Author them so that they install, uninstall and rollback correctly. > > Dave > > > -----Original Message----- > From: Bisht, Pradeep [mailto:pradeep_bi...@yahoo.com] > Sent: 22 November 2010 05:49 > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] atomic (un)install when using custom actions; > > I 'm thinkin of using checkpoints. Is it possible to create checkpoints > before > installation and revert to it in case of an error during installation? > Thanks. > > > > ----- Original Message ---- > From: "Bisht, Pradeep" <pradeep_bi...@yahoo.com> > To: wix-users@lists.sourceforge.net > Sent: Fri, November 19, 2010 6:47:47 PM > Subject: atomic (un)install when using custom actions; > > I'm installing multiple drivers using custom actions inside a single > setup.msi. > Is there a way to make sure that (un)install is atomic. I need to support > both > client as well as window's server versions. Thanks. > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > SDL PLC confidential, all rights reserved. > If you are not the intended recipient of this mail SDL requests and > requires > that you delete it without acting upon or copying any of its contents, and > we > further request that you advise us. > SDL PLC is a public limited company registered in England and Wales. > Registered > number: 02675207. > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 > 7DY, > UK. > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > *** Confidentiality Notice: This e-mail, including any associated or > attached files, is intended solely for the individual or entity to which it > is addressed. This e-mail is confidential and may well also be legally > privileged. If you have received it in error, you are on notice of its > status. Please notify the sender immediately by reply e-mail and then delete > this message from your system. Please do not copy it or use it for any > purposes, or disclose its contents to any other person. This email comes > from a division of the Invensys Group, owned by Invensys plc, which is a > company registered in England and Wales with its registered office at 3rd > Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). For > a list of European legal entities within the Invensys Group, please go to > http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77 > . > > You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail > recept...@invensys.com. This e-mail and any attachments thereto may be > subject to the terms of any agreements between Invensys (and/or its > subsidiaries and affiliates) and the recipient (and/or its subsidiaries and > affiliates). > > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users