msi: Search all installation contexts in the FindRelatedProducts action.

This commit is contained in:
Hans Leidekker 2011-05-17 11:09:14 +02:00 committed by Alexandre Julliard
parent 9e5562297d
commit 548d71ee45
1 changed files with 3 additions and 3 deletions

View File

@ -134,9 +134,9 @@ static UINT ITERATE_FindRelatedProducts(MSIRECORD *rec, LPVOID param)
TRACE("Looking at index %u product %s\n", index, debugstr_w(product)); TRACE("Looking at index %u product %s\n", index, debugstr_w(product));
unsquash_guid(product, productid); unsquash_guid(product, productid);
rc = MSIREG_OpenProductKey(productid, NULL, package->Context, if (MSIREG_OpenProductKey(productid, NULL, MSIINSTALLCONTEXT_USERMANAGED, &hukey, FALSE) &&
&hukey, FALSE); MSIREG_OpenProductKey(productid, NULL, MSIINSTALLCONTEXT_USERUNMANAGED, &hukey, FALSE) &&
if (rc != ERROR_SUCCESS) MSIREG_OpenProductKey(productid, NULL, MSIINSTALLCONTEXT_MACHINE, &hukey, FALSE))
{ {
TRACE("product key not found\n"); TRACE("product key not found\n");
rc = ERROR_SUCCESS; rc = ERROR_SUCCESS;