From 8164b2fda77d9f91c6cd83d360967bf55c0bd0f1 Mon Sep 17 00:00:00 2001 From: Scott Blomquist Date: Tue, 29 Jan 2013 20:37:57 -0800 Subject: [PATCH] windows/msi: more installer enhancements Noteworthy installer improvements provided here: * Support in the Installer UI for not installing shortcuts. * Support in the Installer UI for choosing a custom install directory. * Command line support for not installing shortcuts (ADDDEFAULT=nodejs) * Command line support for custom install directory (INSTALLDIR=c:\tools\node) --- tools/msvs/msi/WixUI_en-us.wxl | 4 +++ tools/msvs/msi/nodemsi.wixproj | 27 ++++++++++------ tools/msvs/msi/product.wxs | 59 ++++++++++++++++++++++++---------- 3 files changed, 64 insertions(+), 26 deletions(-) create mode 100644 tools/msvs/msi/WixUI_en-us.wxl diff --git a/tools/msvs/msi/WixUI_en-us.wxl b/tools/msvs/msi/WixUI_en-us.wxl new file mode 100644 index 00000000000..76ca68a1ee1 --- /dev/null +++ b/tools/msvs/msi/WixUI_en-us.wxl @@ -0,0 +1,4 @@ + + + Choose a custom location or click Next to install + diff --git a/tools/msvs/msi/nodemsi.wixproj b/tools/msvs/msi/nodemsi.wixproj index f5a113378e9..4520e28ae84 100644 --- a/tools/msvs/msi/nodemsi.wixproj +++ b/tools/msvs/msi/nodemsi.wixproj @@ -1,5 +1,4 @@ - - + Debug @@ -27,6 +26,7 @@ ..\..\..\$(Configuration)\ obj\$(Configuration)\ Debug;ProductVersion=$(NodeVersion);NoETW=$(NoETW);NoPerfCtr=$(NoPerfCtr);NPMSourceDir=..\..\..\deps\npm\;ProgramFilesFolderId=ProgramFiles64Folder + en-US ..\..\..\$(Configuration)\ @@ -34,11 +34,13 @@ Debug;ProductVersion=$(NodeVersion);NoETW=$(NoETW);NoPerfCtr=$(NoPerfCtr);NPMSourceDir=..\..\..\deps\npm\;ProgramFilesFolderId=ProgramFiles64Folder - True + True - + + npm.wxs + @@ -50,9 +52,16 @@ WiXUtilExtension + + + - - - - - + + + + + + move !(TargetPath) $(TargetDir)\$(TargetFileName) +move !(TargetPdbPath) $(TargetDir)\$(TargetPdbName) + + \ No newline at end of file diff --git a/tools/msvs/msi/product.wxs b/tools/msvs/msi/product.wxs index 5443be5ad77..7b5e5883784 100755 --- a/tools/msvs/msi/product.wxs +++ b/tools/msvs/msi/product.wxs @@ -25,6 +25,13 @@ + + + + + + @@ -33,7 +40,7 @@ - + @@ -45,12 +52,12 @@ - + - + + Value="[INSTALLDIR]" /> @@ -80,13 +87,24 @@ + + + + + + + + + + + - + @@ -99,13 +117,13 @@ + Description="$(var.ProductDescription)" Target="[INSTALLDIR]node.exe" + WorkingDirectory="INSTALLDIR"/> + WorkingDirectory="INSTALLDIR"/> - + - @@ -139,6 +156,7 @@ + @@ -154,11 +172,11 @@ - - + + - + @@ -181,11 +199,19 @@ + + + NOT Installed Installed AND PATCH 1 - LicenseAccepted = "1" + LicenseAccepted = "1" + 1 + 1 + 1 + 1 + 1 1 NOT Installed OR WixUI_InstallMode = "Change" Installed AND NOT PATCH @@ -196,12 +222,11 @@ 1 1 Installed - NOT Installed + NOT Installed 1 -