Skip to content

Commit b27e9c9

Browse files
committed
Update to WiX 3.14.0 for security vulnerability fix
1 parent ed57f1e commit b27e9c9

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

BuildInstaller/BuildInstaller.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<readme>ReadMe.md</readme>
1717

1818
<dependencies>
19-
<dependency id="WiX" version="3.11.2" />
19+
<dependency id="WiX" version="3.14.0" />
2020
</dependencies>
2121
</metadata>
2222
<files>

ReadMe.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# BuildInstaller
1+
## BuildInstaller
22

33
BuildInstaller is a NuGet package that causes a Visual Studio project to produce an installer during Release builds (configurable). It has been tested with .NET projects and might need changes to support other types. The installer is a .msi file (Windows Installer package).
44

55
The project's output files will be installed under Program Files and an application shortcut placed at the root of Start menu. Running the installer again gives access to the Remove and Repair buttons. The application can also be uninstalled via Apps & Features.
66

7-
# Use
7+
# Using It
88

99
Install the BuildInstaller package in your application's project. On Release builds the installer will appear in:
1010

@@ -100,9 +100,15 @@ These items are:
100100

101101
The installer is built using [The WiX Toolset][WiXUrl]. The installer can be customized by editing Product.wxs and SimpleUI.wxs which are created in [Project]\Installer\ on first installer build, or by adding other WiX source code files to that folder.
102102

103+
---
104+
103105
# Developing BuildInstaller
104106

105-
There are sometimes errors the first time the solution or TestApp.OldProjFormat are built. The errors seem to go away if build is run a second time (something to do with NuGet restore?).
107+
In Visual Studio, the first solution build will fail on the TestApp.OldProjFormat project:
108+
109+
> The command ""\heat.exe" dir "bin\Debug\\" ... exited with code 9009.
110+
111+
After this error, right click its project in Solution Explorer and select **Rebuild**. It should build and the solution should build after that.
106112

107113
The **BuildInstaller project** builds the NuGet package and deletes local caches of it.
108114
- Its PackageFiles folder holds MSBuild files that run in projects that use BuildInstaller.

TestApp.OldProjFormat/TestApp.OldProjFormat.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\WiX.3.11.2\build\wix.props" Condition="Exists('..\packages\WiX.3.11.2\build\wix.props')" />
3+
<Import Project="..\packages\wix.3.14.0\build\wix.props" Condition="Exists('..\packages\wix.3.14.0\build\wix.props')" />
44
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
55
<PropertyGroup>
66
<InstallerBuildConfigurations>Debug;Release</InstallerBuildConfigurations>
@@ -110,7 +110,7 @@
110110
<PropertyGroup>
111111
<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>
112112
</PropertyGroup>
113-
<Error Condition="!Exists('..\packages\WiX.3.11.2\build\wix.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\WiX.3.11.2\build\wix.props'))" />
113+
<Error Condition="!Exists('..\packages\wix.3.14.0\build\wix.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\wix.3.14.0\build\wix.props'))" />
114114
<Error Condition="!Exists('..\packages\BuildInstaller.1.0.1\build\BuildInstaller.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\BuildInstaller.1.0.1\build\BuildInstaller.targets'))" />
115115
</Target>
116116
<Import Project="..\packages\BuildInstaller.1.0.1\build\BuildInstaller.targets" Condition="Exists('..\packages\BuildInstaller.1.0.1\build\BuildInstaller.targets')" />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="BuildInstaller" version="1.0.1" targetFramework="net48" developmentDependency="true" />
4-
<package id="WiX" version="3.11.2" targetFramework="net48" />
4+
<package id="WiX" version="3.14.0" targetFramework="net48" />
55
</packages>

0 commit comments

Comments
 (0)