Bug 69570 - CAB file integrity is checked AFTER uninstalling previous version
Summary: CAB file integrity is checked AFTER uninstalling previous version
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Installer-Windows
  Show dependency treegraph
 
Reported: 2013-09-19 11:32 UTC by Pedro
Modified: 2019-04-18 06:20 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro 2013-09-19 11:32:16 UTC
I downloaded an installer for 4.1.2.2 but for some reason the file was corrupted (although it is good enough to get through most of the install process)

Install process run as expected, asking for the usual options, uninstalled the previous version and then stopped with error 1335 reporting that the cab file was damaged.

This left me without any LO version (the previous was uninstalled and the new one wasn't installed because of the corrupted file).

I suggest that file verification is done BEFORE uninstalling the previous version.

If there is some problem with the new installer at least the user can continue to work with the currently installed version.
Comment 1 Mike Kaganski 2019-04-18 06:20:13 UTC
This one is related, but not identical to, bug 117492. This one suggests to make some check before old version uninstallation phase. Possibly that could be done moving RemoveExistingProducts Action from before InstallInitialize (as it is now) to the position just following InstallInitialize - provided it's InstallInitialize which verifies the package integrity (needs checking), see [1] for discussion of RemoveExistingProducts placement. Unlike the problems with bug 117492, which requires major changes in many aspects of installer generation, this change might turn out to be safe.

[1] https://docs.microsoft.com/en-us/windows/desktop/Msi/removeexistingproducts-action