diff options
Diffstat (limited to '')
| -rw-r--r-- | src/burn/engine/detect.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/burn/engine/detect.cpp b/src/burn/engine/detect.cpp index f573e259..18820c5d 100644 --- a/src/burn/engine/detect.cpp +++ b/src/burn/engine/detect.cpp | |||
| @@ -143,7 +143,7 @@ extern "C" HRESULT DetectForwardCompatibleBundles( | |||
| 143 | pRegistration->fForwardCompatibleBundleExists = TRUE; | 143 | pRegistration->fForwardCompatibleBundleExists = TRUE; |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | hr = UserExperienceOnDetectForwardCompatibleBundle(pUX, pRelatedBundle->package.sczId, pRelatedBundle->detectRelationType, pRelatedBundle->sczTag, pRelatedBundle->package.fPerMachine, pRelatedBundle->pVersion, !pRelatedBundle->package.fCached); | 146 | hr = BACallbackOnDetectForwardCompatibleBundle(pUX, pRelatedBundle->package.sczId, pRelatedBundle->detectRelationType, pRelatedBundle->sczTag, pRelatedBundle->package.fPerMachine, pRelatedBundle->pVersion, !pRelatedBundle->package.fCached); |
| 147 | ExitOnRootFailure(hr, "BA aborted detect forward compatible bundle."); | 147 | ExitOnRootFailure(hr, "BA aborted detect forward compatible bundle."); |
| 148 | 148 | ||
| 149 | LogId(REPORT_STANDARD, MSG_DETECTED_FORWARD_COMPATIBLE_BUNDLE, pRelatedBundle->package.sczId, LoggingRelationTypeToString(pRelatedBundle->detectRelationType), LoggingPerMachineToString(pRelatedBundle->package.fPerMachine), pRelatedBundle->pVersion->sczVersion, LoggingBoolToString(pRelatedBundle->package.fCached)); | 149 | LogId(REPORT_STANDARD, MSG_DETECTED_FORWARD_COMPATIBLE_BUNDLE, pRelatedBundle->package.sczId, LoggingRelationTypeToString(pRelatedBundle->detectRelationType), LoggingPerMachineToString(pRelatedBundle->package.fPerMachine), pRelatedBundle->pVersion->sczVersion, LoggingBoolToString(pRelatedBundle->package.fCached)); |
| @@ -174,7 +174,7 @@ extern "C" HRESULT DetectReportRelatedBundles( | |||
| 174 | 174 | ||
| 175 | LogId(REPORT_STANDARD, MSG_DETECTED_RELATED_BUNDLE, pRelatedBundle->package.sczId, LoggingRelationTypeToString(pRelatedBundle->detectRelationType), LoggingPerMachineToString(pRelatedBundle->package.fPerMachine), pRelatedBundle->pVersion->sczVersion, LoggingBoolToString(pRelatedBundle->package.fCached)); | 175 | LogId(REPORT_STANDARD, MSG_DETECTED_RELATED_BUNDLE, pRelatedBundle->package.sczId, LoggingRelationTypeToString(pRelatedBundle->detectRelationType), LoggingPerMachineToString(pRelatedBundle->package.fPerMachine), pRelatedBundle->pVersion->sczVersion, LoggingBoolToString(pRelatedBundle->package.fCached)); |
| 176 | 176 | ||
| 177 | hr = UserExperienceOnDetectRelatedBundle(pUX, pRelatedBundle->package.sczId, pRelatedBundle->detectRelationType, pRelatedBundle->sczTag, pRelatedBundle->package.fPerMachine, pRelatedBundle->pVersion, !pRelatedBundle->package.fCached); | 177 | hr = BACallbackOnDetectRelatedBundle(pUX, pRelatedBundle->package.sczId, pRelatedBundle->detectRelationType, pRelatedBundle->sczTag, pRelatedBundle->package.fPerMachine, pRelatedBundle->pVersion, !pRelatedBundle->package.fCached); |
| 178 | ExitOnRootFailure(hr, "BA aborted detect related bundle."); | 178 | ExitOnRootFailure(hr, "BA aborted detect related bundle."); |
| 179 | 179 | ||
| 180 | // For now, if any related bundles will be executed during uninstall by default then never automatically clean up the bundle. | 180 | // For now, if any related bundles will be executed during uninstall by default then never automatically clean up the bundle. |
| @@ -223,7 +223,7 @@ extern "C" HRESULT DetectUpdate( | |||
| 223 | hr = StrAllocString(&sczOriginalSource, pUpdate->sczUpdateSource, 0); | 223 | hr = StrAllocString(&sczOriginalSource, pUpdate->sczUpdateSource, 0); |
| 224 | ExitOnFailure(hr, "Failed to duplicate update feed source."); | 224 | ExitOnFailure(hr, "Failed to duplicate update feed source."); |
| 225 | 225 | ||
| 226 | hr = UserExperienceOnDetectUpdateBegin(pUX, sczOriginalSource, &fSkip); | 226 | hr = BACallbackOnDetectUpdateBegin(pUX, sczOriginalSource, &fSkip); |
| 227 | ExitOnRootFailure(hr, "BA aborted detect update begin."); | 227 | ExitOnRootFailure(hr, "BA aborted detect update begin."); |
| 228 | 228 | ||
| 229 | if (!fSkip) | 229 | if (!fSkip) |
| @@ -237,7 +237,7 @@ LExit: | |||
| 237 | 237 | ||
| 238 | if (fBeginCalled) | 238 | if (fBeginCalled) |
| 239 | { | 239 | { |
| 240 | UserExperienceOnDetectUpdateComplete(pUX, hr, &fIgnoreError); | 240 | BACallbackOnDetectUpdateComplete(pUX, hr, &fIgnoreError); |
| 241 | if (fIgnoreError) | 241 | if (fIgnoreError) |
| 242 | { | 242 | { |
| 243 | hr = S_OK; | 243 | hr = S_OK; |
| @@ -270,8 +270,8 @@ static HRESULT WINAPI AuthenticationRequired( | |||
| 270 | hr = StrAllocFromError(&sczError, HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED), NULL); | 270 | hr = StrAllocFromError(&sczError, HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED), NULL); |
| 271 | ExitOnFailure(hr, "Failed to allocation error string."); | 271 | ExitOnFailure(hr, "Failed to allocation error string."); |
| 272 | 272 | ||
| 273 | UserExperienceOnError(pAuthenticationData->pUX, errorType, pAuthenticationData->wzPackageOrContainerId, ERROR_ACCESS_DENIED, sczError, MB_RETRYCANCEL, 0, NULL, &nResult); // ignore return value. | 273 | BACallbackOnError(pAuthenticationData->pUX, errorType, pAuthenticationData->wzPackageOrContainerId, ERROR_ACCESS_DENIED, sczError, MB_RETRYCANCEL, 0, NULL, &nResult); // ignore return value. |
| 274 | nResult = UserExperienceCheckExecuteResult(pAuthenticationData->pUX, FALSE, BURN_MB_RETRYTRYAGAIN, nResult); | 274 | nResult = BootstrapperApplicationCheckExecuteResult(pAuthenticationData->pUX, FALSE, BURN_MB_RETRYTRYAGAIN, nResult); |
| 275 | if (IDTRYAGAIN == nResult && pAuthenticationData->pUX->hwndDetect) | 275 | if (IDTRYAGAIN == nResult && pAuthenticationData->pUX->hwndDetect) |
| 276 | { | 276 | { |
| 277 | er = ::InternetErrorDlg(pAuthenticationData->pUX->hwndDetect, hUrl, ERROR_INTERNET_INCORRECT_PASSWORD, FLAGS_ERROR_UI_FILTER_FOR_ERRORS | FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS | FLAGS_ERROR_UI_FLAGS_GENERATE_DATA, NULL); | 277 | er = ::InternetErrorDlg(pAuthenticationData->pUX->hwndDetect, hUrl, ERROR_INTERNET_INCORRECT_PASSWORD, FLAGS_ERROR_UI_FILTER_FOR_ERRORS | FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS | FLAGS_ERROR_UI_FLAGS_GENERATE_DATA, NULL); |
| @@ -356,6 +356,7 @@ LExit: | |||
| 356 | ReleaseStr(downloadSource.sczUrl); | 356 | ReleaseStr(downloadSource.sczUrl); |
| 357 | ReleaseStr(downloadSource.sczUser); | 357 | ReleaseStr(downloadSource.sczUser); |
| 358 | ReleaseStr(downloadSource.sczPassword); | 358 | ReleaseStr(downloadSource.sczPassword); |
| 359 | ReleaseStr(downloadSource.sczAuthorizationHeader); | ||
| 359 | ReleaseStr(sczUpdateId); | 360 | ReleaseStr(sczUpdateId); |
| 360 | ReleaseStr(sczError); | 361 | ReleaseStr(sczError); |
| 361 | return hr; | 362 | return hr; |
| @@ -411,7 +412,7 @@ static HRESULT DetectAtomFeedUpdate( | |||
| 411 | hashType = BOOTSTRAPPER_UPDATE_HASH_TYPE_SHA512; | 412 | hashType = BOOTSTRAPPER_UPDATE_HASH_TYPE_SHA512; |
| 412 | } | 413 | } |
| 413 | 414 | ||
| 414 | hr = UserExperienceOnDetectUpdate(pUX, | 415 | hr = BACallbackOnDetectUpdate(pUX, |
| 415 | pEnclosure ? pEnclosure->wzUrl : NULL, | 416 | pEnclosure ? pEnclosure->wzUrl : NULL, |
| 416 | pEnclosure ? pEnclosure->dw64Size : 0, | 417 | pEnclosure ? pEnclosure->dw64Size : 0, |
| 417 | wzHash, | 418 | wzHash, |
