Commit 568c7c19 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Set feature states to the installed state if the Preselected property is not set.

parent c9fb2492
......@@ -1794,6 +1794,18 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
msi_feature_set_state(package, fl->feature, INSTALLSTATE_UNKNOWN);
}
}
else
{
LIST_FOR_EACH_ENTRY( feature, &package->features, MSIFEATURE, entry )
{
BOOL selected = feature->Level > 0 && feature->Level <= level;
if (selected && feature->Action == INSTALLSTATE_UNKNOWN)
{
msi_feature_set_state(package, feature, feature->Installed);
}
}
}
/*
* now we want to enable or disable components base on feature
......
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