Rollback actions must be sequenced before the action that could cause the
failure. It looks like you have the rollbacks actions defined after the
install actions.
-Brian
Simoneau
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 8:43 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Rollback of Custom ActionI am new to WIX, and installations in general, and I am currently attempting to create a custom action that calls a managed installer class. I am aware that using managed custom actions generally appears to be frowned upon and I am looking at options to remove the need for them in my scenario. However, my first step is to incorporate our existing installer classes and prove that this will work if neccessary.I have found various blogs that contain examples and have had no problems in calling the custom actions for install, commit and uninstall. My problem is with rollback, in that if an exception is thrown from my installer class the custom action created to handle the rollback is not called, even though the install is not successful. My custom actions are defined as follows:<
Binary Id="InstallUtil" src="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtilLib.dll" /><CustomAction Id='Uninstall' BinaryKey='InstallUtil' DllEntry='ManagedInstall' Execute='deferred' /><CustomAction Id='UninstallSetProp' Property='Uninstall' Value=' /installtype=notransaction /action="" /LogFile= "[#InstallerDll]" "[#ConfigFile]"' /><CustomAction Id='Install' BinaryKey='InstallUtil' DllEntry='ManagedInstall' Execute='deferred' /><CustomAction Id='InstallSetProp' Property='Install' Value=' /installtype=notransaction /action="" /LogFile= "[#InstallerDll]" "[#ConfigFile]"' /><CustomAction Id='Rollback' BinaryKey='InstallUtil' DllEntry='ManagedInstall' Execute='rollback' /><CustomAction Id='RollbackSetProp' Property='Rollback' Value=' /installtype=notransaction /action="" /LogFile= "[#InstallerDll]" "[#ConfigFile]"' /><CustomAction Id='Commit' BinaryKey='InstallUtil' DllEntry='ManagedInstall' Execute='commit' /><CustomAction Id='CommitSetProp' Property='Commit' Value=' /installtype=notransaction /action="" /LogFile= "[#InstallerDll]" "[#ConfigFile]"' /><InstallExecuteSequence><Custom Action="InstallSetProp" After="StartServices">$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><Custom Action="RollbackSetProp" After="Install">$MainComponent>2</Custom><Custom Action="Rollback" After="RollbackSetProp">$MainComponent>2</Custom></InstallExecuteSequence>I would appreciate any help in trying to understand what I am doing wrong.Thanks--
------------------------------------------------------------------------------
HBOS plc, Registered in Scotland No. SC218813. Registered Office: The Mound, Edinburgh EH1 1YZ. HBOS plc is a holding company, subsidiaries of which are authorised and regulated by the Financial Services Authority.
==============================================================================
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users