msi: Register advertised components too.

This commit is contained in:
Mike McCormack 2006-08-02 13:41:06 +02:00 committed by Alexandre Julliard
parent 5234c8c94b
commit 244405af47
1 changed files with 6 additions and 14 deletions

View File

@ -807,11 +807,6 @@ UINT ACTION_RegisterClassInfo(MSIPACKAGE *package)
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
return ERROR_FUNCTION_FAILED; return ERROR_FUNCTION_FAILED;
/* install_on_demand should be set if OLE supports install on demand OLE
* servers. For now i am defaulting to FALSE because i do not know how to
* check, and i am told our builtin OLE does not support it
*/
LIST_FOR_EACH_ENTRY( cls, &package->classes, MSICLASS, entry ) LIST_FOR_EACH_ENTRY( cls, &package->classes, MSICLASS, entry )
{ {
MSICOMPONENT *comp; MSICOMPONENT *comp;
@ -826,17 +821,14 @@ UINT ACTION_RegisterClassInfo(MSIPACKAGE *package)
feature = cls->Feature; feature = cls->Feature;
/* /*
* yes. MSDN says that these are based on _Feature_ not on * MSDN says that these are based on Feature not on Component.
* Component. So verify the feature is to be installed
*/ */
if (!ACTION_VerifyFeatureForAction( feature, INSTALLSTATE_LOCAL )) if (!ACTION_VerifyFeatureForAction( feature, INSTALLSTATE_LOCAL ) &&
/* && !(install_on_demand && !ACTION_VerifyFeatureForAction( feature, INSTALLSTATE_ADVERTISED ))
ACTION_VerifyFeatureForAction( feature, INSTALLSTATE_ADVERTISED ))) */
{ {
TRACE("Skipping class %s reg due to disabled feature %s\n", TRACE("Skipping class %s reg due to disabled feature %s\n",
debugstr_w(cls->clsid), debugstr_w(cls->clsid), debugstr_w(feature->Feature));
debugstr_w(feature->Feature));
continue; continue;
} }