Skip to content

Commit 8070d23

Browse files
sridharncraiggwilson
authored andcommitted
CSHARP-480 - wix based installer for the driver
1 parent 667768f commit 8070d23

File tree

8 files changed

+238
-32
lines changed

8 files changed

+238
-32
lines changed

CSharpDriverSetup-2010.sln

100644100755
Lines changed: 59 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,59 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 11.00
3-
# Visual Studio 2010
4-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bson", "Bson\Bson.csproj", "{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}"
5-
EndProject
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Driver", "Driver\Driver.csproj", "{AE5166CD-76B0-4911-BD80-CED9521F37A1}"
7-
EndProject
8-
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "DriverSetup", "DriverSetup\DriverSetup.vdproj", "{EC84803F-4020-4295-AB81-F0378D8563E1}"
9-
EndProject
10-
Global
11-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12-
Debug|Any CPU = Debug|Any CPU
13-
Release|Any CPU = Release|Any CPU
14-
EndGlobalSection
15-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17-
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
18-
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
19-
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|Any CPU.Build.0 = Release|Any CPU
20-
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|Any CPU.Build.0 = Release|Any CPU
24-
{EC84803F-4020-4295-AB81-F0378D8563E1}.Debug|Any CPU.ActiveCfg = Debug
25-
{EC84803F-4020-4295-AB81-F0378D8563E1}.Debug|Any CPU.Build.0 = Debug
26-
{EC84803F-4020-4295-AB81-F0378D8563E1}.Release|Any CPU.ActiveCfg = Release
27-
{EC84803F-4020-4295-AB81-F0378D8563E1}.Release|Any CPU.Build.0 = Release
28-
EndGlobalSection
29-
GlobalSection(SolutionProperties) = preSolution
30-
HideSolutionNode = FALSE
31-
EndGlobalSection
32-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual Studio 2010
4+
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "CSharpDriverInstaller", "Installer\CSharpDriverInstaller.wixproj", "{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}"
5+
EndProject
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bson", "Bson\Bson.csproj", "{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Driver", "Driver\Driver.csproj", "{AE5166CD-76B0-4911-BD80-CED9521F37A1}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2A0C688C-BDBC-4ED0-9BF0-D7BCDB836063}"
11+
ProjectSection(SolutionItems) = preProject
12+
CSharpDriverDocs.shfbproj = CSharpDriverDocs.shfbproj
13+
EndProjectSection
14+
EndProject
15+
Global
16+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
17+
Debug|Any CPU = Debug|Any CPU
18+
Debug|Mixed Platforms = Debug|Mixed Platforms
19+
Debug|x86 = Debug|x86
20+
Release|Any CPU = Release|Any CPU
21+
Release|Mixed Platforms = Release|Mixed Platforms
22+
Release|x86 = Release|x86
23+
EndGlobalSection
24+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
25+
{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|Any CPU.ActiveCfg = Debug|x86
26+
{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
27+
{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|Mixed Platforms.Build.0 = Debug|x86
28+
{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|x86.ActiveCfg = Debug|x86
29+
{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|x86.Build.0 = Debug|x86
30+
{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|Any CPU.ActiveCfg = Release|x86
31+
{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|Mixed Platforms.ActiveCfg = Release|x86
32+
{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|Mixed Platforms.Build.0 = Release|x86
33+
{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|x86.ActiveCfg = Release|x86
34+
{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|x86.Build.0 = Release|x86
35+
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
36+
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
37+
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
38+
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
39+
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|x86.ActiveCfg = Debug|Any CPU
40+
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
41+
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|Any CPU.Build.0 = Release|Any CPU
42+
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
43+
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
44+
{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|x86.ActiveCfg = Release|Any CPU
45+
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
48+
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
49+
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|x86.ActiveCfg = Debug|Any CPU
50+
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
51+
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|Any CPU.Build.0 = Release|Any CPU
52+
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
53+
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|Mixed Platforms.Build.0 = Release|Any CPU
54+
{AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|x86.ActiveCfg = Release|Any CPU
55+
EndGlobalSection
56+
GlobalSection(SolutionProperties) = preSolution
57+
HideSolutionNode = FALSE
58+
EndGlobalSection
59+
EndGlobal

Installer/Banner.bmp

112 KB
Binary file not shown.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6+
<Version Condition=" '$(Version)' == '' ">1.4.2</Version>
7+
<SourceBase Condition=" '$(SourceBase)' == '' ">..</SourceBase>
8+
<ProductVersion>3.5</ProductVersion>
9+
<ProjectGuid>{0f21668d-b8ad-4b32-9392-a7beadf54efd}</ProjectGuid>
10+
<SchemaVersion>2.0</SchemaVersion>
11+
<OutputName>CSharpDriverInstaller</OutputName>
12+
<OutputType>Package</OutputType>
13+
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
14+
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
17+
<OutputPath>bin\$(Configuration)\</OutputPath>
18+
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
19+
<DefineConstants>Debug;DriverVersion=$(Version);SourceBase=$(SourceBase);ReleaseNotes=Release Notes v$(Version)</DefineConstants>
20+
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
21+
</PropertyGroup>
22+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
23+
<OutputPath>bin\$(Configuration)\</OutputPath>
24+
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
25+
<DefineConstants>DriverVersion=$(Version);SourceBase=$(SourceBase);ReleaseNotes=Release Notes v$(Version).txt</DefineConstants>
26+
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
27+
</PropertyGroup>
28+
<ItemGroup>
29+
<Compile Include="Product.wxs" />
30+
</ItemGroup>
31+
<ItemGroup>
32+
<WixExtension Include="WixUIExtension">
33+
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
34+
<Name>WixUIExtension</Name>
35+
</WixExtension>
36+
</ItemGroup>
37+
<Import Project="$(WixTargetsPath)" />
38+
<!--
39+
To modify your build process, add your task inside one of the targets below and uncomment it.
40+
Other similar extension points exist, see Wix.targets.
41+
<Target Name="BeforeBuild">
42+
</Target>
43+
<Target Name="AfterBuild">
44+
</Target>
45+
-->
46+
</Project>

Installer/Dialog.bmp

601 KB
Binary file not shown.

Installer/Installer_Icon_16x16.ico

1.12 KB
Binary file not shown.

Installer/Installer_Icon_32x32.ico

5.3 KB
Binary file not shown.

Installer/Product.wxs

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3+
<Product Id="184bee72-2f1b-4800-9d48-1f3dc3c5a607"
4+
Name="!(wix.ProductName)"
5+
Language="1033"
6+
Version="$(var.DriverVersion)"
7+
Manufacturer="10gen Inc."
8+
UpgradeCode="8fcd3593-c858-4a8d-8f8e-031b50530e95">
9+
10+
<Package InstallerVersion="200" Compressed="yes" />
11+
12+
<WixVariable Id="ProductShortName" Value="CSharpDriver $(var.DriverVersion)" />
13+
<WixVariable Id="ProductName" Value="MongoDB CSharpDriver $(var.DriverVersion)" />
14+
15+
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
16+
17+
<WixVariable Id="WixUIDialogBmp" Value="Dialog.bmp" />
18+
<WixVariable Id="WixUIBannerBmp" Value="Banner.bmp" />
19+
<WixVariable Id="WixUIInfoIco" Value="Installer_Icon_32x32.ico" />
20+
<WixVariable Id="WixUIExclamationIco" Value="Installer_Icon_32x32.ico" />
21+
<WixVariable Id="WixUINewIco" Value="Installer_Icon_16x16.ico" />
22+
<WixVariable Id="WixUIUpIco" Value="Installer_Icon_16x16.ico" />
23+
24+
<Directory Id="TARGETDIR" Name="SourceDir">
25+
<Directory Id="ProgramFilesFolder">
26+
<Directory Id="MONGODB" Name="MongoDB">
27+
<Directory Id="INSTALLLOCATION" Name="!(wix.ProductShortName)">
28+
<Component Id="c_License" Guid="7901999A-6026-4321-8584-ECB67D424221">
29+
<File Id="f_License" Name="License.rtf" Source="$(var.SourceBase)\License.rtf"
30+
DiskId ="1" KeyPath="yes" />
31+
</Component>
32+
<Component Id="c_ReleaseNotes" Guid="115F1B08-8A38-435A-BBB0-0C0DED5ACB31">
33+
<File Id="f_ReleaseNotes" Name="$(var.ReleaseNotes)" Source="$(var.SourceBase)\Release Notes\$(var.ReleaseNotes).md"
34+
DiskId ="1" KeyPath="yes" />
35+
</Component>
36+
<Component Id="c_Help" Guid="CC3F9A2F-1C43-48CA-B998-D03C15181DD3">
37+
<File Id="f_Help" Name="CSharpDriverDocs.chm" Source="$(var.SourceBase)\Help\CSharpDriverDocs.chm"
38+
DiskId ="1" KeyPath="yes" />
39+
</Component>
40+
<Component Id="c_BsonDll" Guid="13DA8DD9-1AD1-46BF-971A-78FA499F281D">
41+
<File Id="f_BsonDll" Name="MongoDB.Bson.dll" Source="$(var.SourceBase)\Bson\bin\Debug\MongoDB.Bson.dll"
42+
DiskId ="1" KeyPath="yes" />
43+
</Component>
44+
<Component Id="c_BsonPdb" Guid="AC6CE1A0-1584-42E6-B9FB-765F34A44745">
45+
<File Id="f_BsonPdb" Name="MongoDB.Bson.pdb" Source="$(var.SourceBase)\Bson\bin\Debug\MongoDB.Bson.pdb"
46+
DiskId ="1" KeyPath="yes" />
47+
</Component>
48+
<Component Id="c_BsonXml" Guid="ED71DBCD-5A02-4AC0-88E4-C793F5FBEDA8">
49+
<File Id="f_BsonXml" Name="MongoDB.Bson.xml" Source="$(var.SourceBase)\Bson\bin\Debug\MongoDB.Bson.XML"
50+
DiskId ="1" KeyPath="yes" />
51+
</Component>
52+
<Component Id="c_DriverDll" Guid="0A94BBE0-6281-422D-BEE2-5831B06F2D55">
53+
<File Id="f_DriverDll" Name="MongoDB.Driver.dll" Source="$(var.SourceBase)\Driver\bin\Debug\MongoDB.Driver.dll"
54+
DiskId ="1" KeyPath="yes" />
55+
</Component>
56+
<Component Id="c_DriverPdb" Guid="C580837A-9EE9-4C86-97EE-0A8DCBB4794E">
57+
<File Id="f_DriverPdb" Name="MongoDB.Driver.pdb" Source="$(var.SourceBase)\Driver\bin\Debug\MongoDB.Driver.pdb"
58+
DiskId ="1" KeyPath="yes" />
59+
</Component>
60+
<Component Id="c_DriverXml" Guid="9EBD61C3-5365-416F-B345-517B053D9784">
61+
<File Id="f_DriverXml" Name="MongoDB.Driver.XML" Source="$(var.SourceBase)\Driver\bin\Debug\MongoDB.Driver.XML"
62+
DiskId ="1" KeyPath="yes" />
63+
</Component>
64+
</Directory>
65+
</Directory>
66+
</Directory>
67+
</Directory>
68+
69+
<ComponentGroup Id="cg_Bson">
70+
<ComponentRef Id="c_BsonDll"/>
71+
<ComponentRef Id="c_BsonPdb"/>
72+
<ComponentRef Id="c_BsonXml"/>
73+
</ComponentGroup>
74+
75+
<ComponentGroup Id="cg_Driver">
76+
<ComponentGroupRef Id="cg_Bson"/>
77+
<ComponentRef Id="c_DriverDll"/>
78+
<ComponentRef Id="c_DriverPdb"/>
79+
<ComponentRef Id="c_DriverXml"/>
80+
</ComponentGroup>
81+
82+
<Feature Id="ProductFeature"
83+
Title="!(wix.ProductName)"
84+
Description="!(wix.ProductName)"
85+
Level="1">
86+
<ComponentRef Id="c_License"/>
87+
<ComponentRef Id="c_ReleaseNotes"/>
88+
<Feature Id="Bson"
89+
Title ="Bson Library"
90+
Description="The Bson Library"
91+
Level ="1">
92+
<ComponentGroupRef Id="cg_Bson"/>
93+
</Feature>
94+
<Feature Id="Driver"
95+
Title ="Driver Library"
96+
Description="The Bson Library"
97+
Level ="1">
98+
<ComponentGroupRef Id="cg_Driver"/>
99+
</Feature>
100+
<Feature Id="Help"
101+
Title ="Driver Help"
102+
Description="The driver help file"
103+
Level ="100">
104+
<ComponentRef Id="c_Help"/>
105+
</Feature>
106+
107+
<!-- Note: The following ComponentGroupRef is required to pull in generated authoring from project references. -->
108+
<ComponentGroupRef Id="Product.Generated" />
109+
</Feature>
110+
111+
<UIRef Id="WixUI_Mondo" />
112+
<UIRef Id="WixUI_ErrorProgressText" />
113+
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
114+
115+
</Product>
116+
</Wix>

Installer/makeinstaller.bat

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@ECHO OFF
2+
3+
SET Version=1.4.1
4+
SET SourceBase = ..
5+
6+
echo Creating CSharp driver installer v%Version%
7+
pause
8+
9+
echo Cleaning binary directories
10+
rmdir /s /q obj
11+
rmdir /s /q bin
12+
13+
echo Building installer
14+
15+
%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
16+
17+
echo Done Building installer v%Version%

0 commit comments

Comments
 (0)