Commit 19e51936 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Skip files from the original media if a patch is applied.

parent b7453555
...@@ -77,6 +77,11 @@ static msi_file_state calculate_install_state( MSIPACKAGE *package, MSIFILE *fil ...@@ -77,6 +77,11 @@ static msi_file_state calculate_install_state( MSIPACKAGE *package, MSIFILE *fil
TRACE("skipping %s (not scheduled for install)\n", debugstr_w(file->File)); TRACE("skipping %s (not scheduled for install)\n", debugstr_w(file->File));
return msifs_skipped; return msifs_skipped;
} }
if (!list_empty( &package->patches ) && file->disk_id < MSI_INITIAL_MEDIA_TRANSFORM_DISKID)
{
TRACE("skipping %s (not part of patch)\n", debugstr_w(file->File));
return msifs_skipped;
}
if ((comp->assembly && !comp->assembly->application && !comp->assembly->installed) || if ((comp->assembly && !comp->assembly->application && !comp->assembly->installed) ||
GetFileAttributesW( file->TargetPath ) == INVALID_FILE_ATTRIBUTES) GetFileAttributesW( file->TargetPath ) == INVALID_FILE_ATTRIBUTES)
{ {
......
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