> -----Original Message----- > From: Sneha Gharpure > > the "WriteToRegistry" action is called only during the > installation and therefore the condition " Not Installed". > I am not sure about the condition for "WriteToRegistry_Rollback". > I have tried both- "Installed" and "Not Installed" > > <Custom Action="WriteToRegistry" Sequence="6402"> > Not Installed > </Custom> > <Custom Action="WriteToRegistry_Rollback" Before="WriteToRegistry"> > Installed > </Custom>
Richard is right that your primary issue to that your CA has to be deferred if you want your rollback action to get written to the rollback script. I wanted to add that the condition for your rollback action should be the same as the deferred action that you want to roll back. I.e. if WriteToRegistry's condition is 'Not Installed', then you want to use 'Not Installed' for WriteToRegistry_Rollback too. When you get to the action and the condition 'Not Installed' is true, the rollback custom action doesn't fire right away, it gets written to the rollback script. It will then be executed if the install rolls back. For a helpful overview see "Installation Phases and In-Script Execution Options for Custom Actions in Windows Installer" on Stefan Krueger's site. http://www.installsite.org/pages/en/isnews/200108/index.htm Daryn. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users