diff options
Diffstat (limited to 'src/burn/engine/plan.cpp')
-rw-r--r-- | src/burn/engine/plan.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/burn/engine/plan.cpp b/src/burn/engine/plan.cpp index be281827..47b1c621 100644 --- a/src/burn/engine/plan.cpp +++ b/src/burn/engine/plan.cpp | |||
@@ -74,7 +74,7 @@ static HRESULT AddRegistrationAction( | |||
74 | __in BURN_PLAN* pPlan, | 74 | __in BURN_PLAN* pPlan, |
75 | __in BURN_DEPENDENT_REGISTRATION_ACTION_TYPE type, | 75 | __in BURN_DEPENDENT_REGISTRATION_ACTION_TYPE type, |
76 | __in_z LPCWSTR wzDependentProviderKey, | 76 | __in_z LPCWSTR wzDependentProviderKey, |
77 | __in_z LPCWSTR wzOwnerBundleId | 77 | __in_z LPCWSTR wzOwnerBundleCode |
78 | ); | 78 | ); |
79 | static HRESULT AddCachePackage( | 79 | static HRESULT AddCachePackage( |
80 | __in BURN_PLAN* pPlan, | 80 | __in BURN_PLAN* pPlan, |
@@ -467,7 +467,7 @@ extern "C" HRESULT PlanLayoutBundle( | |||
467 | hr = StrAllocString(&pCacheAction->bundleLayout.sczExecutableName, wzExecutableName, 0); | 467 | hr = StrAllocString(&pCacheAction->bundleLayout.sczExecutableName, wzExecutableName, 0); |
468 | ExitOnFailure(hr, "Failed to to copy executable name for bundle."); | 468 | ExitOnFailure(hr, "Failed to to copy executable name for bundle."); |
469 | 469 | ||
470 | hr = CacheCalculateBundleLayoutWorkingPath(pPlan->pCache, pPlan->wzBundleId, &pCacheAction->bundleLayout.sczUnverifiedPath); | 470 | hr = CacheCalculateBundleLayoutWorkingPath(pPlan->pCache, pPlan->wzBundleCode, &pCacheAction->bundleLayout.sczUnverifiedPath); |
471 | ExitOnFailure(hr, "Failed to calculate bundle layout working path."); | 471 | ExitOnFailure(hr, "Failed to calculate bundle layout working path."); |
472 | 472 | ||
473 | pCacheAction->bundleLayout.qwBundleSize = qwBundleSize; | 473 | pCacheAction->bundleLayout.qwBundleSize = qwBundleSize; |
@@ -599,7 +599,7 @@ extern "C" HRESULT PlanRegistration( | |||
599 | // If our provider key was not owned by a different bundle, | 599 | // If our provider key was not owned by a different bundle, |
600 | // then plan to write our provider key registration to "fix it" if broken | 600 | // then plan to write our provider key registration to "fix it" if broken |
601 | // in case the bundle isn't successfully uninstalled. | 601 | // in case the bundle isn't successfully uninstalled. |
602 | if (!pRegistration->fDetectedForeignProviderKeyBundleId) | 602 | if (!pRegistration->fDetectedForeignProviderKeyBundleCode) |
603 | { | 603 | { |
604 | pPlan->dwRegistrationOperations |= BURN_REGISTRATION_ACTION_OPERATIONS_WRITE_PROVIDER_KEY; | 604 | pPlan->dwRegistrationOperations |= BURN_REGISTRATION_ACTION_OPERATIONS_WRITE_PROVIDER_KEY; |
605 | } | 605 | } |
@@ -612,7 +612,7 @@ extern "C" HRESULT PlanRegistration( | |||
612 | // would prevent self-removal. | 612 | // would prevent self-removal. |
613 | if (pRegistration->fSelfRegisteredAsDependent) | 613 | if (pRegistration->fSelfRegisteredAsDependent) |
614 | { | 614 | { |
615 | hr = AddRegistrationAction(pPlan, BURN_DEPENDENT_REGISTRATION_ACTION_TYPE_UNREGISTER, pDependencies->wzSelfDependent, pRegistration->sczId); | 615 | hr = AddRegistrationAction(pPlan, BURN_DEPENDENT_REGISTRATION_ACTION_TYPE_UNREGISTER, pDependencies->wzSelfDependent, pRegistration->sczCode); |
616 | ExitOnFailure(hr, "Failed to allocate registration action."); | 616 | ExitOnFailure(hr, "Failed to allocate registration action."); |
617 | 617 | ||
618 | hr = DependencyAddIgnoreDependencies(sdIgnoreDependents, pDependencies->wzSelfDependent); | 618 | hr = DependencyAddIgnoreDependencies(sdIgnoreDependents, pDependencies->wzSelfDependent); |
@@ -758,7 +758,7 @@ extern "C" HRESULT PlanRegistration( | |||
758 | // as our own dependent. | 758 | // as our own dependent. |
759 | if (pDependencies->wzSelfDependent && !pRegistration->fSelfRegisteredAsDependent && (pDependencies->wzActiveParent || !fAddonOrPatchBundle)) | 759 | if (pDependencies->wzSelfDependent && !pRegistration->fSelfRegisteredAsDependent && (pDependencies->wzActiveParent || !fAddonOrPatchBundle)) |
760 | { | 760 | { |
761 | hr = AddRegistrationAction(pPlan, BURN_DEPENDENT_REGISTRATION_ACTION_TYPE_REGISTER, pDependencies->wzSelfDependent, pRegistration->sczId); | 761 | hr = AddRegistrationAction(pPlan, BURN_DEPENDENT_REGISTRATION_ACTION_TYPE_REGISTER, pDependencies->wzSelfDependent, pRegistration->sczCode); |
762 | ExitOnFailure(hr, "Failed to add registration action for self dependent."); | 762 | ExitOnFailure(hr, "Failed to add registration action for self dependent."); |
763 | } | 763 | } |
764 | } | 764 | } |
@@ -1439,7 +1439,7 @@ extern "C" HRESULT PlanRelatedBundlesBegin( | |||
1439 | } | 1439 | } |
1440 | else if (E_NOTFOUND != hr) | 1440 | else if (E_NOTFOUND != hr) |
1441 | { | 1441 | { |
1442 | ExitOnFailure(hr, "Failed to lookup the bundle ID in the ancestors dictionary."); | 1442 | ExitOnFailure(hr, "Failed to lookup the bundle code in the ancestors dictionary."); |
1443 | } | 1443 | } |
1444 | } | 1444 | } |
1445 | else if (fDependent && BOOTSTRAPPER_RELATION_NONE != relationType) | 1445 | else if (fDependent && BOOTSTRAPPER_RELATION_NONE != relationType) |
@@ -2076,7 +2076,7 @@ static void UninitializeRegistrationAction( | |||
2076 | ) | 2076 | ) |
2077 | { | 2077 | { |
2078 | ReleaseStr(pAction->sczDependentProviderKey); | 2078 | ReleaseStr(pAction->sczDependentProviderKey); |
2079 | ReleaseStr(pAction->sczBundleId); | 2079 | ReleaseStr(pAction->sczBundleCode); |
2080 | memset(pAction, 0, sizeof(BURN_DEPENDENT_REGISTRATION_ACTION)); | 2080 | memset(pAction, 0, sizeof(BURN_DEPENDENT_REGISTRATION_ACTION)); |
2081 | } | 2081 | } |
2082 | 2082 | ||
@@ -2271,7 +2271,7 @@ static HRESULT AddRegistrationAction( | |||
2271 | __in BURN_PLAN* pPlan, | 2271 | __in BURN_PLAN* pPlan, |
2272 | __in BURN_DEPENDENT_REGISTRATION_ACTION_TYPE type, | 2272 | __in BURN_DEPENDENT_REGISTRATION_ACTION_TYPE type, |
2273 | __in_z LPCWSTR wzDependentProviderKey, | 2273 | __in_z LPCWSTR wzDependentProviderKey, |
2274 | __in_z LPCWSTR wzOwnerBundleId | 2274 | __in_z LPCWSTR wzOwnerBundleCode |
2275 | ) | 2275 | ) |
2276 | { | 2276 | { |
2277 | HRESULT hr = S_OK; | 2277 | HRESULT hr = S_OK; |
@@ -2287,7 +2287,7 @@ static HRESULT AddRegistrationAction( | |||
2287 | 2287 | ||
2288 | pAction->type = type; | 2288 | pAction->type = type; |
2289 | 2289 | ||
2290 | hr = StrAllocString(&pAction->sczBundleId, wzOwnerBundleId, 0); | 2290 | hr = StrAllocString(&pAction->sczBundleCode, wzOwnerBundleCode, 0); |
2291 | ExitOnFailure(hr, "Failed to copy owner bundle to registration action."); | 2291 | ExitOnFailure(hr, "Failed to copy owner bundle to registration action."); |
2292 | 2292 | ||
2293 | hr = StrAllocString(&pAction->sczDependentProviderKey, wzDependentProviderKey, 0); | 2293 | hr = StrAllocString(&pAction->sczDependentProviderKey, wzDependentProviderKey, 0); |
@@ -2302,7 +2302,7 @@ static HRESULT AddRegistrationAction( | |||
2302 | 2302 | ||
2303 | pAction->type = rollbackType; | 2303 | pAction->type = rollbackType; |
2304 | 2304 | ||
2305 | hr = StrAllocString(&pAction->sczBundleId, wzOwnerBundleId, 0); | 2305 | hr = StrAllocString(&pAction->sczBundleCode, wzOwnerBundleCode, 0); |
2306 | ExitOnFailure(hr, "Failed to copy owner bundle to registration action."); | 2306 | ExitOnFailure(hr, "Failed to copy owner bundle to registration action."); |
2307 | 2307 | ||
2308 | hr = StrAllocString(&pAction->sczDependentProviderKey, wzDependentProviderKey, 0); | 2308 | hr = StrAllocString(&pAction->sczDependentProviderKey, wzDependentProviderKey, 0); |
@@ -2880,7 +2880,7 @@ static void DependentRegistrationActionLog( | |||
2880 | 2880 | ||
2881 | if (wzType) | 2881 | if (wzType) |
2882 | { | 2882 | { |
2883 | LogStringLine(PlanDumpLevel, "%ls action[%u]: %ls bundle id: %ls, provider key: %ls", wzBase, iAction, wzType, pAction->sczBundleId, pAction->sczDependentProviderKey); | 2883 | LogStringLine(PlanDumpLevel, "%ls action[%u]: %ls bundle code: %ls, provider key: %ls", wzBase, iAction, wzType, pAction->sczBundleCode, pAction->sczDependentProviderKey); |
2884 | } | 2884 | } |
2885 | } | 2885 | } |
2886 | 2886 | ||
@@ -3076,7 +3076,7 @@ extern "C" void PlanDump( | |||
3076 | LogStringLine(PlanDumpLevel, "--- Begin plan dump ---"); | 3076 | LogStringLine(PlanDumpLevel, "--- Begin plan dump ---"); |
3077 | 3077 | ||
3078 | LogStringLine(PlanDumpLevel, "Plan action: %hs", LoggingBurnActionToString(pPlan->action)); | 3078 | LogStringLine(PlanDumpLevel, "Plan action: %hs", LoggingBurnActionToString(pPlan->action)); |
3079 | LogStringLine(PlanDumpLevel, " bundle id: %ls", pPlan->wzBundleId); | 3079 | LogStringLine(PlanDumpLevel, " bundle code: %ls", pPlan->wzBundleCode); |
3080 | LogStringLine(PlanDumpLevel, " bundle provider key: %ls", pPlan->wzBundleProviderKey); | 3080 | LogStringLine(PlanDumpLevel, " bundle provider key: %ls", pPlan->wzBundleProviderKey); |
3081 | LogStringLine(PlanDumpLevel, " use-forward-compatible: %hs", LoggingTrueFalseToString(pPlan->fEnabledForwardCompatibleBundle)); | 3081 | LogStringLine(PlanDumpLevel, " use-forward-compatible: %hs", LoggingTrueFalseToString(pPlan->fEnabledForwardCompatibleBundle)); |
3082 | LogStringLine(PlanDumpLevel, " per-machine: %hs", LoggingTrueFalseToString(pPlan->fPerMachine)); | 3082 | LogStringLine(PlanDumpLevel, " per-machine: %hs", LoggingTrueFalseToString(pPlan->fPerMachine)); |