I see, thanks, so basically all I have to do is to have an inmediate CA that sets the RB property and this will be available if the deferred RB CA runs:
in terms of the scheduling, I am thinking of doing the below: <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"/> <InstallExecuteSequence> <Custom Action="RB_QtExecDeferredExampleWithProperty_Cmd" After="InstallFiles"/> <Custom Action="QtExecDeferredExampleWithProperty_Cmd" After="QtExecDeferredExampleWithProperty_Cmd"/> <Custom Action="RB_QtExecDeferredExampleWithProperty" Before="QtExecDeferredExampleWithProperty"/> <Custom Action="QtExecDeferredExampleWithProperty" After="RB_QtExecDeferredExampleWithProperty"/> </InstallExecuteSequence> Notice that I also have to do some RB CA that runs on uninstall, they will be very similar to the above but I will have to sequence them after "InstallInitiallize" since that is when the uninstall CA run, before RemoveFiles. Thanks Andres > From: os...@live.com > To: wix-users@lists.sourceforge.net > Date: Fri, 14 May 2010 17:23:20 -0700 > Subject: Re: [WiX-users] How to rollback a quiet CA > > 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 _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users