diff options
author | Bob Arnson <bob@firegiant.com> | 2024-11-09 23:54:49 -0500 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2024-11-10 20:14:39 -0500 |
commit | 53d84c9b96b027df505ab99f3db0719a82108b2b (patch) | |
tree | c08a593a222641b7d1b615794c80094aab8588b8 /src/burn | |
parent | a75f23d32c3892e9977e7a48b4b347342ab182a9 (diff) | |
download | wix-53d84c9b96b027df505ab99f3db0719a82108b2b.tar.gz wix-53d84c9b96b027df505ab99f3db0719a82108b2b.tar.bz2 wix-53d84c9b96b027df505ab99f3db0719a82108b2b.zip |
Log bundle registration scope.
Diffstat (limited to 'src/burn')
-rw-r--r-- | src/burn/engine/apply.cpp | 2 | ||||
-rw-r--r-- | src/burn/engine/engine.mc | 6 | ||||
-rw-r--r-- | src/burn/engine/logging.cpp | 7 | ||||
-rw-r--r-- | src/burn/engine/logging.h | 4 | ||||
-rw-r--r-- | src/burn/engine/registration.cpp | 4 |
5 files changed, 17 insertions, 6 deletions
diff --git a/src/burn/engine/apply.cpp b/src/burn/engine/apply.cpp index 6908e955..0f65b0ad 100644 --- a/src/burn/engine/apply.cpp +++ b/src/burn/engine/apply.cpp | |||
@@ -536,7 +536,7 @@ extern "C" HRESULT ApplyUnregister( | |||
536 | IgnoreRollbackError(hrRegistrationRollback, "Dependent registration actions failed"); | 536 | IgnoreRollbackError(hrRegistrationRollback, "Dependent registration actions failed"); |
537 | } | 537 | } |
538 | 538 | ||
539 | LogId(REPORT_STANDARD, MSG_SESSION_END, pEngineState->registration.sczRegistrationKey, LoggingResumeModeToString(resumeMode), LoggingRestartToString(restart), LoggingBoolToString(pEngineState->registration.fDisableResume), LoggingRegistrationTypeToString(defaultRegistrationType), LoggingRegistrationTypeToString(registrationType)); | 539 | LogId(REPORT_STANDARD, MSG_SESSION_END, pEngineState->registration.sczRegistrationKey, LoggingInstallScopeToString(pEngineState->registration.fPerMachine), LoggingResumeModeToString(resumeMode), LoggingRestartToString(restart), LoggingBoolToString(pEngineState->registration.fDisableResume), LoggingRegistrationTypeToString(defaultRegistrationType), LoggingRegistrationTypeToString(registrationType)); |
540 | 540 | ||
541 | if (BOOTSTRAPPER_ACTION_UNSAFE_UNINSTALL == pEngineState->plan.action) | 541 | if (BOOTSTRAPPER_ACTION_UNSAFE_UNINSTALL == pEngineState->plan.action) |
542 | { | 542 | { |
diff --git a/src/burn/engine/engine.mc b/src/burn/engine/engine.mc index 932b6931..916b6d8b 100644 --- a/src/burn/engine/engine.mc +++ b/src/burn/engine/engine.mc | |||
@@ -1027,21 +1027,21 @@ MessageId=370 | |||
1027 | Severity=Success | 1027 | Severity=Success |
1028 | SymbolicName=MSG_SESSION_BEGIN | 1028 | SymbolicName=MSG_SESSION_BEGIN |
1029 | Language=English | 1029 | Language=English |
1030 | Session begin, registration key: %1!ls!, options: 0x%2!x!, disable resume: %3!hs! | 1030 | Session begin, registration key: %1!ls!, scope: %2!hs!, options: 0x%3!x!, disable resume: %4!hs! |
1031 | . | 1031 | . |
1032 | 1032 | ||
1033 | MessageId=371 | 1033 | MessageId=371 |
1034 | Severity=Success | 1034 | Severity=Success |
1035 | SymbolicName=MSG_SESSION_UPDATE | 1035 | SymbolicName=MSG_SESSION_UPDATE |
1036 | Language=English | 1036 | Language=English |
1037 | Updating session, registration key: %1!ls!, resume: %2!hs!, restart initiated: %3!hs!, disable resume: %4!hs! | 1037 | Updating session, registration key: %1!ls!, scope: %2!hs!, resume: %3!hs!, restart initiated: %4!hs!, disable resume: %5!hs! |
1038 | . | 1038 | . |
1039 | 1039 | ||
1040 | MessageId=372 | 1040 | MessageId=372 |
1041 | Severity=Success | 1041 | Severity=Success |
1042 | SymbolicName=MSG_SESSION_END | 1042 | SymbolicName=MSG_SESSION_END |
1043 | Language=English | 1043 | Language=English |
1044 | Session end, registration key: %1!ls!, resume: %2!hs!, restart: %3!hs!, disable resume: %4!hs!, default registration: %5!hs!, ba requested registration: %6!hs! | 1044 | Session end, registration key: %1!ls!, scope: %2!hs!, resume: %3!hs!, restart: %4!hs!, disable resume: %5!hs!, default registration: %6!hs!, ba requested registration: %7!hs! |
1045 | . | 1045 | . |
1046 | 1046 | ||
1047 | MessageId=373 | 1047 | MessageId=373 |
diff --git a/src/burn/engine/logging.cpp b/src/burn/engine/logging.cpp index 8a1f6510..60c16c01 100644 --- a/src/burn/engine/logging.cpp +++ b/src/burn/engine/logging.cpp | |||
@@ -959,6 +959,13 @@ extern "C" LPWSTR LoggingStringOrUnknownIfNull( | |||
959 | return wz ? wz : L"Unknown"; | 959 | return wz ? wz : L"Unknown"; |
960 | } | 960 | } |
961 | 961 | ||
962 | extern "C" LPCSTR LoggingInstallScopeToString( | ||
963 | __in BOOL fPerMachine | ||
964 | ) | ||
965 | { | ||
966 | return fPerMachine ? "PerMachine" : "PerUser"; | ||
967 | } | ||
968 | |||
962 | 969 | ||
963 | // internal function declarations | 970 | // internal function declarations |
964 | 971 | ||
diff --git a/src/burn/engine/logging.h b/src/burn/engine/logging.h index 1b4a7b7f..b28a53d4 100644 --- a/src/burn/engine/logging.h +++ b/src/burn/engine/logging.h | |||
@@ -198,6 +198,10 @@ LPWSTR LoggingStringOrUnknownIfNull( | |||
198 | __in LPCWSTR wz | 198 | __in LPCWSTR wz |
199 | ); | 199 | ); |
200 | 200 | ||
201 | LPCSTR LoggingInstallScopeToString( | ||
202 | __in BOOL fPerMachine | ||
203 | ); | ||
204 | |||
201 | 205 | ||
202 | #if defined(__cplusplus) | 206 | #if defined(__cplusplus) |
203 | } | 207 | } |
diff --git a/src/burn/engine/registration.cpp b/src/burn/engine/registration.cpp index fd8a32a4..e0bc81dd 100644 --- a/src/burn/engine/registration.cpp +++ b/src/burn/engine/registration.cpp | |||
@@ -616,7 +616,7 @@ extern "C" HRESULT RegistrationSessionBegin( | |||
616 | 616 | ||
617 | AssertSz(BOOTSTRAPPER_REGISTRATION_TYPE_NONE != registrationType, "Registration type can't be NONE"); | 617 | AssertSz(BOOTSTRAPPER_REGISTRATION_TYPE_NONE != registrationType, "Registration type can't be NONE"); |
618 | 618 | ||
619 | LogId(REPORT_VERBOSE, MSG_SESSION_BEGIN, pRegistration->sczRegistrationKey, dwRegistrationOptions, LoggingBoolToString(pRegistration->fDisableResume)); | 619 | LogId(REPORT_VERBOSE, MSG_SESSION_BEGIN, pRegistration->sczRegistrationKey, LoggingInstallScopeToString(pRegistration->fPerMachine), dwRegistrationOptions, LoggingBoolToString(pRegistration->fDisableResume)); |
620 | 620 | ||
621 | // Cache bundle executable. | 621 | // Cache bundle executable. |
622 | if (dwRegistrationOptions & BURN_REGISTRATION_ACTION_OPERATIONS_CACHE_BUNDLE) | 622 | if (dwRegistrationOptions & BURN_REGISTRATION_ACTION_OPERATIONS_CACHE_BUNDLE) |
@@ -1259,7 +1259,7 @@ static HRESULT UpdateResumeMode( | |||
1259 | LPWSTR sczRunOnceCommandLine = NULL; | 1259 | LPWSTR sczRunOnceCommandLine = NULL; |
1260 | LPCWSTR sczResumeKey = REGISTRY_RUN_ONCE_KEY; | 1260 | LPCWSTR sczResumeKey = REGISTRY_RUN_ONCE_KEY; |
1261 | 1261 | ||
1262 | LogId(REPORT_STANDARD, MSG_SESSION_UPDATE, pRegistration->sczRegistrationKey, LoggingResumeModeToString(resumeMode), LoggingBoolToString(fRestartInitiated), LoggingBoolToString(pRegistration->fDisableResume)); | 1262 | LogId(REPORT_STANDARD, MSG_SESSION_UPDATE, pRegistration->sczRegistrationKey, LoggingInstallScopeToString(pRegistration->fPerMachine), LoggingResumeModeToString(resumeMode), LoggingBoolToString(fRestartInitiated), LoggingBoolToString(pRegistration->fDisableResume)); |
1263 | 1263 | ||
1264 | // write resume information | 1264 | // write resume information |
1265 | if (hkRegistration) | 1265 | if (hkRegistration) |