msi: Remove a component regardless of its install state, unless it's a permanent component.

This commit is contained in:
Hans Leidekker 2012-11-07 15:55:48 +01:00 committed by Alexandre Julliard
parent 462ec1ba43
commit 26299647f7
1 changed files with 1 additions and 2 deletions

View File

@ -1982,8 +1982,7 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
continue;
}
TRACE("nobody wants component %s\n", debugstr_w(component->Component));
if (component->anyAbsent &&
(component->Installed == INSTALLSTATE_LOCAL || component->Installed == INSTALLSTATE_SOURCE))
if (component->anyAbsent && component->ComponentId)
{
component->Action = INSTALLSTATE_ABSENT;
component->ActionRequest = INSTALLSTATE_ABSENT;