msi: Don't try to ready media for files from a previous installation or files that will be skipped.

oldstable
Hans Leidekker 2012-01-10 16:55:40 +01:00 committed by Alexandre Julliard
parent c7e5f0331f
commit 4ef765cb4e
1 changed files with 2 additions and 0 deletions

View File

@ -331,6 +331,8 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
if (!file->Component->Enabled) continue;
if (file->state != msifs_hashmatch &&
file->state != msifs_skipped &&
(file->state != msifs_present || !msi_get_property_int( package->db, szInstalled, 0 )) &&
(rc = ready_media( package, file->IsCompressed, mi )))
{
ERR("Failed to ready media for %s\n", debugstr_w(file->File));