A rollback CA is a deferred CA that is scheduled (usually right) before the deferred CA it undoes the action of and is only called if there is a failure in any action "after" the rollback CA is "scheduled". If you are attempting to use "quiet CAs" for this, you will do:
<CustomAction Id="RB_QtExecDeferredExampleWithProperty_Cmd" Property="RB_QtExecDeferredExampleWithProperty" Value=""[#MyExecutable.exe]" /RB" Execute="immediate"/> <CustomAction Id="RB_QtExecDeferredExampleWithProperty" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="rollback" Return="check" Impersonate="no"/> <CustomAction Id="QtExecDeferredExampleWithProperty_Cmd" Property="QtExecDeferredExampleWithProperty" Value=""[#MyExecutable.exe]"" Execute="immediate"/> <CustomAction Id="QtExecDeferredExampleWithProperty" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="no"/> With appropriate scheduling (assuming that "/RB" is the appropriate argument for MyExecutable.exe to make it rollback what it does without arguments). Make sure that the rollback is scheduled before the action it undoes (QtExecDeferredExampleWithProperty), and that it is scheduled after InstallFiles/PatchFiles/DuplicateFiles. -----Original Message----- From: Andres Juarez [mailto:andresj_...@hotmail.com] Sent: Thursday, May 13, 2010 3:21 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to rollback a quiet CA Hi there, If I have a defered quiet CA: <CustomAction Id="QtExecDeferredExampleWithProperty_Cmd" Property="QtExecDeferredExampleWithProperty" Value=""[#MyExecutable.exe]"" Execute="immediate"/> <CustomAction Id="QtExecDeferredExampleWithProperty" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="no"/> If I want to have the rollback CA for the above, is there any way of doing that? Because the property setting CA cannot be deferred but inmediate, so changing to the below won't work: <CustomAction Id="RB_QtExecDeferredExampleWithProperty_Cmd" Property="RB_QtExecDeferredExampleWithProperty" Value=""[#MyExecutable.exe]"" Execute="rollback"/> <CustomAction Id="RB_QtExecDeferredExampleWithProperty" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="rollback" Return="check" Impersonate="no"/> thanks Andres _________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W L:en-US:WM_HMP:042010_3 ---------------------------------------------------------------------------- -- _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users