Commit e4fd6265 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Take the component action into account for file patches.

parent 17b80c8e
......@@ -455,8 +455,19 @@ static BOOL patchfiles_cb(MSIPACKAGE *package, LPCWSTR file, DWORD action,
if (action == MSICABEXTRACT_BEGINEXTRACT)
{
MSICOMPONENT *comp;
if (!(patch = find_filepatch( package, patch->disk_id, file ))) return FALSE;
comp = patch->File->Component;
comp->Action = msi_get_component_action( package, comp );
if (!comp->Enabled || comp->Action != INSTALLSTATE_LOCAL)
{
TRACE("file %s component %s not installed or disabled\n",
debugstr_w(patch->File->File), debugstr_w(comp->Component));
return FALSE;
}
patch->path = msi_create_temp_file( package->db );
*path = strdupW( patch->path );
*attrs = patch->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