msi: Reduce the indentation level in ACTION_GetComponentInstallStates.
This commit is contained in:
parent
f69445adeb
commit
f1af03fa16
|
@ -1620,16 +1620,19 @@ static void ACTION_GetComponentInstallStates(MSIPACKAGE *package)
|
|||
r = MsiQueryComponentStateW( package->ProductCode, NULL,
|
||||
MSIINSTALLCONTEXT_USERMANAGED, comp->ComponentId,
|
||||
&comp->Installed );
|
||||
if (r != ERROR_SUCCESS)
|
||||
r = MsiQueryComponentStateW( package->ProductCode, NULL,
|
||||
MSIINSTALLCONTEXT_USERUNMANAGED, comp->ComponentId,
|
||||
&comp->Installed );
|
||||
if (r != ERROR_SUCCESS)
|
||||
r = MsiQueryComponentStateW( package->ProductCode, NULL,
|
||||
MSIINSTALLCONTEXT_MACHINE, comp->ComponentId,
|
||||
&comp->Installed );
|
||||
if (r != ERROR_SUCCESS)
|
||||
comp->Installed = INSTALLSTATE_ABSENT;
|
||||
if (r == ERROR_SUCCESS) continue;
|
||||
|
||||
r = MsiQueryComponentStateW( package->ProductCode, NULL,
|
||||
MSIINSTALLCONTEXT_USERUNMANAGED, comp->ComponentId,
|
||||
&comp->Installed );
|
||||
if (r == ERROR_SUCCESS) continue;
|
||||
|
||||
r = MsiQueryComponentStateW( package->ProductCode, NULL,
|
||||
MSIINSTALLCONTEXT_MACHINE, comp->ComponentId,
|
||||
&comp->Installed );
|
||||
if (r == ERROR_SUCCESS) continue;
|
||||
|
||||
comp->Installed = INSTALLSTATE_ABSENT;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue