From 0f3a9f968d0bb166796bad9e8ae75b69a14a9321 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 22 Nov 2017 10:23:01 -0500 Subject: [PATCH] Install WiX through nuget --- .github/CONTRIBUTING.md | 4 ++-- TGS.Installer.UI/TGS.Installer.UI.csproj | 6 +++++- TGS.Installer.UI/packages.config | 1 + TGS.Installer/TGS.Installer.wixproj | 12 ++++++++++++ TGS.Installer/packages.config | 4 ++++ 5 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 TGS.Installer/packages.config diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 930b4465b8..71f8dd3c10 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -26,9 +26,9 @@ We reccommend any Visual Studio version that can support the .NET framework v4.5 Visual Studio comes with the nuget package manager. To install the dependencies, right-click the solution and select `Restore NuGet Packages`. If you are using some other development environment, you can download nuget [here](https://dist.nuget.org/win-x86-commandline/latest/nuget.exe) as a single CLI executable. Then simply run `nuget restore TGStationServer3.sln` from the root of the project directory. -##### (Optional) Installing WiX Toolset and Visual Studio Extension +##### (Optional) Installing WiX Toolset Visual Studio Extension -The [WiX Toolset](http://wixtoolset.org/) is used for creating the installer .msi (Not the .exe, which is a standard C# program wrapper to the .msi). Building and modifying this is not required for debugging and development of the service but necessary if you want to debug tweaks to the installer configuration. You can download the Wix Toolset and Visual studio extension [here](http://wixtoolset.org/releases/). This will allow you to build `TGS.Installer.wixproj` just like all the other projects. +The [WiX Toolset](http://wixtoolset.org/) is used for creating the installer .msi (Not the .exe, which is a standard C# program wrapper to the .msi). Building and modifying this is not required for debugging and development of the service but necessary if you want to debug tweaks to the installer configuration. The WiX toolset is bundled as a nuget package with the solution, all that is required to use it is the VS extension found [here](https://marketplace.visualstudio.com/items?itemName=RobMensching.WixToolsetVisualStudio2017Extension). This will allow you to build `TGS.Installer.wixproj` just like all the other projects. ##### Debugging diff --git a/TGS.Installer.UI/TGS.Installer.UI.csproj b/TGS.Installer.UI/TGS.Installer.UI.csproj index bd8eafeb8e..0db0a2fa49 100644 --- a/TGS.Installer.UI/TGS.Installer.UI.csproj +++ b/TGS.Installer.UI/TGS.Installer.UI.csproj @@ -1,5 +1,6 @@  + Debug @@ -50,7 +51,9 @@ ..\packages\Costura.Fody.1.6.2\lib\dotnet\Costura.dll False - + + ..\packages\WiX.3.11.0\tools\Microsoft.Deployment.WindowsInstaller.dll + @@ -107,6 +110,7 @@ + \ No newline at end of file diff --git a/TGS.Installer.UI/packages.config b/TGS.Installer.UI/packages.config index b4d46b584a..c77cd9eca7 100644 --- a/TGS.Installer.UI/packages.config +++ b/TGS.Installer.UI/packages.config @@ -2,4 +2,5 @@ + \ No newline at end of file diff --git a/TGS.Installer/TGS.Installer.wixproj b/TGS.Installer/TGS.Installer.wixproj index bc81125088..fb6790d2e1 100644 --- a/TGS.Installer/TGS.Installer.wixproj +++ b/TGS.Installer/TGS.Installer.wixproj @@ -1,5 +1,6 @@  + Debug x86 @@ -8,6 +9,8 @@ 2.0 TGServiceInstaller Package + + bin\$(Configuration)\ @@ -73,6 +76,9 @@ INSTALLFOLDER + + + @@ -87,6 +93,12 @@ powershell -Command "& \"$(SolutionDir)Tools/SignMSI.ps1\"" + + + 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}. + + +