From 01432403afc81b727083034dcb5126e4350e9c45 Mon Sep 17 00:00:00 2001 From: Jeroen Janssen Date: Mon, 4 Jun 2012 18:59:01 +0200 Subject: [PATCH] windows/msi: add node.js prompt to startmenu --- tools/msvs/msi/product.wxs | 9 +++++++++ tools/msvs/nodejsvars.bat | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tools/msvs/nodejsvars.bat diff --git a/tools/msvs/msi/product.wxs b/tools/msvs/msi/product.wxs index 6189b47..bf27634 100755 --- a/tools/msvs/msi/product.wxs +++ b/tools/msvs/msi/product.wxs @@ -64,6 +64,9 @@ + + + @@ -85,6 +88,11 @@ + @@ -113,6 +121,7 @@ + diff --git a/tools/msvs/nodejsvars.bat b/tools/msvs/nodejsvars.bat new file mode 100644 index 0000000..68be313 --- /dev/null +++ b/tools/msvs/nodejsvars.bat @@ -0,0 +1,19 @@ +@echo off +@rem Process arguments. +set target_arch=x86 + +:next-arg +if "%1"=="" goto args-done +if /i "%1"=="x86" set target_arch=x86&goto arg-ok +if /i "%1"=="x64" set target_arch=x64&goto arg-ok + +echo Warning: ignoring invalid command line option `%1`. + +:arg-ok +shift +goto next-arg +:args-done + +@rem Ensure this Node.js is first in the PATH +echo Your environment has been set up for using Node.js (%target_arch%) and NPM +set PATH=%~dp0;%PATH% \ No newline at end of file -- 2.7.4