Commit f33ef6ac authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Don't remove a file if the old file is strictly newer than the version to be installed.

parent ca4b17ef
......@@ -453,10 +453,10 @@ UINT ACTION_RemoveFiles( MSIPACKAGE *package )
if ( file->state != msifs_present )
continue;
/* only remove a file if the version to be installed
* is strictly newer than the old file
/* don't remove a file if the old file
* is strictly newer than the version to be installed
*/
if ( msi_compare_file_version( file ) >= 0 )
if ( msi_compare_file_version( file ) < 0 )
continue;
TRACE("removing %s\n", debugstr_w(file->File) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment