I know that I can rollback my custom action just overriding rollback method. 
And the method is called only if Install method was called 
(http://msdn2.microsoft.com/en-us/library/system.configuration.install.installer.rollback.aspx).
 It means that after Uninstall overridden method, method Rollback will not be 
called. I will try to describe the issue more detailed. And please fill free to 
write me that you do not understand my English or the general idea of the 
issue. It is still important for me.
   
  I need to rollback my uninstallation process.
   
  Steps to reproduce:
  1. User goes to Add/Remove Programs. And Remove my program.
  2. Uninstall method in the Installer1 : Installer class is overriding 
  3. In the Uninstall method my custom action is run. The action works about 20 
seconds. And in the last action of my custom action creates a text file, for 
instance. The file is not a part of installation it is just a result of working 
the custom action. During this time user can cancels uninstallation (imagine he 
recognizes that he really does not want to remove program).
  4. User pushes Cancel button (during custom action in the uninstall method is 
working).
  5. What should I do here? Well, at least I need to delete the text file. For 
this I need Rollback method, like when user pushes Cancel button during 
installation process – the same but for uninstallation process.
   
  MSI automatically restores files when user pushes Cancel button during 
uninstallation, and MSI rollbacks custom action during installation process, 
i.e. when user pushes Cancel button during installation process MSI calls 
Rollback method. But MSI does not rollback custom action during uninstallation 
process. I have not method which I can override to catch when user pushes 
Cancel button during uninstallation.
   
  Please will not propose to make text fie as part of installation to avoid 
rollbacking during uninstallation, because I really need such uninstallation 
rollback for my long working custom action.
   
  Thank you

       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.
-------------------------------------------------------------------------
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