diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-10-18 14:10:39 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-10-24 20:07:21 -0500 |
commit | 60717700e175d38412559113c8a5388c954c7c91 (patch) | |
tree | 4daa5ac91961b2a682c53db1009e9d3a03cd285a | |
parent | e879388d96157db6a6e7b2ee79871ef7ebbd3015 (diff) | |
download | wix-60717700e175d38412559113c8a5388c954c7c91.tar.gz wix-60717700e175d38412559113c8a5388c954c7c91.tar.bz2 wix-60717700e175d38412559113c8a5388c954c7c91.zip |
Get the internal Burn version to be Major.Minor.Patch.BuildNumber.
-rw-r--r-- | src/engine/EngineForApplication.cpp | 2 | ||||
-rw-r--r-- | src/engine/engine.vcxproj | 11 | ||||
-rw-r--r-- | src/engine/pseudobundle.cpp | 2 |
3 files changed, 11 insertions, 4 deletions
diff --git a/src/engine/EngineForApplication.cpp b/src/engine/EngineForApplication.cpp index 49ffe700..c5eb5467 100644 --- a/src/engine/EngineForApplication.cpp +++ b/src/engine/EngineForApplication.cpp | |||
@@ -369,7 +369,7 @@ static HRESULT BAEngineSetUpdate( | |||
369 | sczId = pContext->pEngineState->registration.sczId; | 369 | sczId = pContext->pEngineState->registration.sczId; |
370 | } | 370 | } |
371 | 371 | ||
372 | hr = PseudoBundleInitialize(FILEMAKEVERSION(rmj, rmm, rup, 0), &pContext->pEngineState->update.package, FALSE, sczId, BOOTSTRAPPER_RELATION_UPDATE, BOOTSTRAPPER_PACKAGE_STATE_ABSENT, pContext->pEngineState->registration.sczExecutableName, sczLocalSource ? sczLocalSource : wzLocalSource, wzDownloadSource, qwSize, TRUE, sczCommandline, NULL, NULL, NULL, rgbHash, cbHash); | 372 | hr = PseudoBundleInitialize(FILEMAKEVERSION(rmj, rmm, rup, rpr), &pContext->pEngineState->update.package, FALSE, sczId, BOOTSTRAPPER_RELATION_UPDATE, BOOTSTRAPPER_PACKAGE_STATE_ABSENT, pContext->pEngineState->registration.sczExecutableName, sczLocalSource ? sczLocalSource : wzLocalSource, wzDownloadSource, qwSize, TRUE, sczCommandline, NULL, NULL, NULL, rgbHash, cbHash); |
373 | ExitOnFailure(hr, "Failed to set update bundle."); | 373 | ExitOnFailure(hr, "Failed to set update bundle."); |
374 | 374 | ||
375 | pContext->pEngineState->update.fUpdateAvailable = TRUE; | 375 | pContext->pEngineState->update.fUpdateAvailable = TRUE; |
diff --git a/src/engine/engine.vcxproj b/src/engine/engine.vcxproj index d3f5b61e..d98cb7e9 100644 --- a/src/engine/engine.vcxproj +++ b/src/engine/engine.vcxproj | |||
@@ -151,10 +151,17 @@ rc.exe -fo "$(OutDir)engine.res" "$(IntDir)engine.messages.rc"</Command> | |||
151 | <Target Name="SetWixVersion" | 151 | <Target Name="SetWixVersion" |
152 | DependsOnTargets="GetBuildVersion" | 152 | DependsOnTargets="GetBuildVersion" |
153 | BeforeTargets="ClCompile"> | 153 | BeforeTargets="ClCompile"> |
154 | <PropertyGroup> | ||
155 | <rmj>$(MajorMinorVersion.Split(`.`)[0])</rmj> | ||
156 | <rmm>$(MajorMinorVersion.Split(`.`)[1])</rmm> | ||
157 | <rup>0</rup> | ||
158 | <rpr>$(BuildNumber)</rpr> | ||
159 | <szVerMajorMinorBuild>$(rmj).$(rmm).$(rup).$(rpr)</szVerMajorMinorBuild> | ||
160 | <wixver>rmj=$(rmj);rmm=$(rmm);rup=$(rup);rpr=$(rpr);szVerMajorMinorBuild="$(szVerMajorMinorBuild)"</wixver> | ||
161 | </PropertyGroup> | ||
154 | <ItemGroup> | 162 | <ItemGroup> |
155 | <ClCompile> | 163 | <ClCompile> |
156 | <!-- TODO: get rmj and rmm dynamically --> | 164 | <PreprocessorDefinitions>$(wixver);%(PreprocessorDefinitions)</PreprocessorDefinitions> |
157 | <PreprocessorDefinitions>rmj=4;rmm=0;rup=$(BuildNumber);szVerMajorMinorBuild="$(BuildVersion)";%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
158 | </ClCompile> | 165 | </ClCompile> |
159 | </ItemGroup> | 166 | </ItemGroup> |
160 | </Target> | 167 | </Target> |
diff --git a/src/engine/pseudobundle.cpp b/src/engine/pseudobundle.cpp index ebdc040a..70f93701 100644 --- a/src/engine/pseudobundle.cpp +++ b/src/engine/pseudobundle.cpp | |||
@@ -126,7 +126,7 @@ extern "C" HRESULT PseudoBundleInitialize( | |||
126 | } | 126 | } |
127 | 127 | ||
128 | // Only support progress from engines that are compatible (aka: version greater than or equal to last protocol breaking change *and* versions that are older or the same as this engine). | 128 | // Only support progress from engines that are compatible (aka: version greater than or equal to last protocol breaking change *and* versions that are older or the same as this engine). |
129 | pPackage->Exe.protocol = (FILEMAKEVERSION(3, 6, 2221, 0) <= qwEngineVersion && qwEngineVersion <= FILEMAKEVERSION(rmj, rmm, rup, 0)) ? BURN_EXE_PROTOCOL_TYPE_BURN : BURN_EXE_PROTOCOL_TYPE_NONE; | 129 | pPackage->Exe.protocol = (FILEMAKEVERSION(3, 6, 2221, 0) <= qwEngineVersion && qwEngineVersion <= FILEMAKEVERSION(rmj, rmm, rup, rpr)) ? BURN_EXE_PROTOCOL_TYPE_BURN : BURN_EXE_PROTOCOL_TYPE_NONE; |
130 | 130 | ||
131 | // All versions of Burn past v3.9 RTM support suppressing ancestors. | 131 | // All versions of Burn past v3.9 RTM support suppressing ancestors. |
132 | pPackage->Exe.fSupportsAncestors = FILEMAKEVERSION(3, 9, 1006, 0) <= qwEngineVersion; | 132 | pPackage->Exe.fSupportsAncestors = FILEMAKEVERSION(3, 9, 1006, 0) <= qwEngineVersion; |