Skip to content

Commit 6851c9f

Browse files
committed
fix #171: add msi for dev package
1 parent 64e2b89 commit 6851c9f

File tree

3 files changed

+144
-0
lines changed

3 files changed

+144
-0
lines changed

Diff for: src/setup/iisnode-dev-msi/iisnode-dev-msi.wixproj

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6+
<ProductVersion>3.5</ProductVersion>
7+
<ProjectGuid>{10d6e303-e057-4963-a093-c7aae0fd92b3}</ProjectGuid>
8+
<SchemaVersion>2.0</SchemaVersion>
9+
<OutputName>iisnode-dev</OutputName>
10+
<OutputType>Package</OutputType>
11+
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
12+
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
13+
<DefineSolutionProperties>false</DefineSolutionProperties>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
16+
<OutputPath>..\..\..\build\$(Configuration)\x86\</OutputPath>
17+
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
18+
<SuppressSpecificWarnings>
19+
</SuppressSpecificWarnings>
20+
<SuppressIces>ICE30;ICE91;ICE64</SuppressIces>
21+
</PropertyGroup>
22+
<ItemGroup>
23+
<Compile Include="iisnode.wxs" />
24+
</ItemGroup>
25+
<ItemGroup>
26+
<WixExtension Include="WixUtilExtension">
27+
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
28+
<Name>WixUtilExtension</Name>
29+
</WixExtension>
30+
<WixExtension Include="WixUIExtension">
31+
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
32+
<Name>WixUIExtension</Name>
33+
</WixExtension>
34+
</ItemGroup>
35+
<ItemGroup>
36+
<Content Include="iisnodefiles.wxi" />
37+
</ItemGroup>
38+
<Import Project="$(WixTargetsPath)" />
39+
<PropertyGroup>
40+
<PreBuildEvent>"$(ProjectDir)\..\scripts\genVersionWxi.bat" &gt; "$(ProjectDir)\version_autogenerated.wxi"</PreBuildEvent>
41+
</PropertyGroup>
42+
<!--
43+
To modify your build process, add your task inside one of the targets below and uncomment it.
44+
Other similar extension points exist, see Wix.targets.
45+
<Target Name="BeforeBuild">
46+
</Target>
47+
<Target Name="AfterBuild">
48+
</Target>
49+
-->
50+
</Project>

Diff for: src/setup/iisnode-dev-msi/iisnode.wxs

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3+
4+
<?define sourcedir="$(var.ProjectDir)..\..\..\build\" ?>
5+
6+
<?include version_autogenerated.wxi ?> <!-- generated in pre-build steps -->
7+
8+
<Product Id="*"
9+
Name="iisnode for iis 7.x dev package"
10+
Language="1033"
11+
Version="$(var.version)"
12+
Manufacturer="Microsoft Corporation"
13+
UpgradeCode="607788E9-4C47-4375-9E7F-1089CAAEB685">
14+
15+
<Package InstallerVersion="200" Compressed="yes" Platform="x86" />
16+
17+
<MajorUpgrade AllowSameVersionUpgrades="yes"
18+
DowngradeErrorMessage="A later version of [ProductName] is already installed and cannot be replaced. If you intend to downgrade the version of [ProductName], please uninstall the current version manually." />
19+
20+
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
21+
22+
<Directory Id="TARGETDIR" Name="SourceDir">
23+
<Directory Id="ProgramFilesFolder">
24+
<Directory Id="iisnoderootdir" Name="iisnode-dev">
25+
</Directory>
26+
</Directory>
27+
</Directory>
28+
29+
<Feature Id="iisnode4iis" Title="Hosting node.js applications in IIS 7.x" Level="1" Description="IIS 7.x native module for hosting node.js applications in IIS 7.x">
30+
<ComponentGroupRef Id="allfiles" />
31+
<ComponentGroupRef Id="Product.Generated" />
32+
</Feature>
33+
34+
<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\..\iisnode-msi\License.rtf" />
35+
<UIRef Id="WixUI_Minimal" />
36+
37+
</Product>
38+
39+
<?include iisnodefiles.wxi ?>
40+
41+
</Wix>

