summaryrefslogtreecommitdiff
path: root/tools/msvs
diff options
context:
space:
mode:
authorJeroen Janssen <jeroen.janssen@gmail.com>2012-06-02 21:49:31 +0200
committerBert Belder <bertbelder@gmail.com>2012-06-03 00:45:39 +0200
commit943448772e988eba86173e9d53746137070420f4 (patch)
tree23787875a0bbb1b1628920c835da871b8a079b95 /tools/msvs
parente2126e05e7a5a4a7f2cb97173ad3b8b4c11807d5 (diff)
downloadandroid-node-v8-943448772e988eba86173e9d53746137070420f4.tar.gz
android-node-v8-943448772e988eba86173e9d53746137070420f4.tar.bz2
android-node-v8-943448772e988eba86173e9d53746137070420f4.zip
windows/msi: add start menu links when installing
Diffstat (limited to 'tools/msvs')
-rw-r--r--tools/msvs/msi/nodemsi.wixproj4
-rwxr-xr-xtools/msvs/msi/product.wxs44
2 files changed, 43 insertions, 5 deletions
diff --git a/tools/msvs/msi/nodemsi.wixproj b/tools/msvs/msi/nodemsi.wixproj
index 37abc04ca9..a7f71de779 100644
--- a/tools/msvs/msi/nodemsi.wixproj
+++ b/tools/msvs/msi/nodemsi.wixproj
@@ -42,6 +42,10 @@
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
</WixExtension>
+ <WixExtension Include="WiXUtilExtension">
+ <HintPath>$(WixExtDir)\WiXUtilExtension.dll</HintPath>
+ <Name>WiXUtilExtension</Name>
+ </WixExtension>
</ItemGroup>
<Import Project="$(WixTargetsPath)" />
<Target Name="BeforeBuild">
diff --git a/tools/msvs/msi/product.wxs b/tools/msvs/msi/product.wxs
index 8a3fe4f311..57fd9117e0 100755
--- a/tools/msvs/msi/product.wxs
+++ b/tools/msvs/msi/product.wxs
@@ -1,14 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
+ xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
+
+ <?define ProductName = "node.js" ?>
+ <?define ProductDescription = "Evented I/O for V8 javascript" ?>
+ <?define ProductAuthor = "Joyent, Inc. and other Node contributors" ?>
<?define repoDir="$(var.ProjectDir)..\..\..\" ?>
<?define sourcedir="$(var.repoDir)\$(var.Configuration)\" ?>
<Product Id="*"
- Name="node.js"
+ Name="$(var.ProductName)"
Language="1033"
Version="$(var.ProductVersion)"
- Manufacturer="Joyent, Inc"
+ Manufacturer="$(var.ProductAuthor)"
UpgradeCode="1d60944c-b9ce-4a71-a7c0-0384eb884baa">
<Package InstallerVersion="200" Compressed="yes" />
@@ -19,8 +24,13 @@
DowngradeErrorMessage="A later version of node.js is already installed. Setup will now exit." />
<Directory Id="TARGETDIR" Name="SourceDir">
+
+ <Directory Id="ProgramMenuFolder">
+ <Directory Id="ApplicationProgramsFolder" Name="Node.js"/>
+ </Directory>
+
<Directory Id="$(var.ProgramFilesFolderId)">
- <Directory Id="NodeRoot" Name="nodejs">
+ <Directory Id="APPLICATIONROOTDIRECTORY" Name="nodejs">
<Directory Id="NodeModulesFolder" Name="node_modules">
<Directory Id="NPMFolder" Name="npm">
<Component Id="npmrc" Guid="55B2B03F-8F32-4D62-A54A-FA428615591D">
@@ -56,6 +66,7 @@
<?endif?>
</Directory>
</Directory>
+
<Directory Id="AppDataFolder">
<Directory Id="NPMAppData" Name="npm">
<Component Id="npmappdata_folder" Guid="994B1F7F-60CD-4792-A96D-63BC7FFF29BF" Permanent="yes">
@@ -69,6 +80,28 @@
</Directory>
</Directory>
+ <DirectoryRef Id="ApplicationProgramsFolder">
+ <Component Id="ApplicationShortcut" Guid="9b1ab94a-8f54-4f19-a5c4-b890de474162">
+ <Shortcut Id="ApplicationStartMenuShortcut" Name="Node.js"
+ Description="$(var.ProductDescription)" Target="[APPLICATIONROOTDIRECTORY]node.exe"
+ WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
+ <util:InternetShortcut Id="OnlineWebsiteShortcut"
+ Name="Node.js website"
+ Target="http://nodejs.org"/>
+ <util:InternetShortcut Id="OnlineDocumentationShortcut"
+ Name="Node.js documentation"
+ Target="http://nodejs.org/dist/v$(var.ProductVersion)/docs/api/"/>
+ <Shortcut Id="UninstallProduct"
+ Name="Uninstall Node.js"
+ Target="[SystemFolder]msiexec.exe"
+ Arguments="/x [ProductCode]"
+ Description="Uninstalls $(var.ProductName)" />
+ <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
+ <RegistryValue Root="HKCU" Key="Software\$(var.ProductAuthor)\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
+ </Component>
+ </DirectoryRef>
+
+
<ComponentGroup Id="allfiles">
<ComponentRef Id="nodeexe"/>
<ComponentRef Id="npmcmd"/>
@@ -79,9 +112,10 @@
<?if $(var.Configuration) = Debug ?>
<ComponentRef Id="nodepdb"/>
<?endif?>
+ <ComponentRef Id="ApplicationShortcut" />
</ComponentGroup>
- <Feature Id="nodejs" Title="node.js engine" Level="1" Description="evented I/O for V8 javascript">
+ <Feature Id="nodejs" Title="node.js engine" Level="1" Description="$(var.ProductDescription)">
<ComponentGroupRef Id="allfiles" />
<ComponentGroupRef Id="Product.Generated" />
</Feature>