Anthony Wieser wrote:
> The documentation "Rollback Custom Actions" implies that I need to schedule
> a rollback custom action before my deferred custom action, but also includes
> this paragraph:
>   

Commit CAs are dangerous in that they run only when rollback is enabled. 
Avoid them wherever possible.

> What does the "copies the custom action into the rollback script, but does
> not execute" in the first quote actually mean?   Do they execute or not?  I
> assume that they do actually execute first, when a rollback occurs.
>   

 From "Commit Custom Actions":

Note that a rollback custom action may not be able to remove all of the 
changes made by commit custom actions. Although the installer writes 
both rollback and commit custom actions into the rollback script, commit 
custom actions only run after the installer has successfully processed 
the installation script. Commit custom actions are the first actions to 
run in the rollback script. If a commit custom action fails, the 
installer initiates rollback but can only rollback those operations 
already written to the rollback script.

> Also, as I understand it Commit items are done in the user context, rather
> than under the system local account.  

It's an option; commit CAs can be either impersonated or not.

> Presumably, for my custom action I need to come up with a condition that
> runs when I remove if relevant, and checks to see if my action (or a
> different one) needs to run.
>   

Remember that the ideal CA model is declarative; you don't need a 
condition because you tie component states with data in a table. So your 
rollback and "do" CAs have no conditions, just like the MSI standard 
actions.

> Do I also need to do a rollback, incase the uninstall cancels or fails with
> the same conditions immediately before?
>   

Yes, exactly.

-- 
sig://boB
http://bobs.org



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to