Skip to content

Commit

Permalink
"Detected related package" log message- log the package id
Browse files Browse the repository at this point in the history
  • Loading branch information
nirbar committed May 30, 2024
1 parent a8595cd commit 37e2dee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/burn/engine/engine.mc
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ MessageId=103
Severity=Success
SymbolicName=MSG_DETECTED_RELATED_PACKAGE
Language=English
Detected related package: %1!ls!, scope: %2!hs!, version: %3!hs!, language: %4!u! operation: %5!hs!
Detected related package for %1!ls!: %2!ls!, scope: %3!hs!, version: %4!hs!, language: %5!u! operation: %6!hs!
.
MessageId=104
Expand Down
4 changes: 2 additions & 2 deletions src/burn/engine/msiengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ extern "C" HRESULT MsiEngineDetectPackage(
// report related MSI package to UX
if (BOOTSTRAPPER_RELATED_OPERATION_NONE != operation)
{
LogId(REPORT_STANDARD, MSG_DETECTED_RELATED_PACKAGE, pPackage->Msi.sczProductCode, LoggingPerMachineToString(pPackage->fPerMachine), LoggingVersionToString(pPackage->Msi.qwInstalledVersion), pPackage->Msi.dwLanguage, LoggingRelatedOperationToString(operation));
LogId(REPORT_STANDARD, MSG_DETECTED_RELATED_PACKAGE, pPackage->sczId, pPackage->Msi.sczProductCode, LoggingPerMachineToString(pPackage->fPerMachine), LoggingVersionToString(pPackage->Msi.qwInstalledVersion), pPackage->Msi.dwLanguage, LoggingRelatedOperationToString(operation));

nResult = pUserExperience->pUserExperience->OnDetectRelatedMsiPackage(pPackage->sczId, pPackage->Msi.sczProductCode, pPackage->fPerMachine, pPackage->Msi.qwInstalledVersion, operation);
hr = UserExperienceInterpretResult(pUserExperience, MB_OKCANCEL, nResult);
Expand Down Expand Up @@ -600,7 +600,7 @@ extern "C" HRESULT MsiEngineDetectPackage(
operation = BOOTSTRAPPER_RELATED_OPERATION_MAJOR_UPGRADE;
}

LogId(REPORT_STANDARD, MSG_DETECTED_RELATED_PACKAGE, wzProductCode, LoggingPerMachineToString(fPerMachine), LoggingVersionToString(qwVersion), uLcid, LoggingRelatedOperationToString(relatedMsiOperation));
LogId(REPORT_STANDARD, MSG_DETECTED_RELATED_PACKAGE, pPackage->sczId, wzProductCode, LoggingPerMachineToString(fPerMachine), LoggingVersionToString(qwVersion), uLcid, LoggingRelatedOperationToString(relatedMsiOperation));

// pass to UX
nResult = pUserExperience->pUserExperience->OnDetectRelatedMsiPackage(pPackage->sczId, wzProductCode, fPerMachine, qwVersion, relatedMsiOperation);
Expand Down

0 comments on commit 37e2dee

Please sign in to comment.