Lee Bornstein
Posts: 23
Joined: Sat Feb 11, 2006 5:44 am
Location: Las Vegas, NV
Contact: Website

HELP! Overwriting Customer Data

What properties or where do we specify that existing files with dates newer that those on non-versioned install files are NOT to be overwritten?

Our Installer has sample data from 1997 and when we do an install over existing 2006 data (put there by our previous installer program) the data files (*.DAT) get replaced by the 1997 files.


Wer're in a real panic because some customers have lost data already.

HELP!

Lee
Lee Bornstein
Posts: 23
Joined: Sat Feb 11, 2006 5:44 am
Location: Las Vegas, NV
Contact: Website

Found that some data files on customers machine (non-versioned) have accurate Modified Dates but in some cases, Create Dates are newer than Modifed Dates.

It is these files that are being overwritten during install.

According to MSI rules - so I've been told - Installer will not replace non-versioned file if its Modify Date is Different than the Create Date.

In my case Create date is newer than Modify Date on some files and these are being replaced.

Is this a problem in Advanced Installer or a mis-understanding of how MSI works.

Is there no comparison of Modify Dates on Source Files compared to Modify Dates on existing files as a criteria for installation?


How do you suggest we protect customer data in this circumstance?

Lee
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please verify if those files from 1997 have a correct date on the machine where you make the package. Please provide us an example of Create Date bigger that Modify Date.

Also please tell us if you use Advanced Installer for both packages (older and upgrade). If the older package is made with other Installer please provide us more details about how that package was created.
Is this a problem in Advanced Installer or a mis-understanding of how MSI works.
MSDN states:
Nonversioned Files are User Data—If the Modified date is later than the Create date for the file on the computer, do not install the file because user customizations would be deleted. If the Modified and Create dates are the same, install the file. If the Create date is later than the Modified date, the file is considered unmodified, install the file.
Regards,
Gigi
___________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”