msi: Component attributes are bitmasks.
This commit is contained in:
parent
53baea13a5
commit
ad80eceb5f
|
@ -1800,18 +1800,13 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
|
||||||
{
|
{
|
||||||
component = cl->component;
|
component = cl->component;
|
||||||
|
|
||||||
switch (component->Attributes)
|
if (component->Attributes & msidbComponentAttributesOptional)
|
||||||
{
|
|
||||||
case msidbComponentAttributesLocalOnly:
|
|
||||||
msi_component_set_state( component, INSTALLSTATE_LOCAL );
|
|
||||||
break;
|
|
||||||
case msidbComponentAttributesSourceOnly:
|
|
||||||
msi_component_set_state( component, INSTALLSTATE_SOURCE );
|
|
||||||
break;
|
|
||||||
case msidbComponentAttributesOptional:
|
|
||||||
msi_component_set_state( component, INSTALLSTATE_DEFAULT );
|
msi_component_set_state( component, INSTALLSTATE_DEFAULT );
|
||||||
break;
|
else
|
||||||
default:
|
{
|
||||||
|
if (component->Attributes & msidbComponentAttributesSourceOnly)
|
||||||
|
msi_component_set_state( component, INSTALLSTATE_SOURCE );
|
||||||
|
else
|
||||||
msi_component_set_state( component, INSTALLSTATE_LOCAL );
|
msi_component_set_state( component, INSTALLSTATE_LOCAL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue