diff --git a/src/ca/wixdepca.cpp b/src/ca/wixdepca.cpp index 154b73f..d643370 100644 --- a/src/ca/wixdepca.cpp +++ b/src/ca/wixdepca.cpp @@ -278,6 +278,16 @@ static HRESULT EnsureAbsentDependents( UINT cDependents = 0; PMSIHANDLE hDependencyRec = NULL; + // Skip the dependent check if the WixDependencyProvider table is missing (no dependency providers). + hr = WcaTableExists(L"WixDependencyProvider"); + if (S_FALSE == hr) + { + WcaLog(LOGMSG_STANDARD, "Skipping the dependents check since no dependency providers are authored."); + ExitFunction1(hr = S_OK); + } + + ExitOnFailure(hr, "Failed to check if the WixDependencyProvider table exists."); + // Split the IGNOREDEPENDENCIES property for use below if set. If it is "ALL", then quit now. hr = SplitIgnoredDependents(&sdIgnoredDependents); ExitOnFailure(hr, "Failed to get the ignored dependents."); @@ -297,16 +307,6 @@ static HRESULT EnsureAbsentDependents( hr = S_OK; } - // Skip the dependent check if the WixDependencyProvider table is missing (no dependency providers). - hr = WcaTableExists(L"WixDependencyProvider"); - if (S_FALSE == hr) - { - WcaLog(LOGMSG_STANDARD, "Skipping the dependents check since no dependency providers are authored."); - ExitFunction(); - } - - ExitOnFailure(hr, "Failed to check if the WixDependencyProvider table exists."); - // Set the registry hive to use depending on install context. hkHive = fMachineContext ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;