summaryrefslogtreecommitdiff
path: root/src/mongo/installer/msi/wxs/FeatureFragment.wxs
blob: 1bdbd95d20fe79301c368997add75e26bb5d5057 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Fragment>
    <?if $(var.Edition) = Enterprise ?>
      <WixVariable Id="MiscToolsDesc" Value="Miscellaneous MongoDB tools (mongodecrypt, mongoldap)" />
    <?else?>
      <WixVariable Id="MiscToolsDesc" Value="Miscellaneous MongoDB tools" />
    <?endif?>
    <FeatureGroup Id="fg_MongoDBAll">
      <Feature Id="ProductFeature"
               Title="!(wix.ProductName)"
               Description="!(wix.ProductName)"
               Level="1"
               ConfigurableDirectory="INSTALLLOCATION">
        <?if $(var.Edition) = Enterprise or $(var.Edition) = SSL ?>
          <MergeRef Id="m_vcredist"/>
        <?endif?>
        <ComponentGroupRef Id="cg_License" />
        <Feature Id="Server"
                 Title ="Server"
                 Description="The MongoDB server (mongod)"
                 Level ="1">
        </Feature>
        <Feature Id="ServerNoService"
                 Title ="ServerNoService"
                 Description="The MongoDB server (mongod)"
                 Display="hidden"
                 Level ="32767">
             <ComponentRef Id="c_mongod"/>
             <ComponentRef Id="c_mongodPdb"/>
             <ComponentRef Id="c_mongodCfg"/>

             <?if $(var.Edition) = Enterprise ?>
               <ComponentGroupRef Id="cg_EnterpriseServer" />
             <?endif ?>
        </Feature>
        <Feature Id="ServerService"
                 Title ="ServerService"
                 Description="The MongoDB server (mongod)"
                 Display="hidden"
                 Level ="32767">
             <ComponentRef Id="c_mongodWithService"/>
             <ComponentRef Id="c_mongodWithServiceUser" />
             <ComponentRef Id="c_MONGO_DATA_PATH"/>
             <ComponentRef Id="c_MONGO_LOG_PATH"/>
             <ComponentRef Id="c_mongodPdb"/>
             <ComponentRef Id="c_mongodCfg"/>

             <?if $(var.Edition) = Enterprise ?>
               <ComponentGroupRef Id="cg_EnterpriseServer" />
             <?endif ?>
        </Feature>
        <Feature Id="Client"
                 Title ="Client"
                 Description="The MongoDB client/shell (mongo)"
                 Level ="1">
          <ComponentRef Id="c_mongo"/>
          <?if $(var.Edition) = Enterprise ?>
            <ComponentGroupRef Id="cg_EnterpriseBase" />
          <?endif ?>
        </Feature>
        <Feature Id="Router"
                 Title ="Router"
                 Description="The MongoDB Router (mongos)"
                 Level ="1">
          <ComponentRef Id="c_mongos"/>
          <ComponentRef Id="c_mongosPdb"/>
          <?if $(var.Edition) = Enterprise ?>
            <ComponentGroupRef Id="cg_EnterpriseBase" />
          <?endif ?>
        </Feature>
        <Feature Id="MiscellaneousTools"
                Title ="Miscellaneous Tools"
                Description="!(wix.MiscToolsDesc)"
                Level ="1">
          <?if $(var.Edition) = Enterprise ?>
            <ComponentGroupRef Id="cg_EnterpriseBase" />
            <ComponentRef Id="c_mongodecrypt"/>
            <ComponentRef Id="c_mongokerberos"/>
            <ComponentRef Id="c_mongoldap"/>
          <?endif ?>
        </Feature>
        <?if $(var.Edition) = Enterprise ?>
        <Feature Id="MongoCryptD"
                Title ="MongoCryptD"
                Description="MongoDB Field Level Encryption Daemon"
                Level ="1">
          <ComponentRef Id="c_mongocryptd"/>
          <ComponentRef Id="c_mongocryptdPdb"/>
        </Feature>
        <?endif ?>
      </Feature>
    </FeatureGroup>

    <!-- This feature only includes the powershell script in installation. WIX
         requires all components to have a feature and the component is required
         to bundle the script in the MSI. Display is set to hidden because this
         feature does not enable or disable anything. -->
    <Feature Id="InstallCompassFeature" Display="hidden">
      <ComponentRef Id="InstallCompass" />
    </Feature>
  </Fragment>
</Wix>