msi: Advertise components of a feature that has the msidbFeatureAttributesFavorAdvertise property.

This commit is contained in:
Mike McCormack 2006-11-29 16:37:07 +09:00 committed by Alexandre Julliard
parent 63246a5396
commit 1770c9125d
1 changed files with 5 additions and 1 deletions

View File

@ -1807,7 +1807,11 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
if (component->ForceLocalState)
msi_component_set_state( component, INSTALLSTATE_LOCAL );
if (feature->Attributes == msidbFeatureAttributesFavorLocal)
if (feature->Attributes == msidbFeatureAttributesFavorAdvertise)
{
msi_component_set_state( component, INSTALLSTATE_ADVERTISED );
}
else if (feature->Attributes == msidbFeatureAttributesFavorLocal)
{
if (!(component->Attributes & msidbComponentAttributesSourceOnly))
msi_component_set_state( component, INSTALLSTATE_LOCAL );