summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJeroen Janssen <jeroen.janssen@gmail.com>2012-06-04 18:59:01 +0200
committerBert Belder <bertbelder@gmail.com>2012-06-04 21:39:51 +0200
commit01432403afc81b727083034dcb5126e4350e9c45 (patch)
treeae711e1d3891c9a51c199066feb3e1f85ee3120b /tools
parent04e484c4843011640e14f8a9b5409eb8d8dac0fe (diff)
downloadnodejs-01432403afc81b727083034dcb5126e4350e9c45.tar.gz
nodejs-01432403afc81b727083034dcb5126e4350e9c45.tar.bz2
nodejs-01432403afc81b727083034dcb5126e4350e9c45.zip
windows/msi: add node.js prompt to startmenu
Diffstat (limited to 'tools')
-rwxr-xr-xtools/msvs/msi/product.wxs9
-rw-r--r--tools/msvs/nodejsvars.bat19
2 files changed, 28 insertions, 0 deletions
diff --git a/tools/msvs/msi/product.wxs b/tools/msvs/msi/product.wxs
index 6189b4781..bf2763456 100755
--- a/tools/msvs/msi/product.wxs
+++ b/tools/msvs/msi/product.wxs
@@ -64,6 +64,9 @@
<File Id="filenodepdb" KeyPath="yes" Source="$(var.sourcedir)\node.pdb" />
</Component>
<?endif?>
+ <Component Id="nodejsvars" Guid="*">
+ <File Id="filenodejsvars" KeyPath="yes" Source="$(var.repoDir)\tools\msvs\nodejsvars.bat" />
+ </Component>
</Directory>
</Directory>
@@ -85,6 +88,11 @@
<Shortcut Id="ApplicationStartMenuShortcut" Name="Node.js"
Description="$(var.ProductDescription)" Target="[APPLICATIONROOTDIRECTORY]node.exe"
WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
+ <Shortcut Id="NodePromptStartMenuShortcut" Name="Node.js ($(var.Platform)) Command Prompt"
+ Description="Node.js Command Prompt" Target="[%ComSpec]"
+ Arguments='/k "[APPLICATIONROOTDIRECTORY]nodejsvars.bat" $(var.Platform)'
+ Show="normal"
+ WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
<util:InternetShortcut Id="OnlineWebsiteShortcut"
Name="Node.js website"
Target="http://nodejs.org"/>
@@ -113,6 +121,7 @@
<ComponentRef Id="nodepdb"/>
<?endif?>
<ComponentRef Id="ApplicationShortcut" />
+ <ComponentRef Id="nodejsvars" />
</ComponentGroup>
<Feature Id="nodejs" Title="node.js engine" Level="1" Description="$(var.ProductDescription)">
diff --git a/tools/msvs/nodejsvars.bat b/tools/msvs/nodejsvars.bat
new file mode 100644
index 000000000..68be31399
--- /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