1<Include xmlns="http://schemas.microsoft.com/wix/2006/wi"
2         xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
3
4<!--
5   Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
6
7   This program is free software; you can redistribute it and/or modify
8   it under the terms of the GNU General Public License as published by
9   the Free Software Foundation; version 2 of the License.
10
11   This program is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with this program; if not, write to the Free Software
18   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19-->
20
21  <!-- Datafiles that installation will copy to CommonAppData (initial database)
22  They are declared Permanent and NeverOverwrite since it is user data -->
23  <DirectoryRef Id='TARGETDIR'>
24    <Directory Id="CommonAppDataFolder">
25      <Directory Id="datadir.mysql" Name="MySQL">
26        <Directory Id="datadir.mysql.mysqlserver"
27          Name="MySQL Server @MAJOR_VERSION@.@MINOR_VERSION@">
28          <Directory Id="DATADIR" Name=".">
29            <Component Id="component.datadir" Guid="d3491319-5dbc-4477-95f3-4f809ef1dd2d">
30              <CreateFolder>
31                <util:PermissionEx User="[LogonUser]" GenericAll="yes" />
32              </CreateFolder>
33            </Component>
34            <Directory Id="datadir.mysql.mysqlserver.data" Name="data">
35              <Directory Id="datadir.mysql.mysqlserver.data.mysql" Name="mysql">
36                <Component Id="component.datadir.mysql"
37                  Guid="19ec0f1f-1a7f-424e-a788-b09346c0a709"
38                  Permanent="yes" NeverOverwrite="yes">
39                  <CreateFolder>
40                    <util:PermissionEx User="[LogonUser]" GenericAll="yes" />
41                  </CreateFolder>
42                  @DATADIR_MYSQL_FILES@
43                </Component>
44              </Directory>
45              <Directory Id="datadir.mysql.mysqlserver.data.performance_schema"
46                 Name="performance_schema">
47                <Component Id="component.datadir.performance_schema"
48                  Guid="af2a6776-2655-431f-a748-9e9f4645acc3"
49                  Permanent="yes" NeverOverwrite="yes">
50                  <CreateFolder>
51                    <util:PermissionEx User="[LogonUser]" GenericAll="yes" />
52                  </CreateFolder>
53                  @DATADIR_PERFORMANCE_SCHEMA_FILES@
54                </Component>
55              </Directory>
56              <Directory Id="datadir.mysql.mysqlserver.data.test" Name="test">
57                <Component Id="component.datadir.test" Guid="52fa9f0a-fcd1-420a-b2ac-95a8f70ad20a">
58                  <CreateFolder/>
59                </Component>
60              </Directory>
61            </Directory>
62          </Directory>
63        </Directory>
64      </Directory>
65    </Directory>
66  </DirectoryRef>
67
68  <Feature Id='UserEditableDataFiles'
69       Title='Server data files'
70       Description='Server data files'
71       ConfigurableDirectory='DATADIR'
72       Level='1'>
73    <ComponentRef Id="component.datadir"/>
74    <ComponentRef Id="component.datadir.mysql"/>
75    <ComponentRef Id="component.datadir.performance_schema"/>
76    <ComponentRef Id="component.datadir.test"/>
77  </Feature>
78</Include>
79
80
81
82