That doesn't work. A component's condition applies to installation. So
once a component is installed, you can't conditionally uninstall it when
you remove the entire application, which happens during the major
upgrade. Then you can choose not to re-install the component on a
condition, but the configuration files will be removed by then.

 

As Markus Kuehni wrote in his previous post, MSI keeps doing the "right
thing", which is to keep track of files and never leave anything behind.
I think an extended file copy/move/delete would be a nice and simple WIX
extension invoking the custom action and one could specify a condition
on that.

 

cheers

-dB.

 

From: Bob Arnson [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 06, 2008 1:19 PM
To: dB.
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How do I preserve a configuration file on a
major upgrade?

 

dB. wrote: 

I tried, but using FileId or putting FileCopy under a File will delete
my file on uninstall and not using FileId silently did absolutely
nothing and didn't show anything in the log. Basically I couldn't get it
to work. Maybe a bug?


Hmm...Maybe another component with the right condition? 




-- 
sig://boB
http://joyofsetup.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to