Re: [WiX-users] Major Upgrade - Copy Files during setup
Same suggestion, different "user profile".Honestly, I'd just do this upgrade logic on "first boot" of the application/service. Otherwise, read the existing value to overwrite the default Property in the MSI and always write the right value into the config file. The problem is getting it so that the right thing happens on repair and patch... much easier to just do on "first boot". -Original Message- From: Krause, Henning [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2008 13:38 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Major Upgrade - Copy Files during setup Hi Rob, > 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. For a desktop application, I would agree. But this is a Windows Service, so it's not really user dependent. There is only one configuration, which needs to be preserved during upgrades. 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
Re: [WiX-users] Major Upgrade - Copy Files during setup
Hi Rob, > 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. For a desktop application, I would agree. But this is a Windows Service, so it's not really user dependent. There is only one configuration, which needs to be preserved during upgrades. 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
Re: [WiX-users] Major Upgrade - Copy Files during setup
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
[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