File: mysql_odbc.xml

package info (click to toggle)
myodbc 5.1.6-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,096 kB
  • ctags: 2,202
  • sloc: ansic: 31,914; sh: 10,400; cpp: 3,472; xml: 1,328; makefile: 389; perl: 43
file content (220 lines) | stat: -rw-r--r-- 10,246 bytes parent folder | download
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
<?xml version="1.0" encoding="utf-8" ?>
<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="29042B1C-0713-4575-B7CA-5C8E7B0899D4" UpgradeCode="FF073FBB-32E2-4052-B6B2-830C5ED4A809"
    Name="MySQL Connector/ODBC $(var.odbc_ver_short)" Version="$(var.odbc_ver_long)" Language="1033" Manufacturer="MySQL AB">

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

    <Package Keywords="Installer,MSI,Database" 
      Description="MySQL Connector/ODBC" Manufacturer="MySQL AB"
      InstallerVersion="200" Platforms="$(var.odbc_platform)"
      Languages="1033" SummaryCodepage="1252" Compressed='yes' />

    <!-- *****************************************************************************************
      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="no"
        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
    -->

    <DirectoryRef Id="ProgramFilesFolder">
      <Component Id="RegKeys32" Guid="AECCA4A7-9405-466A-8393-4F0876DCD21A" DiskId="1">
        <RegistryKey Id="MysqlKey32" Root="HKLM" Key="SOFTWARE\MySQL AB\[ProductName]" 
                  Action="createAndRemoveOnUninstall"/>
	<RegistryValue Id="Version32" Root="HKLM" Key="SOFTWARE\MySQL AB\[ProductName]" 
		  Name="Version" Type="string" Value="[ProductVersion]"/>
      </Component>
    </DirectoryRef>

    <?if $(var.odbc_64bit) = 1 ?>
    <DirectoryRef Id="ProgramFiles64Folder">
      <Component Id="RegKeys64" Guid="92FEC72B-EB44-4E4D-B301-A915C80D067B" DiskId="1" Win64="yes">
        <RegistryKey Id="MysqlKey64" Root="HKLM" Key="SOFTWARE\MySQL AB\[ProductName]" 
                  Action="createAndRemoveOnUninstall"/>
	<RegistryValue Id="Version64" Root="HKLM" Key="SOFTWARE\MySQL AB\[ProductName]" 
		  Name="Version" Type="string" Value="[ProductVersion]"/>
      </Component>
    </DirectoryRef>
    <?endif ?>

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

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

    <Feature Id="ODBC_32" Title="MySQL Connector/ODBC $(var.odbc_ver_long) 32-bit" Level="1" Description="Installs the MySQL ODBC $(var.odbc_ver_long) 32-bit driver.">
      <ComponentRef Id="RegKeys32" />
      <ComponentRef Id="lib_32" />
      <ComponentRef Id="driver_32" />
      <ComponentRef Id="setup_32" />
      <ComponentRef Id="installer_32" />
    </Feature>

    <?if $(var.odbc_64bit) = 1 ?>
    <Feature Id="ODBC_64" Title="MySQL Connector/ODBC $(var.odbc_ver_long) 64-bit" Level="1" Description="Installs the MySQL ODBC $(var.odbc_ver_long) 64-bit driver.">
      <ComponentRef Id="RegKeys64" />
      <ComponentRef Id="lib_64" />
      <ComponentRef Id="driver_64" />
      <ComponentRef Id="setup_64" />
      <ComponentRef Id="installer_64" />
    </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="ARPPRODUCTICON">MySQLConnector.ico</Property>
    <Property Id="ARPURLUPDATEINFO">http://dev.mysql.com/</Property>    
    <Property Id="ARPURLINFOABOUT">http://www.mysql.com</Property>
       
    <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"/>
    </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>