Commit ad80eceb authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

msi: Component attributes are bitmasks.

parent 53baea13
......@@ -1800,18 +1800,13 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
{
component = cl->component;
switch (component->Attributes)
if (component->Attributes & msidbComponentAttributesOptional)
msi_component_set_state( component, INSTALLSTATE_DEFAULT );
else
{
case msidbComponentAttributesLocalOnly:
msi_component_set_state( component, INSTALLSTATE_LOCAL );
break;
case msidbComponentAttributesSourceOnly:
if (component->Attributes & msidbComponentAttributesSourceOnly)
msi_component_set_state( component, INSTALLSTATE_SOURCE );
break;
case msidbComponentAttributesOptional:
msi_component_set_state( component, INSTALLSTATE_DEFAULT );
break;
default:
else
msi_component_set_state( component, INSTALLSTATE_LOCAL );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment