I have a Managed Installer Class which I'm using jointly with installutil to
execute Install/Uninstall/Rollback/Commit Custom Actions. The only Custom
Action which is not working is the Rollback.

    <CustomAction Id="Install" BinaryKey="InstallUtil"
DllEntry="ManagedInstall" Execute="deferred" Impersonate="no" />
    <CustomAction Id="InstallSetProp" Property="Install"
Value="/installtype=notransaction /action=install" Impersonate="no" />
    <CustomAction Id="Commit" BinaryKey="InstallUtil"
DllEntry="ManagedInstall" Execute="commit" Impersonate="no" />
    <CustomAction Id="CommitSetProp" Property="Commit"
Value="/installtype=notransaction /action=commit" Impersonate="no" />
    <CustomAction Id="Rollback" BinaryKey="InstallUtil"
DllEntry="ManagedInstall" Execute="rollback" Impersonate="no" />
    <CustomAction Id="RollbackSetProp" Property="Rollback"
Value="/installtype=notransaction /action=rollback" Impersonate="no" />
    <CustomAction Id="Uninstall" BinaryKey="InstallUtil"
DllEntry="ManagedInstall" Execute="deferred" Impersonate="no" />
    <CustomAction Id="UninstallSetProp" Property="Uninstall"
Value="/installtype=notransaction /action=uninstall" Impersonate="no" />
    <InstallExecuteSequence>
      <Custom Action="InstallSetProp"
After="StartServices">$MyComponent&gt;2 </Custom>
      <Custom Action="Install" After="InstallSetProp">$MyComponent&gt;2
</Custom>
      <Custom Action="UninstallSetProp"
After="MsiUnpublishAssemblies">$MyComponent=2 </Custom>
      <Custom Action="Uninstall"
After="UninstallSetProp">$MyComponent=2</Custom>
      <Custom Action="CommitSetProp"
After="Install">$MyComponent&gt;2</Custom>
      <Custom Action="Commit"
After="CommitSetProp">$MyComponent&gt;2</Custom>
      <Custom Action="RollbackSetProp"
After="Install">$MyComponent&gt;2</Custom>
      <Custom Action="Rollback"
After="RollbackSetProp">$MyComponent&gt;2</Custom>
    </InstallExecuteSequence>

Any idea about why the Rollback CA is not being executed when the user
cancel the installation or some errors ocurrs? The MSI rollback phase is
being executed correctly.
I know that Managed CA are not recommended but I will aprreciate if you can
help me with this problem.

Thanks!
-Adrian
-------------------------------------------------------------------------
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

Reply via email to