msi: Reset the hasLocalFeature flag when updating components.
This commit is contained in:
parent
6221975407
commit
95282bdeaa
|
@ -921,6 +921,8 @@ void ACTION_UpdateComponentStates(MSIPACKAGE *package, LPCWSTR szFeature)
|
||||||
ComponentList *clist;
|
ComponentList *clist;
|
||||||
MSIFEATURE *f;
|
MSIFEATURE *f;
|
||||||
|
|
||||||
|
component->hasLocalFeature = FALSE;
|
||||||
|
|
||||||
msi_component_set_state( component, newstate );
|
msi_component_set_state( component, newstate );
|
||||||
|
|
||||||
/*if any other feature wants is local we need to set it local*/
|
/*if any other feature wants is local we need to set it local*/
|
||||||
|
@ -939,6 +941,7 @@ void ACTION_UpdateComponentStates(MSIPACKAGE *package, LPCWSTR szFeature)
|
||||||
f->ActionRequest == INSTALLSTATE_SOURCE) )
|
f->ActionRequest == INSTALLSTATE_SOURCE) )
|
||||||
{
|
{
|
||||||
TRACE("Saved by %s\n", debugstr_w(f->Feature));
|
TRACE("Saved by %s\n", debugstr_w(f->Feature));
|
||||||
|
component->hasLocalFeature = TRUE;
|
||||||
|
|
||||||
if (component->Attributes & msidbComponentAttributesOptional)
|
if (component->Attributes & msidbComponentAttributesOptional)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue