diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-08-01 10:20:31 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-08-09 10:47:30 -0600 |
| commit | a37013d41f0702cbdf2aee6dce95d26dafc069b4 (patch) | |
| tree | 16cc67c99f5319279a32a07c1fd1b52dccd13867 /src/balutil | |
| parent | 2ded319a01a9ec42b637a677813d394cd7eda6b9 (diff) | |
| download | wix-a37013d41f0702cbdf2aee6dce95d26dafc069b4.tar.gz wix-a37013d41f0702cbdf2aee6dce95d26dafc069b4.tar.bz2 wix-a37013d41f0702cbdf2aee6dce95d26dafc069b4.zip | |
WIXFEAT:4763 Change "string" variable type to literal and add "formatted".
Diffstat (limited to 'src/balutil')
| -rw-r--r-- | src/balutil/BalBootstrapperEngine.cpp | 4 | ||||
| -rw-r--r-- | src/balutil/balutil.cpp | 5 | ||||
| -rw-r--r-- | src/balutil/balutil.vcxproj | 8 | ||||
| -rw-r--r-- | src/balutil/inc/IBootstrapperEngine.h | 3 | ||||
| -rw-r--r-- | src/balutil/inc/balutil.h | 3 | ||||
| -rw-r--r-- | src/balutil/packages.config | 4 |
6 files changed, 16 insertions, 11 deletions
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 | ||
| 226 | DAPI_(HRESULT) BalSetStringVariable( | 226 | DAPI_(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 | ||
| 241 | LExit: | 242 | LExit: |
| 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 | ********************************************************************/ |
| 132 | DAPI_(HRESULT) BalSetStringVariable( | 132 | DAPI_(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 |
