aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/api.cmd4
-rw-r--r--src/api/burn/WixToolset.BootstrapperApplicationApi/WixToolset.BootstrapperApplicationApi.nuspec12
-rw-r--r--src/api/burn/balutil/balinfo.cpp23
-rw-r--r--src/api/burn/balutil/inc/balinfo.h2
-rw-r--r--src/api/burn/balutil/msg.cpp2
-rw-r--r--src/api/burn/bextutil/bextutil.nuspec6
-rw-r--r--src/api/burn/test/WixToolsetTest.BootstrapperApplicationApi/WixToolsetTest.BootstrapperApplicationApi.csproj2
-rw-r--r--src/api/wix/test/WixToolsetTest.Data/WixToolsetTest.Data.csproj2
8 files changed, 37 insertions, 16 deletions
diff --git a/src/api/api.cmd b/src/api/api.cmd
index 42ca8567..66b25a65 100644
--- a/src/api/api.cmd
+++ b/src/api/api.cmd
@@ -27,8 +27,8 @@ msbuild api_t.proj -p:Configuration=%_C% -tl -nologo -warnaserror -bl:%_L%\api_b
27 27
28:: Test 28:: Test
29dotnet test ^ 29dotnet test ^
30 %_B%\net8.0\WixToolsetTest.Data.dll ^ 30 %_B%\net10.0\WixToolsetTest.Data.dll ^
31 %_B%\net8.0\win-x86\WixToolsetTest.BootstrapperApplicationApi.dll ^ 31 %_B%\net10.0\win-x86\WixToolsetTest.BootstrapperApplicationApi.dll ^
32 %_B%\x86\BalUtilUnitTest.dll ^ 32 %_B%\x86\BalUtilUnitTest.dll ^
33 %_B%\x86\BextUtilUnitTest.dll ^ 33 %_B%\x86\BextUtilUnitTest.dll ^
34 --nologo -l "trx;LogFileName=%_L%\TestResults\api.trx" || exit /b 34 --nologo -l "trx;LogFileName=%_L%\TestResults\api.trx" || exit /b
diff --git a/src/api/burn/WixToolset.BootstrapperApplicationApi/WixToolset.BootstrapperApplicationApi.nuspec b/src/api/burn/WixToolset.BootstrapperApplicationApi/WixToolset.BootstrapperApplicationApi.nuspec
index 398a16b7..6076c714 100644
--- a/src/api/burn/WixToolset.BootstrapperApplicationApi/WixToolset.BootstrapperApplicationApi.nuspec
+++ b/src/api/burn/WixToolset.BootstrapperApplicationApi/WixToolset.BootstrapperApplicationApi.nuspec
@@ -37,15 +37,15 @@
37 <file src="netstandard2.0\$id$.dll" target="lib\netstandard2.0" /> 37 <file src="netstandard2.0\$id$.dll" target="lib\netstandard2.0" />
38 <file src="netstandard2.0\$id$.xml" target="lib\netstandard2.0" /> 38 <file src="netstandard2.0\$id$.xml" target="lib\netstandard2.0" />
39 39
40 <file src="v143\ARM64\mbanative.dll" target="runtimes\win-arm64\native" /> 40 <file src="v145\ARM64\mbanative.dll" target="runtimes\win-arm64\native" />
41 <file src="v143\x64\mbanative.dll" target="runtimes\win-x64\native" /> 41 <file src="v145\x64\mbanative.dll" target="runtimes\win-x64\native" />
42 <file src="v143\x86\mbanative.dll" target="runtimes\win-x86\native" /> 42 <file src="v145\x86\mbanative.dll" target="runtimes\win-x86\native" />
43 43
44 <file src="$projectFolder$\..\balutil\inc\*" target="build\native\include" /> 44 <file src="$projectFolder$\..\balutil\inc\*" target="build\native\include" />
45 <file src="$projectFolder$\..\inc\BootstrapperApplicationTypes.h" target="build\native\include" /> 45 <file src="$projectFolder$\..\inc\BootstrapperApplicationTypes.h" target="build\native\include" />
46 <file src="$projectFolder$\..\inc\BootstrapperEngineTypes.h" target="build\native\include" /> 46 <file src="$projectFolder$\..\inc\BootstrapperEngineTypes.h" target="build\native\include" />
47 <file src="v143\x86\balutil.lib" target="build\native\v14\x86" /> 47 <file src="v145\x86\balutil.lib" target="build\native\v14\x86" />
48 <file src="v143\x64\balutil.lib" target="build\native\v14\x64" /> 48 <file src="v145\x64\balutil.lib" target="build\native\v14\x64" />
49 <file src="v143\ARM64\balutil.lib" target="build\native\v14\ARM64" /> 49 <file src="v145\ARM64\balutil.lib" target="build\native\v14\ARM64" />
50 </files> 50 </files>
51</package> 51</package>
diff --git a/src/api/burn/balutil/balinfo.cpp b/src/api/burn/balutil/balinfo.cpp
index ff0dfd9f..bff848c7 100644
--- a/src/api/burn/balutil/balinfo.cpp
+++ b/src/api/burn/balutil/balinfo.cpp
@@ -124,14 +124,32 @@ DAPI_(HRESULT) BalInfoParseFromXml(
124 HRESULT hr = S_OK; 124 HRESULT hr = S_OK;
125 IXMLDOMNode* pNode = NULL; 125 IXMLDOMNode* pNode = NULL;
126 BOOL fXmlFound = FALSE; 126 BOOL fXmlFound = FALSE;
127 LPWSTR scz = NULL;
127 128
128 hr = XmlSelectSingleNode(pixdManifest, L"/BootstrapperApplicationData/WixBundleProperties", &pNode); 129 hr = XmlSelectSingleNode(pixdManifest, L"/BootstrapperApplicationData/WixBundleProperties", &pNode);
129 BalExitOnOptionalXmlQueryFailure(hr, fXmlFound, "Failed to select bundle information."); 130 BalExitOnOptionalXmlQueryFailure(hr, fXmlFound, "Failed to select bundle information.");
130 131
131 if (fXmlFound) 132 if (fXmlFound)
132 { 133 {
133 hr = XmlGetYesNoAttribute(pNode, L"PerMachine", &pBundle->fPerMachine); 134 hr = XmlGetAttributeEx(pNode, L"Scope", &scz);
134 BalExitOnOptionalXmlQueryFailure(hr, fXmlFound, "Failed to read bundle information per-machine."); 135 BalExitOnOptionalXmlQueryFailure(hr, fXmlFound, "Failed to read bundle information scope.");
136
137 if (CSTR_EQUAL == ::CompareStringOrdinal(scz, -1, L"perMachine", -1, TRUE))
138 {
139 pBundle->scope = BOOTSTRAPPER_PACKAGE_SCOPE_PER_MACHINE;
140 }
141 else if (CSTR_EQUAL == ::CompareStringOrdinal(scz, -1, L"perUser", -1, TRUE))
142 {
143 pBundle->scope = BOOTSTRAPPER_PACKAGE_SCOPE_PER_USER;
144 }
145 else if (CSTR_EQUAL == ::CompareStringOrdinal(scz, -1, L"perUserOrMachine", -1, TRUE))
146 {
147 pBundle->scope = BOOTSTRAPPER_PACKAGE_SCOPE_PER_USER_OR_PER_MACHINE;
148 }
149 else if (CSTR_EQUAL == ::CompareStringOrdinal(scz, -1, L"perMachineOrUser", -1, TRUE))
150 {
151 pBundle->scope = BOOTSTRAPPER_PACKAGE_SCOPE_PER_MACHINE_OR_PER_USER;
152 }
135 153
136 hr = XmlGetAttributeEx(pNode, L"DisplayName", &pBundle->sczName); 154 hr = XmlGetAttributeEx(pNode, L"DisplayName", &pBundle->sczName);
137 BalExitOnOptionalXmlQueryFailure(hr, fXmlFound, "Failed to read bundle information display name."); 155 BalExitOnOptionalXmlQueryFailure(hr, fXmlFound, "Failed to read bundle information display name.");
@@ -150,6 +168,7 @@ DAPI_(HRESULT) BalInfoParseFromXml(
150 BalExitOnFailure(hr, "Failed to parse bal package information from bootstrapper application data."); 168 BalExitOnFailure(hr, "Failed to parse bal package information from bootstrapper application data.");
151 169
152LExit: 170LExit:
171 ReleaseStr(scz);
153 ReleaseObject(pNode); 172 ReleaseObject(pNode);
154 173
155 return hr; 174 return hr;
diff --git a/src/api/burn/balutil/inc/balinfo.h b/src/api/burn/balutil/inc/balinfo.h
index 8baee844..110fb688 100644
--- a/src/api/burn/balutil/inc/balinfo.h
+++ b/src/api/burn/balutil/inc/balinfo.h
@@ -93,7 +93,7 @@ typedef struct _BAL_INFO_OVERRIDABLE_VARIABLES
93 93
94typedef struct _BAL_INFO_BUNDLE 94typedef struct _BAL_INFO_BUNDLE
95{ 95{
96 BOOL fPerMachine; 96 BOOTSTRAPPER_PACKAGE_SCOPE scope;
97 LPWSTR sczName; 97 LPWSTR sczName;
98 LPWSTR sczLogVariable; 98 LPWSTR sczLogVariable;
99 BAL_INFO_PACKAGES packages; 99 BAL_INFO_PACKAGES packages;
diff --git a/src/api/burn/balutil/msg.cpp b/src/api/burn/balutil/msg.cpp
index b728cc83..b37cce8c 100644
--- a/src/api/burn/balutil/msg.cpp
+++ b/src/api/burn/balutil/msg.cpp
@@ -513,6 +513,8 @@ static HRESULT OnCacheAcquireResolving(
513 hr = BuffReaderReadString(pReaderArgs, &sczDownloadUrl); 513 hr = BuffReaderReadString(pReaderArgs, &sczDownloadUrl);
514 ExitOnFailure(hr, "Failed to read download url of OnCacheAcquireResolving args."); 514 ExitOnFailure(hr, "Failed to read download url of OnCacheAcquireResolving args.");
515 515
516 args.wzDownloadUrl = sczDownloadUrl;
517
516 hr = BuffReaderReadString(pReaderArgs, &sczPayloadContainerId); 518 hr = BuffReaderReadString(pReaderArgs, &sczPayloadContainerId);
517 ExitOnFailure(hr, "Failed to read payload container id of OnCacheAcquireResolving args."); 519 ExitOnFailure(hr, "Failed to read payload container id of OnCacheAcquireResolving args.");
518 520
diff --git a/src/api/burn/bextutil/bextutil.nuspec b/src/api/burn/bextutil/bextutil.nuspec
index 6efdf0fc..83fa4e79 100644
--- a/src/api/burn/bextutil/bextutil.nuspec
+++ b/src/api/burn/bextutil/bextutil.nuspec
@@ -28,8 +28,8 @@
28 <file src="$projectFolder$\inc\*" target="build\native\include" /> 28 <file src="$projectFolder$\inc\*" target="build\native\include" />
29 <file src="$projectFolder$\..\inc\BootstrapperExtensionTypes.h" target="build\native\include" /> 29 <file src="$projectFolder$\..\inc\BootstrapperExtensionTypes.h" target="build\native\include" />
30 <file src="$projectFolder$\..\inc\BootstrapperExtensionEngineTypes.h" target="build\native\include" /> 30 <file src="$projectFolder$\..\inc\BootstrapperExtensionEngineTypes.h" target="build\native\include" />
31 <file src="..\..\v143\x86\bextutil.lib" target="build\native\v14\x86" /> 31 <file src="..\..\v145\x86\bextutil.lib" target="build\native\v14\x86" />
32 <file src="..\..\v143\x64\bextutil.lib" target="build\native\v14\x64" /> 32 <file src="..\..\v145\x64\bextutil.lib" target="build\native\v14\x64" />
33 <file src="..\..\v143\ARM64\bextutil.lib" target="build\native\v14\ARM64" /> 33 <file src="..\..\v145\ARM64\bextutil.lib" target="build\native\v14\ARM64" />
34 </files> 34 </files>
35</package> 35</package>
diff --git a/src/api/burn/test/WixToolsetTest.BootstrapperApplicationApi/WixToolsetTest.BootstrapperApplicationApi.csproj b/src/api/burn/test/WixToolsetTest.BootstrapperApplicationApi/WixToolsetTest.BootstrapperApplicationApi.csproj
index 4b2d273b..b53a50b3 100644
--- a/src/api/burn/test/WixToolsetTest.BootstrapperApplicationApi/WixToolsetTest.BootstrapperApplicationApi.csproj
+++ b/src/api/burn/test/WixToolsetTest.BootstrapperApplicationApi/WixToolsetTest.BootstrapperApplicationApi.csproj
@@ -3,7 +3,7 @@
3 3
4<Project Sdk="Microsoft.NET.Sdk"> 4<Project Sdk="Microsoft.NET.Sdk">
5 <PropertyGroup> 5 <PropertyGroup>
6 <TargetFramework>net8.0</TargetFramework> 6 <TargetFramework>net10.0</TargetFramework>
7 <RuntimeIdentifier>win-x86</RuntimeIdentifier> 7 <RuntimeIdentifier>win-x86</RuntimeIdentifier>
8 <SelfContained>false</SelfContained> 8 <SelfContained>false</SelfContained>
9 <IsWixTestProject>true</IsWixTestProject> 9 <IsWixTestProject>true</IsWixTestProject>
diff --git a/src/api/wix/test/WixToolsetTest.Data/WixToolsetTest.Data.csproj b/src/api/wix/test/WixToolsetTest.Data/WixToolsetTest.Data.csproj
index 688e23f5..a1d8103b 100644
--- a/src/api/wix/test/WixToolsetTest.Data/WixToolsetTest.Data.csproj
+++ b/src/api/wix/test/WixToolsetTest.Data/WixToolsetTest.Data.csproj
@@ -3,7 +3,7 @@
3 3
4<Project Sdk="Microsoft.NET.Sdk"> 4<Project Sdk="Microsoft.NET.Sdk">
5 <PropertyGroup> 5 <PropertyGroup>
6 <TargetFramework>net8.0</TargetFramework> 6 <TargetFramework>net10.0</TargetFramework>
7 <IsWixTestProject>true</IsWixTestProject> 7 <IsWixTestProject>true</IsWixTestProject>
8 </PropertyGroup> 8 </PropertyGroup>
9 9