aboutsummaryrefslogtreecommitdiff
path: root/src/burn/engine/registration.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-12-30 15:12:26 -0600
committerSean Hall <r.sean.hall@gmail.com>2021-12-30 18:40:49 -0600
commit84a1b0f8ffe40a26916b1dfb3e1b59b6b0c31ad4 (patch)
treebb830b599bf014c1e93f319b4d8a349d60eb8b53 /src/burn/engine/registration.cpp
parentc86f75bcc104d5dc457fa2900a3ebb9c38f6ff65 (diff)
downloadwix-84a1b0f8ffe40a26916b1dfb3e1b59b6b0c31ad4.tar.gz
wix-84a1b0f8ffe40a26916b1dfb3e1b59b6b0c31ad4.tar.bz2
wix-84a1b0f8ffe40a26916b1dfb3e1b59b6b0c31ad4.zip
Add BURN_PROTOCOL_VERSION in registration to avoid version checks.
Also, old versions of Burn should ignore ancestors if they doesn't support them.
Diffstat (limited to 'src/burn/engine/registration.cpp')
-rw-r--r--src/burn/engine/registration.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/burn/engine/registration.cpp b/src/burn/engine/registration.cpp
index e06767e1..9cc4b199 100644
--- a/src/burn/engine/registration.cpp
+++ b/src/burn/engine/registration.cpp
@@ -671,6 +671,9 @@ extern "C" HRESULT RegistrationSessionBegin(
671 hr = RegWriteStringFormatted(hkRegistration, BURN_REGISTRATION_REGISTRY_ENGINE_VERSION, L"%hs", szVerMajorMinorBuild); 671 hr = RegWriteStringFormatted(hkRegistration, BURN_REGISTRATION_REGISTRY_ENGINE_VERSION, L"%hs", szVerMajorMinorBuild);
672 ExitOnFailure(hr, "Failed to write %ls value.", BURN_REGISTRATION_REGISTRY_ENGINE_VERSION); 672 ExitOnFailure(hr, "Failed to write %ls value.", BURN_REGISTRATION_REGISTRY_ENGINE_VERSION);
673 673
674 hr = RegWriteNumber(hkRegistration, BURN_REGISTRATION_REGISTRY_ENGINE_PROTOCOL_VERSION, BURN_PROTOCOL_VERSION);
675 ExitOnFailure(hr, "Failed to write %ls value.", BURN_REGISTRATION_REGISTRY_ENGINE_PROTOCOL_VERSION);
676
674 // DisplayIcon: [path to exe] and ",0" to refer to the first icon in the executable. 677 // DisplayIcon: [path to exe] and ",0" to refer to the first icon in the executable.
675 hr = RegWriteStringFormatted(hkRegistration, REGISTRY_BUNDLE_DISPLAY_ICON, L"%s,0", pRegistration->sczCacheExecutablePath); 678 hr = RegWriteStringFormatted(hkRegistration, REGISTRY_BUNDLE_DISPLAY_ICON, L"%s,0", pRegistration->sczCacheExecutablePath);
676 ExitOnFailure(hr, "Failed to write %ls value.", REGISTRY_BUNDLE_DISPLAY_ICON); 679 ExitOnFailure(hr, "Failed to write %ls value.", REGISTRY_BUNDLE_DISPLAY_ICON);