Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Repair conditions


3 replies to this topic

Alexey Masanov

Alexey Masanov
  • Members
  • 39 posts

Posted 02 July 2003 - 13:51

Which conditions IS uses to determine the necessety of file reinstallation (in repair mode- with ComponentReinstall)?
Version, size, date, CRC?? Or something else???


Ozone

Ozone
  • Full Members
  • 77 posts

Posted 02 July 2003 - 19:32

The 'overwrite' properties are controlled in each file group.
Choosing 'Repair' simply reinstalls the components already on the target machine, using the function ComponentReinstall.
If you have a file group with the 'overwrite' property set to NEVEROVERWRITE, the file will not be copied on!

Alexey Masanov

Alexey Masanov
  • Members
  • 39 posts

Posted 03 July 2003 - 06:06

It's quite clear...

But I wish to know for example - will file be replaced if it has same version and date but other size?
(We wish to create a tool for checking integrity of installed files and need to know - may be IS has some internal checking for file size, crc and e.t.c.)

Ozone

Ozone
  • Full Members
  • 77 posts

Posted 03 July 2003 - 14:29

You would have to write a custom script to accomplish the integrity checking that you seek. We decided to set the executable and *.dll file groups to AlwaysOverWrite in our project. This allows the install to force the complete set of application files to be put on the machine. Of course, our data and configuration files are set to NeverOverWrite. The 'Repair' function of Maintenance Mode will simply install a file(s) that might have been removed. It does not 'Repair' a corrupt file.