msi: AppSearchReg shouldn't create the key it's looking for if it doesn't exist.
This commit is contained in:
parent
700adac9ac
commit
3b506c6408
|
@ -310,7 +310,7 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, BOOL *appFound,
|
|||
goto end;
|
||||
}
|
||||
|
||||
rc = RegCreateKeyW(rootKey, keyPath, &key);
|
||||
rc = RegOpenKeyW(rootKey, keyPath, &key);
|
||||
if (rc)
|
||||
{
|
||||
TRACE("RegCreateKeyW returned %d\n", rc);
|
||||
|
|
Loading…
Reference in New Issue