From: Hans Leidekker Subject: [5/6] msi: Skip files from the original media if a patch is applied. Message-Id: <1427290406.3059.14.camel@codeweavers.com> Date: Wed, 25 Mar 2015 14:33:26 +0100 --- dlls/msi/files.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/msi/files.c b/dlls/msi/files.c index 36e91ca..4337d51 100644 --- a/dlls/msi/files.c +++ b/dlls/msi/files.c @@ -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)); 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) || GetFileAttributesW( file->TargetPath ) == INVALID_FILE_ATTRIBUTES) {