Might work. A better design though is to put the user customizable stuff in a separate directory in the user's profile and have the defaults installed with your application. That way you don't have to handle this complicated upgrade mechanics in your install.
-----Original Message----- From: Krause, Henning [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2008 00:23 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Major Upgrade - Copy Files during setup Hello, I have the following problem: Version 1 installed a configuration file to [INSTALLLOCATION]\ServiceName\Config directory using a dedicated component. In Version 2, the directory of the config file is now [INSTALLLOCATION]\NewServiceName\Config. I'm doing a major upgrade with the RemoveExistingProducts action scheduled after InstallFinalize. If a user does a new installation, I want to place a default config file in the NewServiceName\Config directory. If a user does an upgrade from the old version, I want to copy the old config file to the new directory during the installation. Question: Can I use the CopyFile action to accomplish this? How would it look like? Or do I need a custom action to do this? Kind regards, Henning Krause ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users