I have defined the rollback custom action like following:

<CustomAction Id="CA_SetBase_Rollback" Property="CA_Rollback"
Value='MACHINE=[INSTALLMACHINE];VALUE=[BASE]' Execute='immediate'
Return="check" />

<CustomAction Id="CA_Rollback" BinaryKey="BIN_CustomAction"
DllEntry="Rollback" Execute="rollback" Return="check" />

<InstallExecuteSequence>
<!--For Install-->
      <Custom Action="CA_SetBase_Install" Before="CA_Install">NOT
Installed</Custom>
      <Custom Action="CA_Install" After="CA_Rollback">NOT Installed</Custom>

<!--For Rollback-->
      <Custom Action="CA_SetBase_Rollback" Before="CA_Rollback">NOT
Installed</Custom>
      <Custom Action="CA_Rollback" After="StartServices">NOT
Installed</Custom>

</InstallExecuteSequence>

Now i run the installer, it goes fine copies  files to the respective
folders and then starts the custom action to perform. The custom action
takes some times to complete, about 30 seconds. If the I press the cancel
button to stop the installation process, i get the cancel dialog, I select
Yes.

The installer then completes the custom action task then after it performs
the rollback (i guess the default rollback and not the custom action).
After complete rollback i see all folders gone, registry deleted (this is
what i expected) but the changes made by the custom action still exists.
The rollback custom action which i wrote does not performs.

I am not sure why this is happening?

-- 
Thanks and Regards,
Ravi Raj
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to