Hi Adrian, The rollback should be put just before the corresponding custom action. In your script, the rollback is corresponding to install, so the custom action sequence should be like this: <InstallExecuteSequence> <Custom Action="RollbackSetProp" After="StartServices">$MainComponent>2</Custom> <Custom Action="Rollback" After="RollbackSetProp">$MainComponent>2</Custom>
<Custom Action="InstallSetProp" After="Rollback">$MainComponent>2</Custom> <Custom Action="Install" After="InstallSetProp">$MainComponent>2</Custom> <Custom Action="UninstallSetProp" After="MsiUnpublishAssemblies">$MainComponent=2</Custom> <Custom Action="Uninstall" After="UninstallSetProp">$MainComponent=2</Custom> <Custom Action="CommitSetProp" After="Install">$MainComponent>2</Custom> <Custom Action="Commit" After="CommitSetProp">$MainComponent>2</Custom> </InstallExecuteSequence> BTW,The rollback action in your script only works during installation. I like managed custom action because it is simple. But I don't like the installer class. For example, it's hard to define rollback action for both install and uninstall. I perfer to create an executable as custom action. Best regards, Jennifer Zhao -- View this message in context: http://www.nabble.com/Rollback-Managed-Custom-Action-Issue-tp15163810p15177946.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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