aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-08-01 10:20:31 -0600
committerSean Hall <r.sean.hall@gmail.com>2020-08-09 10:47:30 -0600
commita37013d41f0702cbdf2aee6dce95d26dafc069b4 (patch)
tree16cc67c99f5319279a32a07c1fd1b52dccd13867
parent2ded319a01a9ec42b637a677813d394cd7eda6b9 (diff)
downloadwix-a37013d41f0702cbdf2aee6dce95d26dafc069b4.tar.gz
wix-a37013d41f0702cbdf2aee6dce95d26dafc069b4.tar.bz2
wix-a37013d41f0702cbdf2aee6dce95d26dafc069b4.zip
WIXFEAT:4763 Change "string" variable type to literal and add "formatted".
-rw-r--r--src/WixToolset.Mba.Core/Engine.cs4
-rw-r--r--src/WixToolset.Mba.Core/IBootstrapperEngine.cs3
-rw-r--r--src/balutil/BalBootstrapperEngine.cpp4
-rw-r--r--src/balutil/balutil.cpp5
-rw-r--r--src/balutil/balutil.vcxproj8
-rw-r--r--src/balutil/inc/IBootstrapperEngine.h3
-rw-r--r--src/balutil/inc/balutil.h3
-rw-r--r--src/balutil/packages.config4
-rw-r--r--src/bextutil/BextBundleExtensionEngine.cpp21
-rw-r--r--src/bextutil/bextutil.cpp50
-rw-r--r--src/bextutil/bextutil.vcxproj8
-rw-r--r--src/bextutil/inc/IBundleExtensionEngine.h8
-rw-r--r--src/bextutil/inc/bextutil.h20
-rw-r--r--src/bextutil/packages.config4
-rw-r--r--src/mbanative/mbanative.vcxproj8
-rw-r--r--src/mbanative/packages.config4
16 files changed, 103 insertions, 54 deletions
diff --git a/src/WixToolset.Mba.Core/Engine.cs b/src/WixToolset.Mba.Core/Engine.cs
index 408278ed..2c544f29 100644
--- a/src/WixToolset.Mba.Core/Engine.cs
+++ b/src/WixToolset.Mba.Core/Engine.cs
@@ -79,7 +79,7 @@ namespace WixToolset.Mba.Core
79 IntPtr pValue = Marshal.SecureStringToCoTaskMemUnicode(value); 79 IntPtr pValue = Marshal.SecureStringToCoTaskMemUnicode(value);
80 try 80 try
81 { 81 {
82 this.engine.SetVariableString(name, pValue); 82 this.engine.SetVariableString(name, pValue, true);
83 } 83 }
84 finally 84 finally
85 { 85 {
@@ -115,7 +115,7 @@ namespace WixToolset.Mba.Core
115 IntPtr pValue = Marshal.StringToCoTaskMemUni(value); 115 IntPtr pValue = Marshal.StringToCoTaskMemUni(value);
116 try 116 try
117 { 117 {
118 this.engine.SetVariableString(name, pValue); 118 this.engine.SetVariableString(name, pValue, true);
119 } 119 }
120 finally 120 finally
121 { 121 {
diff --git a/src/WixToolset.Mba.Core/IBootstrapperEngine.cs b/src/WixToolset.Mba.Core/IBootstrapperEngine.cs
index d070998e..85ca8693 100644
--- a/src/WixToolset.Mba.Core/IBootstrapperEngine.cs
+++ b/src/WixToolset.Mba.Core/IBootstrapperEngine.cs
@@ -106,7 +106,8 @@ namespace WixToolset.Mba.Core
106 106
107 void SetVariableString( 107 void SetVariableString(
108 [MarshalAs(UnmanagedType.LPWStr)] string wzVariable, 108 [MarshalAs(UnmanagedType.LPWStr)] string wzVariable,
109 IntPtr wzValue 109 IntPtr wzValue,
110 [MarshalAs(UnmanagedType.Bool)] bool fFormatted
110 ); 111 );
111 112
112 void SetVariableVersion( 113 void SetVariableVersion(
diff --git a/src/balutil/BalBootstrapperEngine.cpp b/src/balutil/BalBootstrapperEngine.cpp
index 945940c5..6a0c66d6 100644
--- a/src/balutil/BalBootstrapperEngine.cpp
+++ b/src/balutil/BalBootstrapperEngine.cpp
@@ -391,7 +391,8 @@ public: // IBootstrapperEngine
391 391
392 virtual STDMETHODIMP SetVariableString( 392 virtual STDMETHODIMP SetVariableString(
393 __in_z LPCWSTR wzVariable, 393 __in_z LPCWSTR wzVariable,
394 __in_z_opt LPCWSTR wzValue 394 __in_z_opt LPCWSTR wzValue,
395 __in BOOL fFormatted
395 ) 396 )
396 { 397 {
397 BAENGINE_SETVARIABLESTRING_ARGS args = { }; 398 BAENGINE_SETVARIABLESTRING_ARGS args = { };
@@ -400,6 +401,7 @@ public: // IBootstrapperEngine
400 args.cbSize = sizeof(args); 401 args.cbSize = sizeof(args);
401 args.wzVariable = wzVariable; 402 args.wzVariable = wzVariable;
402 args.wzValue = wzValue; 403 args.wzValue = wzValue;
404 args.fFormatted = fFormatted;
403 405
404 results.cbSize = sizeof(results); 406 results.cbSize = sizeof(results);
405 407
diff --git a/src/balutil/balutil.cpp b/src/balutil/balutil.cpp
index 7567752c..ebfaede4 100644
--- a/src/balutil/balutil.cpp
+++ b/src/balutil/balutil.cpp
@@ -225,7 +225,8 @@ LExit:
225 225
226DAPI_(HRESULT) BalSetStringVariable( 226DAPI_(HRESULT) BalSetStringVariable(
227 __in_z LPCWSTR wzVariable, 227 __in_z LPCWSTR wzVariable,
228 __in_z_opt LPCWSTR wzValue 228 __in_z_opt LPCWSTR wzValue,
229 __in BOOL fFormatted
229 ) 230 )
230{ 231{
231 HRESULT hr = S_OK; 232 HRESULT hr = S_OK;
@@ -236,7 +237,7 @@ DAPI_(HRESULT) BalSetStringVariable(
236 ExitOnRootFailure(hr, "BalInitialize() must be called first."); 237 ExitOnRootFailure(hr, "BalInitialize() must be called first.");
237 } 238 }
238 239
239 hr = vpEngine->SetVariableString(wzVariable, wzValue); 240 hr = vpEngine->SetVariableString(wzVariable, wzValue, fFormatted);
240 241
241LExit: 242LExit:
242 return hr; 243 return hr;
diff --git a/src/balutil/balutil.vcxproj b/src/balutil/balutil.vcxproj
index 72c23991..39be0bed 100644
--- a/src/balutil/balutil.vcxproj
+++ b/src/balutil/balutil.vcxproj
@@ -2,8 +2,8 @@
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> 2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3 3
4<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 4<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
5 <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props')" /> 5 <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props')" />
6 <Import Project="..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props')" /> 6 <Import Project="..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props')" />
7 7
8 <ItemGroup Label="ProjectConfigurations"> 8 <ItemGroup Label="ProjectConfigurations">
9 <ProjectConfiguration Include="Debug|ARM"> 9 <ProjectConfiguration Include="Debug|ARM">
@@ -106,8 +106,8 @@
106 <PropertyGroup> 106 <PropertyGroup>
107 <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> 107 <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
108 </PropertyGroup> 108 </PropertyGroup>
109 <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props'))" /> 109 <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props'))" />
110 <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props'))" /> 110 <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props'))" />
111 <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> 111 <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" />
112 </Target> 112 </Target>
113</Project> 113</Project>
diff --git a/src/balutil/inc/IBootstrapperEngine.h b/src/balutil/inc/IBootstrapperEngine.h
index 3fe3d401..3b648df1 100644
--- a/src/balutil/inc/IBootstrapperEngine.h
+++ b/src/balutil/inc/IBootstrapperEngine.h
@@ -89,7 +89,8 @@ DECLARE_INTERFACE_IID_(IBootstrapperEngine, IUnknown, "6480D616-27A0-44D7-905B-8
89 89
90 STDMETHOD(SetVariableString)( 90 STDMETHOD(SetVariableString)(
91 __in_z LPCWSTR wzVariable, 91 __in_z LPCWSTR wzVariable,
92 __in_z_opt LPCWSTR wzValue 92 __in_z_opt LPCWSTR wzValue,
93 __in BOOL fFormatted
93 ) = 0; 94 ) = 0;
94 95
95 STDMETHOD(SetVariableVersion)( 96 STDMETHOD(SetVariableVersion)(
diff --git a/src/balutil/inc/balutil.h b/src/balutil/inc/balutil.h
index e0f5874c..b718e48b 100644
--- a/src/balutil/inc/balutil.h
+++ b/src/balutil/inc/balutil.h
@@ -131,7 +131,8 @@ BalSetStringVariable - sets a string variable in the engine.
131********************************************************************/ 131********************************************************************/
132DAPI_(HRESULT) BalSetStringVariable( 132DAPI_(HRESULT) BalSetStringVariable(
133 __in_z LPCWSTR wzVariable, 133 __in_z LPCWSTR wzVariable,
134 __in_z_opt LPCWSTR wzValue 134 __in_z_opt LPCWSTR wzValue,
135 __in BOOL fFormatted
135 ); 136 );
136 137
137/******************************************************************* 138/*******************************************************************
diff --git a/src/balutil/packages.config b/src/balutil/packages.config
index 56f0cea3..e8417860 100644
--- a/src/balutil/packages.config
+++ b/src/balutil/packages.config
@@ -1,6 +1,6 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2<packages> 2<packages>
3 <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" /> 3 <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" />
4 <package id="WixToolset.BootstrapperCore.Native" version="4.0.31" targetFramework="native" /> 4 <package id="WixToolset.BootstrapperCore.Native" version="4.0.33" targetFramework="native" />
5 <package id="WixToolset.DUtil" version="4.0.45" targetFramework="native" /> 5 <package id="WixToolset.DUtil" version="4.0.49" targetFramework="native" />
6</packages> \ No newline at end of file 6</packages> \ No newline at end of file
diff --git a/src/bextutil/BextBundleExtensionEngine.cpp b/src/bextutil/BextBundleExtensionEngine.cpp
index 02070a6f..a78b3130 100644
--- a/src/bextutil/BextBundleExtensionEngine.cpp
+++ b/src/bextutil/BextBundleExtensionEngine.cpp
@@ -225,23 +225,6 @@ public: // IBundleExtensionEngine
225 return m_pfnBundleExtensionEngineProc(BUNDLE_EXTENSION_ENGINE_MESSAGE_LOG, &args, &results, m_pvBundleExtensionEngineProcContext); 225 return m_pfnBundleExtensionEngineProc(BUNDLE_EXTENSION_ENGINE_MESSAGE_LOG, &args, &results, m_pvBundleExtensionEngineProcContext);
226 } 226 }
227 227
228 virtual STDMETHODIMP SetVariableLiteralString(
229 __in_z LPCWSTR wzVariable,
230 __in_z_opt LPCWSTR wzValue
231 )
232 {
233 BUNDLE_EXTENSION_ENGINE_SETVARIABLELITERALSTRING_ARGS args = { };
234 BUNDLE_EXTENSION_ENGINE_SETVARIABLELITERALSTRING_RESULTS results = { };
235
236 args.cbSize = sizeof(args);
237 args.wzVariable = wzVariable;
238 args.wzValue = wzValue;
239
240 results.cbSize = sizeof(results);
241
242 return m_pfnBundleExtensionEngineProc(BUNDLE_EXTENSION_ENGINE_MESSAGE_SETVARIABLELITERALSTRING, &args, &results, m_pvBundleExtensionEngineProcContext);
243 }
244
245 virtual STDMETHODIMP SetVariableNumeric( 228 virtual STDMETHODIMP SetVariableNumeric(
246 __in_z LPCWSTR wzVariable, 229 __in_z LPCWSTR wzVariable,
247 __in LONGLONG llValue 230 __in LONGLONG llValue
@@ -261,7 +244,8 @@ public: // IBundleExtensionEngine
261 244
262 virtual STDMETHODIMP SetVariableString( 245 virtual STDMETHODIMP SetVariableString(
263 __in_z LPCWSTR wzVariable, 246 __in_z LPCWSTR wzVariable,
264 __in_z_opt LPCWSTR wzValue 247 __in_z_opt LPCWSTR wzValue,
248 __in BOOL fFormatted
265 ) 249 )
266 { 250 {
267 BUNDLE_EXTENSION_ENGINE_SETVARIABLESTRING_ARGS args = { }; 251 BUNDLE_EXTENSION_ENGINE_SETVARIABLESTRING_ARGS args = { };
@@ -270,6 +254,7 @@ public: // IBundleExtensionEngine
270 args.cbSize = sizeof(args); 254 args.cbSize = sizeof(args);
271 args.wzVariable = wzVariable; 255 args.wzVariable = wzVariable;
272 args.wzValue = wzValue; 256 args.wzValue = wzValue;
257 args.fFormatted = fFormatted;
273 258
274 results.cbSize = sizeof(results); 259 results.cbSize = sizeof(results);
275 260
diff --git a/src/bextutil/bextutil.cpp b/src/bextutil/bextutil.cpp
index baf35591..4b22d502 100644
--- a/src/bextutil/bextutil.cpp
+++ b/src/bextutil/bextutil.cpp
@@ -119,6 +119,29 @@ DAPIV_(HRESULT) BextLog(
119{ 119{
120 HRESULT hr = S_OK; 120 HRESULT hr = S_OK;
121 va_list args; 121 va_list args;
122
123 if (!vpEngine)
124 {
125 hr = E_POINTER;
126 ExitOnRootFailure(hr, "BextInitialize() must be called first.");
127 }
128
129 va_start(args, szFormat);
130 hr = BextLogArgs(level, szFormat, args);
131 va_end(args);
132
133LExit:
134 return hr;
135}
136
137
138DAPI_(HRESULT) BextLogArgs(
139 __in BUNDLE_EXTENSION_LOG_LEVEL level,
140 __in_z __format_string LPCSTR szFormat,
141 __in va_list args
142 )
143{
144 HRESULT hr = S_OK;
122 LPSTR sczFormattedAnsi = NULL; 145 LPSTR sczFormattedAnsi = NULL;
123 LPWSTR sczMessage = NULL; 146 LPWSTR sczMessage = NULL;
124 147
@@ -128,9 +151,7 @@ DAPIV_(HRESULT) BextLog(
128 ExitOnRootFailure(hr, "BextInitialize() must be called first."); 151 ExitOnRootFailure(hr, "BextInitialize() must be called first.");
129 } 152 }
130 153
131 va_start(args, szFormat);
132 hr = StrAnsiAllocFormattedArgs(&sczFormattedAnsi, szFormat, args); 154 hr = StrAnsiAllocFormattedArgs(&sczFormattedAnsi, szFormat, args);
133 va_end(args);
134 ExitOnFailure(hr, "Failed to format log string."); 155 ExitOnFailure(hr, "Failed to format log string.");
135 156
136 hr = StrAllocStringAnsi(&sczMessage, sczFormattedAnsi, 0, CP_UTF8); 157 hr = StrAllocStringAnsi(&sczMessage, sczFormattedAnsi, 0, CP_UTF8);
@@ -153,6 +174,29 @@ DAPIV_(HRESULT) BextLogError(
153{ 174{
154 HRESULT hr = S_OK; 175 HRESULT hr = S_OK;
155 va_list args; 176 va_list args;
177
178 if (!vpEngine)
179 {
180 hr = E_POINTER;
181 ExitOnRootFailure(hr, "BextInitialize() must be called first.");
182 }
183
184 va_start(args, szFormat);
185 hr = BextLogErrorArgs(hrError, szFormat, args);
186 va_end(args);
187
188LExit:
189 return hr;
190}
191
192
193DAPI_(HRESULT) BextLogErrorArgs(
194 __in HRESULT hrError,
195 __in_z __format_string LPCSTR szFormat,
196 __in va_list args
197 )
198{
199 HRESULT hr = S_OK;
156 LPSTR sczFormattedAnsi = NULL; 200 LPSTR sczFormattedAnsi = NULL;
157 LPWSTR sczMessage = NULL; 201 LPWSTR sczMessage = NULL;
158 202
@@ -162,9 +206,7 @@ DAPIV_(HRESULT) BextLogError(
162 ExitOnRootFailure(hr, "BextInitialize() must be called first."); 206 ExitOnRootFailure(hr, "BextInitialize() must be called first.");
163 } 207 }
164 208
165 va_start(args, szFormat);
166 hr = StrAnsiAllocFormattedArgs(&sczFormattedAnsi, szFormat, args); 209 hr = StrAnsiAllocFormattedArgs(&sczFormattedAnsi, szFormat, args);
167 va_end(args);
168 ExitOnFailure(hr, "Failed to format error log string."); 210 ExitOnFailure(hr, "Failed to format error log string.");
169 211
170 hr = StrAllocFormatted(&sczMessage, L"Error 0x%08x: %S", hrError, sczFormattedAnsi); 212 hr = StrAllocFormatted(&sczMessage, L"Error 0x%08x: %S", hrError, sczFormattedAnsi);
diff --git a/src/bextutil/bextutil.vcxproj b/src/bextutil/bextutil.vcxproj
index 78ff290d..32518202 100644
--- a/src/bextutil/bextutil.vcxproj
+++ b/src/bextutil/bextutil.vcxproj
@@ -2,8 +2,8 @@
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> 2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3 3
4<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 4<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
5 <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props')" /> 5 <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props')" />
6 <Import Project="..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props')" /> 6 <Import Project="..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props')" />
7 7
8 <ItemGroup Label="ProjectConfigurations"> 8 <ItemGroup Label="ProjectConfigurations">
9 <ProjectConfiguration Include="Debug|ARM"> 9 <ProjectConfiguration Include="Debug|ARM">
@@ -95,8 +95,8 @@
95 <PropertyGroup> 95 <PropertyGroup>
96 <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> 96 <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
97 </PropertyGroup> 97 </PropertyGroup>
98 <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props'))" /> 98 <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props'))" />
99 <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props'))" /> 99 <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props'))" />
100 <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> 100 <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" />
101 </Target> 101 </Target>
102</Project> 102</Project>
diff --git a/src/bextutil/inc/IBundleExtensionEngine.h b/src/bextutil/inc/IBundleExtensionEngine.h
index 869c6695..7772b016 100644
--- a/src/bextutil/inc/IBundleExtensionEngine.h
+++ b/src/bextutil/inc/IBundleExtensionEngine.h
@@ -42,11 +42,6 @@ DECLARE_INTERFACE_IID_(IBundleExtensionEngine, IUnknown, "9D027A39-F6B6-42CC-973
42 __in_z LPCWSTR wzMessage 42 __in_z LPCWSTR wzMessage
43 ) = 0; 43 ) = 0;
44 44
45 STDMETHOD(SetVariableLiteralString)(
46 __in_z LPCWSTR wzVariable,
47 __in_z_opt LPCWSTR wzValue
48 ) = 0;
49
50 STDMETHOD(SetVariableNumeric)( 45 STDMETHOD(SetVariableNumeric)(
51 __in_z LPCWSTR wzVariable, 46 __in_z LPCWSTR wzVariable,
52 __in LONGLONG llValue 47 __in LONGLONG llValue
@@ -54,7 +49,8 @@ DECLARE_INTERFACE_IID_(IBundleExtensionEngine, IUnknown, "9D027A39-F6B6-42CC-973
54 49
55 STDMETHOD(SetVariableString)( 50 STDMETHOD(SetVariableString)(
56 __in_z LPCWSTR wzVariable, 51 __in_z LPCWSTR wzVariable,
57 __in_z_opt LPCWSTR wzValue 52 __in_z_opt LPCWSTR wzValue,
53 __in BOOL fFormatted
58 ) = 0; 54 ) = 0;
59 55
60 STDMETHOD(SetVariableVersion)( 56 STDMETHOD(SetVariableVersion)(
diff --git a/src/bextutil/inc/bextutil.h b/src/bextutil/inc/bextutil.h
index e80d3944..ac9c0062 100644
--- a/src/bextutil/inc/bextutil.h
+++ b/src/bextutil/inc/bextutil.h
@@ -72,6 +72,16 @@ DAPIV_(HRESULT) BextLog(
72 ); 72 );
73 73
74/******************************************************************* 74/*******************************************************************
75 BextLogArgs - logs a message with the engine.
76
77********************************************************************/
78DAPI_(HRESULT) BextLogArgs(
79 __in BUNDLE_EXTENSION_LOG_LEVEL level,
80 __in_z __format_string LPCSTR szFormat,
81 __in va_list args
82 );
83
84/*******************************************************************
75 BextLogError - logs an error message with the engine. 85 BextLogError - logs an error message with the engine.
76 86
77********************************************************************/ 87********************************************************************/
@@ -81,6 +91,16 @@ DAPIV_(HRESULT) BextLogError(
81 ... 91 ...
82 ); 92 );
83 93
94/*******************************************************************
95 BextLogErrorArgs - logs an error message with the engine.
96
97********************************************************************/
98DAPI_(HRESULT) BextLogErrorArgs(
99 __in HRESULT hr,
100 __in_z __format_string LPCSTR szFormat,
101 __in va_list args
102 );
103
84#ifdef __cplusplus 104#ifdef __cplusplus
85} 105}
86#endif 106#endif
diff --git a/src/bextutil/packages.config b/src/bextutil/packages.config
index 56f0cea3..e8417860 100644
--- a/src/bextutil/packages.config
+++ b/src/bextutil/packages.config
@@ -1,6 +1,6 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2<packages> 2<packages>
3 <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" /> 3 <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" />
4 <package id="WixToolset.BootstrapperCore.Native" version="4.0.31" targetFramework="native" /> 4 <package id="WixToolset.BootstrapperCore.Native" version="4.0.33" targetFramework="native" />
5 <package id="WixToolset.DUtil" version="4.0.45" targetFramework="native" /> 5 <package id="WixToolset.DUtil" version="4.0.49" targetFramework="native" />
6</packages> \ No newline at end of file 6</packages> \ No newline at end of file
diff --git a/src/mbanative/mbanative.vcxproj b/src/mbanative/mbanative.vcxproj
index 23e38e49..c2d0bded 100644
--- a/src/mbanative/mbanative.vcxproj
+++ b/src/mbanative/mbanative.vcxproj
@@ -5,8 +5,8 @@
5 <Import Project="..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props" Condition="Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" /> 5 <Import Project="..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props" Condition="Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" />
6 <Import Project="..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props" Condition="Exists('..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props')" /> 6 <Import Project="..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props" Condition="Exists('..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props')" />
7 <Import Project="..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props" Condition="Exists('..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props')" /> 7 <Import Project="..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props" Condition="Exists('..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props')" />
8 <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props')" /> 8 <Import Project="..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props')" />
9 <Import Project="..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props')" /> 9 <Import Project="..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props')" />
10 10
11 <ItemGroup Label="ProjectConfigurations"> 11 <ItemGroup Label="ProjectConfigurations">
12 <ProjectConfiguration Include="Debug|ARM"> 12 <ProjectConfiguration Include="Debug|ARM">
@@ -102,7 +102,7 @@
102 <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props'))" /> 102 <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props'))" />
103 <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets'))" /> 103 <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets'))" />
104 <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> 104 <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" />
105 <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.31\build\WixToolset.BootstrapperCore.Native.props'))" /> 105 <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.33\build\WixToolset.BootstrapperCore.Native.props'))" />
106 <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.45\build\WixToolset.DUtil.props'))" /> 106 <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.49\build\WixToolset.DUtil.props'))" />
107 </Target> 107 </Target>
108</Project> \ No newline at end of file 108</Project> \ No newline at end of file
diff --git a/src/mbanative/packages.config b/src/mbanative/packages.config
index 9515379a..c3c26daa 100644
--- a/src/mbanative/packages.config
+++ b/src/mbanative/packages.config
@@ -4,6 +4,6 @@
4 <package id="Microsoft.SourceLink.Common" version="1.0.0" targetFramework="native" developmentDependency="true" /> 4 <package id="Microsoft.SourceLink.Common" version="1.0.0" targetFramework="native" developmentDependency="true" />
5 <package id="Microsoft.SourceLink.GitHub" version="1.0.0" targetFramework="native" developmentDependency="true" /> 5 <package id="Microsoft.SourceLink.GitHub" version="1.0.0" targetFramework="native" developmentDependency="true" />
6 <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" /> 6 <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" />
7 <package id="WixToolset.BootstrapperCore.Native" version="4.0.31" targetFramework="native" /> 7 <package id="WixToolset.BootstrapperCore.Native" version="4.0.33" targetFramework="native" />
8 <package id="WixToolset.DUtil" version="4.0.45" targetFramework="native" /> 8 <package id="WixToolset.DUtil" version="4.0.49" targetFramework="native" />
9</packages> \ No newline at end of file 9</packages> \ No newline at end of file