Updating existing files with renamed ones

For all your non-technical questions.
Post Reply
schumann
Posts: 1
Joined: Mon Nov 06, 2006 12:25 pm

Updating existing files with renamed ones

Post by schumann »

I've been using Wise and it allows me to give a file in the installation a different name to the identical file on my system. This is useful to me because, if a user is upgrading an existing version, I can install a file with a different name from their existing copy and then extract data from it (when they run the program proper) to update their existing file.

This lets me use the same package for both new versions and upgrades.

This doesn't seem to be possible with InstallAware (it's rejected my renamed files in the converted script). Is that right? What alternative approach would you suggest that doesn't require me to maintain the same file with different names on my development system?
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

Many potential ways to address this, really:

a) Directly copy the file using CopyFileA in kernel32.dll from $SUPPORTDIR$ after adding it as a support file to your project
b) Create a new folder for the file if it already exists in the same folder - you cannot rename the target file at runtime with Windows Installer, but you certainly can change its destination folder

Hopefully those ideas get you started...
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply