File: mysql_odbc.xml.in

package info (click to toggle)
myodbc 5.1.10-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,984 kB
  • ctags: 2,099
  • sloc: ansic: 33,649; cpp: 1,360; xml: 1,261; sh: 353; makefile: 264; perl: 43
file content (242 lines) | stat: -rw-r--r-- 10,947 bytes parent folder | download | duplicates (2)
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?xml version="1.0" encoding="utf-8" ?>

<!-- *****************************************************************************************
  Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.

  The MySQL Connector/ODBC is licensed under the terms of the GPLv2
  <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
  MySQL Connectors. There are special exceptions to the terms and
  conditions of the GPLv2 as it is applied to this software, see the
  FLOSS License Exception
  <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
  
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published
  by the Free Software Foundation; version 2 of the License.
  
  This program is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  for more details.
  
  You should have received a copy of the GNU General Public License along
  with this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
-->

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <?include myodbc_version.xml ?>
  <!-- *****************************************************************************************
    Product MySQL Server
  -->
  <!-- 
    SetVersion updates: Name, Id, Version. Do not change them manually.
  -->

  <Product Id="@CONNECTOR_PKG_ID1@" UpgradeCode="FF073FBB-32E2-4052-B6B2-830C5ED4A809"
    Name="MySQL Connector/ODBC $(var.odbc_ver_short)" Version="$(var.odbc_ver_long)" Language="1033" Manufacturer="Oracle Corporation">

  <!-- *****************************************************************************************
    Package
  -->
  <!-- 
    SetVersion updates: Id. Do not change it manually.
  -->
    <?if $(var.odbc_64bit) = 1 ?>
    <?define odbc_platform="x64" ?>
    <?else ?>
    <?define odbc_platform="x86" ?>
    <?endif ?>

    <Package Id="@CONNECTOR_PKG_ID2@" Keywords="Installer,MSI,Database" 
      Description="MySQL Connector/ODBC" Manufacturer="Oracle Corporation"
      InstallerVersion="200" Platform="$(var.odbc_platform)"
      Languages="1033" SummaryCodepage="1252" Compressed='yes' />
    <?include mysql-connector-odbc-msi-arpprops.xml ?>

    <!-- *****************************************************************************************
      Custom Actions
    -->

    <CustomAction Id="NewerVersionInstalled" Error="A newer version of this product is already installed." />

    <!-- *****************************************************************************************
      Upgrade Information
    -->

    <Upgrade Id="FF073FBB-32E2-4052-B6B2-830C5ED4A809">
      <!-- !!!SetVersion updates: Minimum, Maximum -->
      <UpgradeVersion Property="PREVIOUSVERSIONINSTALLED" Minimum="5.0.999" Maximum="$(var.odbc_ver_prev)" IncludeMaximum="yes"
        IncludeMinimum="yes"  />
      <!-- !!!SetVersion updates: Minimum, Maximum -->
      <UpgradeVersion Property="NEWERPRODUCTFOUND" Minimum="$(var.odbc_ver_long)" Maximum="$(var.odbc_ver_short).999" OnlyDetect="yes" 
        IncludeMinimum="no" />
    </Upgrade>

    <!-- *****************************************************************************************
      CAB file
    -->

    <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />

    <!-- *****************************************************************************************
      Registry entries
    -->

    <?if $(var.odbc_64bit) = 1 ?>
      <DirectoryRef Id="ProgramFiles64Folder">
      <Component Id="RegKeys" Guid="92FEC72B-EB44-4E4D-B301-A915C80D067B" DiskId="1" Win64="yes">
    <?else ?>
      <DirectoryRef Id="ProgramFilesFolder">
      <Component Id="RegKeys" Guid="AECCA4A7-9405-466A-8393-4F0876DCD21A" DiskId="1">
    <?endif ?>
        <RegistryKey Id="MysqlKey" Root="HKLM" Key="SOFTWARE\MySQL AB\[ProductName]" 
                  Action="createAndRemoveOnUninstall"/>
        <RegistryValue Id="Version" Root="HKLM" Key="SOFTWARE\MySQL AB\[ProductName]" 
                  Name="Version" Type="string" Value="[ProductVersion]"/>
    <!--Need these to make candle happy -->  
    <?if $(var.odbc_64bit) = 1 ?>
      </Component>
      </DirectoryRef>
    <?else ?>
      </Component>
      </DirectoryRef>
    <?endif ?>

    <!-- *****************************************************************************************
      Installation Features
    -->

    <!-- *****************************************************************************************
      Product Feature
    -->

    <?if $(var.odbc_64bit) = 1 ?>
    <Feature Id="ODBC" Title="MySQL Connector/ODBC $(var.odbc_ver_long) 64-bit" Level="1" Description="Installs the MySQL ODBC $(var.odbc_ver_long) 64-bit driver."  ConfigurableDirectory="INSTALLDIR">
    <?else ?>
    <Feature Id="ODBC" Title="MySQL Connector/ODBC $(var.odbc_ver_long) 32-bit" Level="1" Description="Installs the MySQL ODBC $(var.odbc_ver_long) 32-bit driver."  ConfigurableDirectory="INSTALLDIR">
    <?endif ?>
      <ComponentRef Id="RegKeys" />
      <ComponentRef Id="lib" />
      <ComponentRef Id="driver" />
      <ComponentRef Id="setup" />
      <ComponentRef Id="installer" />
    <?if $(var.odbc_64bit) = 1 ?>
    </Feature>
    <?else ?>
    </Feature>
    <?endif ?>

    <!--Feature Id="Help" Title="MySQL Connector/ODBC $(var.odbc_ver_long) Documentation" Level="1" Description="Installs the MySQL ODBC driver help.">
        <ComponentRef Id="help" />
    </Feature-->

    <!-- *****************************************************************************************
      End of Feature
    -->

    <!-- *****************************************************************************************
      Include UI
    -->

    <?include mysql_common_ui.xml ?>
    
    <!-- *****************************************************************************************
      Properties
    -->

    <Property Id="_IsMaintenance">Change</Property>
        
    <Property Id="AgreeToLicense">No</Property>
    <Property Id="ApplicationUsers">AllUsers</Property> 
    <Property Id="ALLUSERS">1</Property> <!--per-machine installation -->   
       
    <Property Id="INSTALLLEVEL">1</Property>    
                     
    <Property Id="ProgressType3">installs</Property>
    <Property Id="ProgressType2">installed</Property>
    <Property Id="ProgressType1">Installing</Property>
    <Property Id="ProgressType0">install</Property>
    
    <Property Id="QualifiedProductName">MySQL Connector/ODBC $(var.odbc_ver_long)</Property>
    <Property Id="InstallationDirectory">MySQL Connector-ODBC</Property>
    
    <Property Id="ReinstallFileVersion">o</Property>
    <Property Id="RebootYesNo">Yes</Property>
    <Property Id="ReinstallModeText">omus</Property>
    <Property Id="ReinstallRepair">r</Property>

    <Property Id="SetupType">Typical</Property>
    <Property Id="ConfigureServer">1</Property>

    <!-- The Guid has to be the same as in the mysql_odbc_fragment.xml -->
    <Property Id="SVRCNFWIZINSTALLED"><ComponentSearch Id="SvrCnfWizCompSearch"
      Guid="782B3E4D-FCB1-42F4-BF45-06C159A49A0D" /></Property>

    <!-- *****************************************************************************************
      Admin UI Sequence
    -->

    <AdminUISequence>
      <Show Dialog="SetupCompleteErrorDialog" OnExit="error" />
      <Show Dialog="SetupInterruptedDialog" OnExit="cancel" />
      <Show Dialog="SetupCompleteSuccessDialog" OnExit="success" />

      <Show Dialog="SetupInitializationDialog" Before="CostInitialize" />
      <Show Dialog="AdminWelcomeDialog" After="CostFinalize" />
      <Show Dialog="SetupProgressDialog" After="AdminWelcomeDialog" />
    </AdminUISequence>

    <!-- *****************************************************************************************
      Install Execute Sequence
    -->

    <InstallExecuteSequence>
      <Custom Action="NewerVersionInstalled" After="FindRelatedProducts">NEWERPRODUCTFOUND</Custom> 

      <RemoveExistingProducts After="InstallInitialize"/>
      <SetODBCFolders Suppress="yes" />
    </InstallExecuteSequence>

    <!-- *****************************************************************************************
      Install UI Sequence
    -->

    <InstallUISequence>
      <Show Dialog="SetupCompleteErrorDialog" OnExit="error" />
      <Show Dialog="SetupInterruptedDialog" OnExit="cancel" />
      <Show Dialog="SetupCompleteSuccessDialog" OnExit="success" />
      
      <Custom Action="NewerVersionInstalled" After="FindRelatedProducts">NEWERPRODUCTFOUND</Custom>                   
      <Show Dialog="InstallWelcomeDialog" After="MigrateFeatureStates">Not Installed And (Not PATCH Or IS_MAJOR_UPGRADE)</Show>
      <Show Dialog="SetupResumeDialog" After="InstallWelcomeDialog">Installed And (RESUME Or Preselected) And Not PATCH</Show>
      <Show Dialog="MaintenanceWelcomeDialog" After="SetupResumeDialog">Installed And Not RESUME And Not Preselected And Not PATCH</Show>
      <Show Dialog="SetupProgressDialog" After="MaintenanceWelcomeDialog" />  
    </InstallUISequence>

    <!-- *****************************************************************************************
      Binary files
    -->

    <Binary Id="AdminBackground" SourceFile="$(var.odbc_resource)/ConnBackground.jpg" />
    <Binary Id="AdminHeader" SourceFile="$(var.odbc_resource)/ConnHeader.jpg" />     
    <Binary Id="SetupTypeComp" SourceFile="$(var.odbc_resource)/setup_type_complete.ico" />     
    <Binary Id="SetupTypeCust" SourceFile="$(var.odbc_resource)/setup_type_custom.ico" />  
    <Binary Id="SetupTypeTyp" SourceFile="$(var.odbc_resource)/setup_type_typical.ico" />  
    <Binary Id="DestDirFolder" SourceFile="$(var.odbc_resource)/dest_dir_folder.ico" />

    <Binary Id="NewBinary2" SourceFile="$(var.odbc_resource)/binary/binary2" />     
    <Binary Id="NewBinary3" SourceFile="$(var.odbc_resource)/binary/binary3" />     
    <Binary Id="NewBinary4" SourceFile="$(var.odbc_resource)/binary/binary4" />
    <Binary Id="NewBinary6" SourceFile="$(var.odbc_resource)/binary/binary6" />
    <Binary Id="NewBinary7" SourceFile="$(var.odbc_resource)/binary/binary7" />
    <Binary Id="NewBinary8" SourceFile="$(var.odbc_resource)/binary/binary8" />
    <Binary Id="NewBinary9" SourceFile="$(var.odbc_resource)/binary/binary9" />  
    <Binary Id="NewBinary13" SourceFile="$(var.odbc_resource)/binary/binary13" />
    <Binary Id="NewBinary14" SourceFile="$(var.odbc_resource)/binary/binary14" />    
    <Binary Id="NewBinary16" SourceFile="$(var.odbc_resource)/binary/binary16" />
    <Binary Id="NewBinary17" SourceFile="$(var.odbc_resource)/binary/binary17" />
    <Binary Id="NewBinary18" SourceFile="$(var.odbc_resource)/binary/binary18" />
  </Product>
</Wix>