msi: Also register components without a key path.

This commit is contained in:
Hans Leidekker 2011-03-09 08:58:29 +01:00 committed by Alexandre Julliard
parent a33df48f36
commit e292eb121d
1 changed files with 2 additions and 7 deletions

View File

@ -3266,15 +3266,10 @@ static UINT ACTION_ProcessComponents(MSIPACKAGE *package)
if (comp->ActionRequest == INSTALLSTATE_LOCAL || if (comp->ActionRequest == INSTALLSTATE_LOCAL ||
comp->ActionRequest == INSTALLSTATE_SOURCE) comp->ActionRequest == INSTALLSTATE_SOURCE)
{ {
if (!comp->FullKeypath)
continue;
if (package->Context == MSIINSTALLCONTEXT_MACHINE) if (package->Context == MSIINSTALLCONTEXT_MACHINE)
rc = MSIREG_OpenUserDataComponentKey(comp->ComponentId, szLocalSid, rc = MSIREG_OpenUserDataComponentKey(comp->ComponentId, szLocalSid, &hkey, TRUE);
&hkey, TRUE);
else else
rc = MSIREG_OpenUserDataComponentKey(comp->ComponentId, NULL, rc = MSIREG_OpenUserDataComponentKey(comp->ComponentId, NULL, &hkey, TRUE);
&hkey, TRUE);
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
continue; continue;