Diff for: src/setup/iisnode-dev-msi/iisnodefiles.wxi

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">
3+
<Fragment>
4+
<DirectoryRef Id="iisnoderootdir">
5+
<Directory Id="dir_debug" Name="debug">
6+
<Directory Id="dir_debug_x86" Name="x86">
7+
<Component Id="cmp_debug_x86" Guid="100AD501-3EBD-43AA-A6ED-12E55660B0CE">
8+
<File Id="file_debug_x86_iisnode_dll" KeyPath="no" Source="$(var.sourcedir)\debug\x86\iisnode.dll" />
9+
<File Id="file_debug_x86_iisnode_pdb" KeyPath="no" Source="$(var.sourcedir)\debug\x86\iisnode.pdb" />
10+
<File Id="file_debug_x86_interceptor_js" KeyPath="no" Source="$(var.sourcedir)\debug\x86\interceptor.js" />
11+
<File Id="file_debug_x86_iisnode_schema_xml" KeyPath="no" Source="$(var.sourcedir)\debug\x86\iisnode_schema.xml" />
12+
</Component>
13+
</Directory>
14+
<Directory Id="dir_debug_x64" Name="x64">
15+
<Component Id="cmp_debug_x64" Guid="101AD501-3EBD-43AA-A6ED-12E55660B0CE">
16+
<File Id="file_debug_x64_iisnode_dll" KeyPath="no" Source="$(var.sourcedir)\debug\amd64\iisnode.dll" />
17+
<File Id="file_debug_x64_iisnode_pdb" KeyPath="no" Source="$(var.sourcedir)\debug\amd64\iisnode.pdb" />
18+
<File Id="file_debug_x64_interceptor_js" KeyPath="no" Source="$(var.sourcedir)\debug\amd64\interceptor.js" />
19+
<File Id="file_debug_x64_iisnode_schema_x64_xml" KeyPath="no" Source="$(var.sourcedir)\debug\amd64\iisnode_schema_x64.xml"/>
20+
<File Id="file_debug_x64_iisnode_schema_x64_wow_xml" KeyPath="no" Source="$(var.sourcedir)\debug\amd64\iisnode_schema_x64_wow.xml"/>
21+
</Component>
22+
</Directory>
23+
</Directory>
24+
<Directory Id="dir_release" Name="release">
25+
<Directory Id="dir_release_x86" Name="x86">
26+
<Component Id="cmp_release_x86" Guid="102AD501-3EBD-43AA-A6ED-12E55660B0CE">
27+
<File Id="file_release_x86_iisnode_dll" KeyPath="no" Source="$(var.sourcedir)\release\x86\iisnode.dll" />
28+
<File Id="file_release_x86_iisnode_pdb" KeyPath="no" Source="$(var.sourcedir)\release\x86\iisnode.pdb" />
29+
<File Id="file_release_x86_interceptor_js" KeyPath="no" Source="$(var.sourcedir)\release\x86\interceptor.js" />
30+
<File Id="file_release_x86_iisnode_schema_xml" KeyPath="no" Source="$(var.sourcedir)\release\x86\iisnode_schema.xml" />
31+
</Component>
32+
</Directory>
33+
<Directory Id="dir_release_x64" Name="x64">
34+
<Component Id="cmp_release_x64" Guid="103AD501-3EBD-43AA-A6ED-12E55660B0CE">
35+
<File Id="file_release_x64_iisnode_dll" KeyPath="no" Source="$(var.sourcedir)\release\amd64\iisnode.dll" />
36+
<File Id="file_release_x64_iisnode_pdb" KeyPath="no" Source="$(var.sourcedir)\release\amd64\iisnode.pdb" />
37+
<File Id="file_release_x64_interceptor_js" KeyPath="no" Source="$(var.sourcedir)\release\amd64\interceptor.js" />
38+
<File Id="file_release_x64_iisnode_schema_x64_xml" KeyPath="no" Source="$(var.sourcedir)\release\amd64\iisnode_schema_x64.xml"/>
39+
<File Id="file_release_x64_iisnode_schema_x64_wow_xml" KeyPath="no" Source="$(var.sourcedir)\release\amd64\iisnode_schema_x64_wow.xml"/>
40+
</Component>
41+
</Directory>
42+
</Directory>
43+
</DirectoryRef>
44+
</Fragment>
45+
<Fragment>
46+
<ComponentGroup Id="allfiles">
47+
<ComponentRef Id="cmp_debug_x86" />
48+
<ComponentRef Id="cmp_debug_x64" />
49+
<ComponentRef Id="cmp_release_x86" />
50+
<ComponentRef Id="cmp_release_x64" />
51+
</ComponentGroup>
52+
</Fragment>
53+
</Include>

0 commit comments

Comments
 (0)