From e2126e05e7a5a4a7f2cb97173ad3b8b4c11807d5 Mon Sep 17 00:00:00 2001 From: Jeroen Janssen Date: Sat, 2 Jun 2012 18:36:20 +0200 Subject: [PATCH] windows/msi: cleanup WiX project files The current WiX project files do some manual processing and generation which WiX supports doing out of the box. This patch will use the HeatDirectory task to generate the npm.wxs file and use the auto GUID generation. I also changed the msi filename generation to include the version number to match the currently used name for released msi files. Closes #3360 --- tools/msvs/msi/nodemsi.wixproj | 24 ++++-------------------- tools/msvs/msi/product.wxs | 2 +- vcbuild.bat | 3 +-- 3 files changed, 6 insertions(+), 23 deletions(-) diff --git a/tools/msvs/msi/nodemsi.wixproj b/tools/msvs/msi/nodemsi.wixproj index 50411aaa06..37abc04ca9 100644 --- a/tools/msvs/msi/nodemsi.wixproj +++ b/tools/msvs/msi/nodemsi.wixproj @@ -1,4 +1,4 @@ - + @@ -7,7 +7,7 @@ 3.5 {1d808ff0-b5a9-4be9-859d-b334b6f48be2} 2.0 - node + node-v$(NodeVersion)-$(Platform) Package $(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets @@ -43,25 +43,9 @@ WixUIExtension - - - - - - - - - - - - - - - - + + diff --git a/tools/msvs/msi/product.wxs b/tools/msvs/msi/product.wxs index d21ca46440..8a3fe4f311 100755 --- a/tools/msvs/msi/product.wxs +++ b/tools/msvs/msi/product.wxs @@ -4,7 +4,7 @@ - "%temp%\node_version.txt" if not errorlevel 0 echo Cannot determine current version of node.js & goto exit for /F "tokens=*" %%i in (%temp%\node_version.txt) do set NODE_VERSION=%%i -heat dir deps\npm -var var.NPMSourceDir -dr NodeModulesFolder -cg NPMFiles -gg -template fragment -nologo -out npm.wxs msbuild "%~dp0tools\msvs\msi\nodemsi.sln" /m /t:Clean,Build /p:Configuration=%config% /p:Platform=%msiplatform% /p:NodeVersion=%NODE_VERSION% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo if errorlevel 1 goto exit if defined nosign goto run -signtool sign /a Release\node.msi +signtool sign /a Release\node-v%NODE_VERSION%-%msiplatform%.msi :run @rem Run tests if requested.