PDA

View Full Version : Don't Install older file!


Mike Lacaria
12-29-2003, 12:02 PM
I'm a newbie using setup factory beyond the normal "easy" installation.

Would like some advice/help on how to manage the following installation:

I plan to distribute CDROM courses. The course launcher should show all the latest courses available. This means that the latest launcher will be installed with the latest CD. Users can install a previous CD with an older launcher. I don't want to overwrite the latest.

How & what is a good way to manage this? I believe I can turn off the overwrite feature for one file during the build but I'm not sure how the file is tagged--is it by date?

Any examples would be welcome or point me where I can dig up this info.

Darryl
01-05-2004, 03:03 PM
As far as the overwrite options are concerned, if a file is being installed to a location where a file of the same name exists, the following criteria is checked:

1) First the product versions are compared taken from the file's resources (if it contains resource information).

2) If the file has resource information and the product versions are the same the file versions are compared.

3) If the file contains no version information, the file's modified date/time is compared.

So that is what is happening internally for the overwrite options.


As for the design aspect, it is difficult to comment based on what you have described. Some things you may want to consider is unique file names for each launcher, or unique install locations based on the version of the CD etc.