Can someone suggest the "correct" approach for dealing with this situation.
Earlier versions of our installer placed a database file under "C:\Program Files\Company\Product\" which was fine in Windows XP. However, we now install this file into the Common Application Data directory instead. When upgrading an existing installation, we would like to relocate the database file.
The approach we've tried so far is to use a "move/copy" operation as well as a standard install of the default database so that it will be used if there isn't a copy in "C:\Program Files\Company\Product\". The component is set to "Never Overwrite" and "Permanent". Unfortunately the logs indicate that the move occurs first, but the installation of the default database sees the moved file as unversioned and is then copied over it. My understanding is that the reason the "Never Overwrite" is not working is that the "move/copy" resource is not the key member of the component but I can't find a way to make it the key member (option is always disabled). And I don't think I can put the "move/copy" resource into its own component.
Although we've been using Advanced installer for many years, it's only been for a single product and this is the first time we've attempted to do anything above the basic level. Hope someone can advise a standard way of handling this or point me in the right direction.
Thanks in advance.