msi: Advertise components of a feature that has the msidbFeatureAttributesFavorAdvertise property.
This commit is contained in:
parent
63246a5396
commit
1770c9125d
|
@ -1807,7 +1807,11 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
|
||||||
if (component->ForceLocalState)
|
if (component->ForceLocalState)
|
||||||
msi_component_set_state( component, INSTALLSTATE_LOCAL );
|
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))
|
if (!(component->Attributes & msidbComponentAttributesSourceOnly))
|
||||||
msi_component_set_state( component, INSTALLSTATE_LOCAL );
|
msi_component_set_state( component, INSTALLSTATE_LOCAL );
|
||||||
|
|
Loading…
Reference in New Issue