Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTomasz Janczuk <tomasz@janczuk.org>2011-09-15 01:51:49 +0400
committerRyan Dahl <ry@tinyclouds.org>2011-10-11 21:29:03 +0400
commit6fadbec797bb7bb0160fb24c253be49961970945 (patch)
treeeaecefa8355158f8823ba2a5d323828156ac811e /tools
parentb280a2d44d8826418e0231af6a7a13f1d91b6a5f (diff)
wix project to create msi installer for windows
Fixes #1706.
Diffstat (limited to 'tools')
-rw-r--r--tools/msi/LICENSE.rtfbin0 -> 4304 bytes
-rw-r--r--tools/msi/getnodeversion.py9
-rw-r--r--tools/msi/nodemsi.sln20
-rw-r--r--tools/msi/nodemsi.wixproj46
-rw-r--r--tools/msi/product.wxs53
5 files changed, 128 insertions, 0 deletions
diff --git a/tools/msi/LICENSE.rtf b/tools/msi/LICENSE.rtf
new file mode 100644
index 00000000000..8afd3275546
--- /dev/null
+++ b/tools/msi/LICENSE.rtf
Binary files differ
diff --git a/tools/msi/getnodeversion.py b/tools/msi/getnodeversion.py
new file mode 100644
index 00000000000..a9a5274fb2b
--- /dev/null
+++ b/tools/msi/getnodeversion.py
@@ -0,0 +1,9 @@
+import sys,re;
+for line in sys.stdin:
+ if re.match('#define NODE_MAJOR_VERSION', line):
+ major = line.split()[2]
+ if re.match('#define NODE_MINOR_VERSION', line):
+ minor = line.split()[2]
+ if re.match('#define NODE_PATCH_VERSION', line):
+ patch = line.split()[2]
+print '{0:s}.{1:s}.{2:s}.0'.format(major, minor, patch)
diff --git a/tools/msi/nodemsi.sln b/tools/msi/nodemsi.sln
new file mode 100644
index 00000000000..1392bb285a5
--- /dev/null
+++ b/tools/msi/nodemsi.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "nodemsi", "nodemsi.wixproj", "{1D808FF0-B5A9-4BE9-859D-B334B6F48BE2}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {1D808FF0-B5A9-4BE9-859D-B334B6F48BE2}.Debug|x86.ActiveCfg = Debug|x86
+ {1D808FF0-B5A9-4BE9-859D-B334B6F48BE2}.Debug|x86.Build.0 = Debug|x86
+ {1D808FF0-B5A9-4BE9-859D-B334B6F48BE2}.Release|x86.ActiveCfg = Release|x86
+ {1D808FF0-B5A9-4BE9-859D-B334B6F48BE2}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/tools/msi/nodemsi.wixproj b/tools/msi/nodemsi.wixproj
new file mode 100644
index 00000000000..42536249912
--- /dev/null
+++ b/tools/msi/nodemsi.wixproj
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>3.5</ProductVersion>
+ <ProjectGuid>{1d808ff0-b5a9-4be9-859d-b334b6f48be2}</ProjectGuid>
+ <SchemaVersion>2.0</SchemaVersion>
+ <OutputName>node</OutputName>
+ <OutputType>Package</OutputType>
+ <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
+ <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
+ <NodeVersion Condition=" '$(NodeVersion)' == '' ">0.0.0.0</NodeVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <OutputPath>..\..\$(Configuration)\</OutputPath>
+ <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
+ <DefineConstants>Debug;ProductVersion=$(NodeVersion)</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <OutputPath>..\..\$(Configuration)\</OutputPath>
+ <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
+ <DefineConstants>Debug;ProductVersion=$(NodeVersion)</DefineConstants>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="product.wxs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="LICENSE.rtf" />
+ </ItemGroup>
+ <ItemGroup>
+ <WixExtension Include="WixUIExtension">
+ <HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
+ <Name>WixUIExtension</Name>
+ </WixExtension>
+ </ItemGroup>
+ <Import Project="$(WixTargetsPath)" />
+ <!--
+ To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Wix.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project> \ No newline at end of file
diff --git a/tools/msi/product.wxs b/tools/msi/product.wxs
new file mode 100644
index 00000000000..89a61295a1a
--- /dev/null
+++ b/tools/msi/product.wxs
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+
+ <?define sourcedir="$(var.ProjectDir)..\..\$(var.Configuration)\" ?>
+
+ <Product Id="cc6c176e-e26c-48ec-8970-f58bd1d046cf"
+ Name="node.js"
+ Language="1033"
+ Version="$(var.ProductVersion)"
+ Manufacturer="Joyent, Inc"
+ UpgradeCode="1d60944c-b9ce-4a71-a7c0-0384eb884baa">
+
+ <Package InstallerVersion="200" Compressed="yes" Platform="x86" />
+
+ <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
+
+ <Directory Id="TARGETDIR" Name="SourceDir">
+ <Directory Id="ProgramFilesFolder">
+ <Directory Id="NodeRoot" Name="nodejs">
+ <Component Id="nodeexe" Guid="AEC0F08E-89B3-4C35-A286-8DB8598597F2">
+ <File Id="filenodeexe" KeyPath="yes" Source="$(var.sourcedir)\node.exe" />
+ </Component>
+ <?if $(var.Configuration) = Debug ?>
+ <Component Id="nodepdb" Guid="BEC0F08E-89B3-4C35-A286-8DB8598597F2">
+ <File Id="filenodepdb" KeyPath="yes" Source="$(var.sourcedir)\node.pdb" />
+ </Component>
+ <?endif?>
+ <Component Id="license" Guid="CEC0F08E-89B3-4C35-A286-8DB8598597F2">
+ <File Id="filelicense" KeyPath="yes" Source="$(var.sourcedir)\..\LICENSE" />
+ </Component>
+ </Directory>
+ </Directory>
+ </Directory>
+
+ <ComponentGroup Id="allfiles">
+ <ComponentRef Id="nodeexe"/>
+ <?if $(var.Configuration) = Debug ?>
+ <ComponentRef Id="nodepdb"/>
+ <?endif?>
+ <ComponentRef Id="license"/>
+ </ComponentGroup>
+
+ <Feature Id="nodejs" Title="node.js engine" Level="1" Description="evented I/O for V8 javascript">
+ <ComponentGroupRef Id="allfiles" />
+ <ComponentGroupRef Id="Product.Generated" />
+ </Feature>
+
+ <WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\license.rtf" />
+ <UIRef Id="WixUI_Minimal" />
+
+ </Product>
+
+</Wix>