forked from mongodb/mongo-csharp-driver
/
Product.wxs
executable file
·148 lines (135 loc) · 6.8 KB
/
Product.wxs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="184bee72-2f1b-4800-9d48-1f3dc3c5a607"
Name="!(wix.ProductName)"
Language="1033"
Version="$(var.DriverVersion)"
Manufacturer="10gen Inc."
UpgradeCode="8fcd3593-c858-4a8d-8f8e-031b50530e95">
<Package InstallerVersion="200" Compressed="yes" />
<WixVariable Id="ProductShortName" Value="CSharpDriver $(var.DriverVersion)" />
<WixVariable Id="ProductName" Value="MongoDB CSharpDriver $(var.DriverVersion)" />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<WixVariable Id="WixUIDialogBmp" Value="Dialog.bmp" />
<WixVariable Id="WixUIBannerBmp" Value="Banner.bmp" />
<WixVariable Id="WixUIInfoIco" Value="Installer_Icon_32x32.ico" />
<WixVariable Id="WixUIExclamationIco" Value="Installer_Icon_32x32.ico" />
<WixVariable Id="WixUINewIco" Value="Installer_Icon_16x16.ico" />
<WixVariable Id="WixUIUpIco" Value="Installer_Icon_16x16.ico" />
<WixVariable Id="WixUILicenseRtf" Value="$(var.SourceBase)\License.rtf" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="MONGODB" Name="MongoDB">
<Directory Id="INSTALLDIR" Name="!(wix.ProductShortName)" />
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="MongoDBProgramsFolder" Name="MongoDB">
<Directory Id="CSharpDriverProgramsFolder" Name="!(wix.ProductShortName)" />
</Directory>
</Directory>
</Directory>
<DirectoryRef Id="CSharpDriverProgramsFolder">
<Component Id="c_ReleaseNotesShortCut" Guid="0D00A9A7-03C4-466F-A3B8-C1CC8456ACC6">
<Shortcut Id="f_ReleaseNotesShortCut"
Name="Release Notes"
Description="Release notes for MongoDB C#/.Net Driver"
Target="[INSTALLDIR]$(var.ReleaseNotes).txt"
WorkingDirectory="INSTALLDIR"
Directory="CSharpDriverProgramsFolder"/>
<RemoveFolder Id="r_CSharpDriverProgramsFolder" Directory="CSharpDriverProgramsFolder" On="uninstall" />
<RemoveFolder Id="r_MongoDBProgramsFolder" Directory="MongoDBProgramsFolder" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\MongoDB" Name="releasenotesinstalled" Type="integer" Value="1" KeyPath="yes"/>
</Component>
<Component Id="c_HelpShortCut" Guid="B256E367-EA97-48C5-A546-49F4A0803682">
<Shortcut Id="f_HelpShortCut"
Name="Help"
Description="Help for !(WixProductName)"
Target="[INSTALLDIR]CSharpDriverDocs.chm"
WorkingDirectory="INSTALLDIR"/>
<RegistryValue Root="HKCU" Key="Software\MongoDB" Name="helpinstalled" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="INSTALLDIR">
<Component Id="c_License" Guid="7901999A-6026-4321-8584-ECB67D424221">
<File Id="f_License" Name="License.rtf" Source="$(var.SourceBase)\License.rtf"
DiskId ="1" KeyPath="yes" />
</Component>
<Component Id="c_ReleaseNotes" Guid="115F1B08-8A38-435A-BBB0-0C0DED5ACB31">
<File Id="f_ReleaseNotes" Name="$(var.ReleaseNotes).txt" Source="$(var.SourceBase)\Release Notes\$(var.ReleaseNotes).md"
DiskId ="1" KeyPath="yes" />
</Component>
<Component Id="c_Help" Guid="CC3F9A2F-1C43-48CA-B998-D03C15181DD3">
<File Id="f_Help" Name="CSharpDriverDocs.chm" Source="$(var.SourceBase)\Help\CSharpDriverDocs.chm"
DiskId ="1" KeyPath="yes" />
</Component>
<Component Id="c_BsonDll" Guid="13DA8DD9-1AD1-46BF-971A-78FA499F281D">
<File Id="f_BsonDll" Name="MongoDB.Bson.dll" Source="$(var.SourceBase)\Bson\bin\$(var.Configuration)\MongoDB.Bson.dll"
DiskId ="1" KeyPath="yes" />
</Component>
<Component Id="c_BsonPdb" Guid="AC6CE1A0-1584-42E6-B9FB-765F34A44745">
<File Id="f_BsonPdb" Name="MongoDB.Bson.pdb" Source="$(var.SourceBase)\Bson\bin\$(var.Configuration)\MongoDB.Bson.pdb"
DiskId ="1" KeyPath="yes" />
</Component>
<Component Id="c_BsonXml" Guid="ED71DBCD-5A02-4AC0-88E4-C793F5FBEDA8">
<File Id="f_BsonXml" Name="MongoDB.Bson.xml" Source="$(var.SourceBase)\Bson\bin\$(var.Configuration)\MongoDB.Bson.XML"
DiskId ="1" KeyPath="yes" />
</Component>
<Component Id="c_DriverDll" Guid="0A94BBE0-6281-422D-BEE2-5831B06F2D55">
<File Id="f_DriverDll" Name="MongoDB.Driver.dll" Source="$(var.SourceBase)\Driver\bin\$(var.Configuration)\MongoDB.Driver.dll"
DiskId ="1" KeyPath="yes" />
</Component>
<Component Id="c_DriverPdb" Guid="C580837A-9EE9-4C86-97EE-0A8DCBB4794E">
<File Id="f_DriverPdb" Name="MongoDB.Driver.pdb" Source="$(var.SourceBase)\Driver\bin\$(var.Configuration)\MongoDB.Driver.pdb"
DiskId ="1" KeyPath="yes" />
</Component>
<Component Id="c_DriverXml" Guid="9EBD61C3-5365-416F-B345-517B053D9784">
<File Id="f_DriverXml" Name="MongoDB.Driver.XML" Source="$(var.SourceBase)\Driver\bin\$(var.Configuration)\MongoDB.Driver.XML"
DiskId ="1" KeyPath="yes" />
</Component>
</DirectoryRef>
<ComponentGroup Id="cg_Bson">
<ComponentRef Id="c_BsonDll"/>
<ComponentRef Id="c_BsonPdb"/>
<ComponentRef Id="c_BsonXml"/>
</ComponentGroup>
<ComponentGroup Id="cg_Driver">
<ComponentGroupRef Id="cg_Bson"/>
<ComponentRef Id="c_DriverDll"/>
<ComponentRef Id="c_DriverPdb"/>
<ComponentRef Id="c_DriverXml"/>
</ComponentGroup>
<Feature Id="ProductFeature"
Title="!(wix.ProductName)"
Description="!(wix.ProductName)"
Level="1"
ConfigurableDirectory="INSTALLDIR">
<ComponentRef Id="c_License"/>
<ComponentRef Id="c_ReleaseNotes"/>
<ComponentRef Id="c_ReleaseNotesShortCut"/>
<Feature Id="Bson"
Title ="Bson Library"
Description="The Bson Library"
Level ="1">
<ComponentGroupRef Id="cg_Bson"/>
</Feature>
<Feature Id="Driver"
Title ="Driver Library"
Description="The Bson Library"
Level ="1">
<ComponentGroupRef Id="cg_Driver"/>
</Feature>
<Feature Id="Help"
Title ="Driver Help"
Description="The driver help file"
Level ="1">
<ComponentRef Id="c_Help"/>
<ComponentRef Id="c_HelpShortCut"/>
</Feature>
<!-- Note: The following ComponentGroupRef is required to pull in generated authoring from project references. -->
<ComponentGroupRef Id="Product.Generated" />
</Feature>
<UIRef Id="WixUI_Mondo" />
<UIRef Id="WixUI_ErrorProgressText" />
</Product>
</Wix>