|
9 | 9 |
|
10 | 10 | <Package Compressed="yes" InstallerVersion="200"
|
11 | 11 | Description="$(var.ProductName) Installer"
|
12 |
| - Comments="Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved." |
| 12 | + Comments="Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved." |
13 | 13 | InstallScope="perMachine"
|
14 | 14 | Platform="$(var.Platform)"/>
|
15 | 15 |
|
16 |
| - <Property Id="PREVIOUSVERSIONSINSTALLED36" Secure="yes" /> |
17 |
| - <Property Id="PREVIOUSVERSIONSINSTALLED37" Secure="yes" /> |
18 |
| - <Property Id="PREVIOUSVERSIONSINSTALLED38" Secure="yes" /> |
19 |
| - <Property Id="PREVIOUSVERSIONSINSTALLED39" Secure="yes" /> |
20 |
| - <Property Id="PREVIOUSVERSIONSINSTALLED310" Secure="yes" /> |
21 |
| - <Property Id="PREVIOUSVERSIONSINSTALLED311" Secure="yes" /> |
22 |
| - |
23 |
| - <Upgrade Id="c4142c28-7de9-11e7-b269-5ce0c50b9cbc"> |
24 |
| - <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes" |
25 |
| - Minimum="1.0.0" |
26 |
| - Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)" |
27 |
| - Property="PREVIOUSVERSIONSINSTALLED36"/> |
28 |
| - </Upgrade> |
29 |
| - <Upgrade Id="212eea22-7fa3-11e8-81b7-37e66f6c3ce1"> |
30 |
| - <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes" |
31 |
| - Minimum="1.0.0" |
32 |
| - Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)" |
33 |
| - Property="PREVIOUSVERSIONSINSTALLED37"/> |
34 |
| - </Upgrade> |
35 |
| - <Upgrade Id="29739579-22ec-4df7-905f-05ca0d778c41"> |
36 |
| - <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes" |
37 |
| - Minimum="1.0.0" |
38 |
| - Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)" |
39 |
| - Property="PREVIOUSVERSIONSINSTALLED38"/> |
40 |
| - </Upgrade> |
41 |
| - <Upgrade Id="180e8431-7c58-4b72-b206-c6d7bd5487d6"> |
42 |
| - <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes" |
43 |
| - Minimum="1.0.0" |
44 |
| - Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)" |
45 |
| - Property="PREVIOUSVERSIONSINSTALLED39"/> |
46 |
| - </Upgrade> |
47 |
| - <Upgrade Id="a0b2ca29-5516-4cb1-a076-178068896350"> |
48 |
| - <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes" |
49 |
| - Minimum="1.0.0" |
50 |
| - Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)" |
51 |
| - Property="PREVIOUSVERSIONSINSTALLED310"/> |
52 |
| - </Upgrade> |
53 |
| - <Upgrade Id="9b50203f-fa8d-4397-b8a4-391b1b89072a"> |
54 |
| - <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes" |
55 |
| - Minimum="1.0.0" |
56 |
| - Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)" |
57 |
| - Property="PREVIOUSVERSIONSINSTALLED311"/> |
58 |
| - </Upgrade> |
59 |
| - |
60 | 16 | <!-- Obtain location of the Python interpreters installed on the system-->
|
61 | 17 |
|
62 |
| - <!-- Python 3.7 --> |
63 |
| - <Property Id="PYTHON37INSTALLPATH_ALL"> |
64 |
| - <?if "$(var.Platform)"="x64" ?> |
65 |
| - <RegistrySearch Id="Python37InstallPathAll64" Root="HKLM" Type="raw" |
66 |
| - Key="Software\Python\PythonCore\3.7\InstallPath" Win64="yes"/> |
67 |
| - <?else?> |
68 |
| - <!-- Starting from python 3.5, 32bit Python install has a '-32' in its InstallPath reg key path --> |
69 |
| - <RegistrySearch Id="Python37InstallPathAll32" Root="HKLM" Type="raw" |
70 |
| - Key="Software\Python\PythonCore\3.7-32\InstallPath" Win64="no"/> |
71 |
| - <?endif?> |
72 |
| - </Property> |
73 |
| - <Property Id="PYTHON37INSTALLPATH_CURRENT"> |
74 |
| - <?if "$(var.Platform)"="x64" ?> |
75 |
| - <RegistrySearch Id="Python37InstallPathCurrent64" Root="HKCU" Type="raw" |
76 |
| - Key="Software\Python\PythonCore\3.7\InstallPath" Win64="yes"/> |
77 |
| - <?else?> |
78 |
| - <!-- Starting from python 3.5, 32bit Python install has a '-32' in its InstallPath reg key path --> |
79 |
| - <RegistrySearch Id="Python37InstallPathCurrent32" Root="HKCU" Type="raw" |
80 |
| - Key="Software\Python\PythonCore\3.7-32\InstallPath" Win64="no"/> |
81 |
| - <?endif?> |
82 |
| - </Property> |
83 |
| - |
84 | 18 | <!-- Python 3.8 -->
|
85 | 19 | <Property Id="PYTHON38INSTALLPATH_ALL">
|
86 | 20 | <?if "$(var.Platform)"="x64" ?>
|
|
170 | 104 | </Property>
|
171 | 105 |
|
172 | 106 | <Condition Message="We are unable to locate any supported Python version like Python v$(var.PythonVersion) $(var.Platform) edition. We only support Python installed using the Microsoft Windows Installer (MSI or EXE) downloaded from http://www.python.org/download/. Please check the Connector/Python manual on http://dev.mysql.com/doc/ for more information.">
|
173 |
| - Installed OR PYTHON37INSTALLPATH_ALL OR PYTHON37INSTALLPATH_CURRENT OR PYTHON38INSTALLPATH_ALL OR PYTHON38INSTALLPATH_CURRENT OR PYTHON39INSTALLPATH_ALL OR PYTHON39INSTALLPATH_CURRENT OR PYTHON310INSTALLPATH_ALL OR PYTHON310INSTALLPATH_CURRENT OR PYTHON311INSTALLPATH_ALL OR PYTHON311INSTALLPATH_CURRENT |
| 107 | + Installed OR PYTHON38INSTALLPATH_ALL OR PYTHON38INSTALLPATH_CURRENT OR PYTHON39INSTALLPATH_ALL OR PYTHON39INSTALLPATH_CURRENT OR PYTHON310INSTALLPATH_ALL OR PYTHON310INSTALLPATH_CURRENT OR PYTHON311INSTALLPATH_ALL OR PYTHON311INSTALLPATH_CURRENT |
174 | 108 | </Condition>
|
175 | 109 |
|
176 | 110 | <Media Id="1" Cabinet="ConnectorPython_Python.cab" EmbedCab="yes"/>
|
177 | 111 |
|
178 | 112 | <!-- Definition of the folders used by the installed files-->
|
179 | 113 | <Directory Id="TARGETDIR" Name="SourceDir">
|
180 | 114 |
|
181 |
| - <Directory Id="INSTALLDIRP37" Name="Python37"> |
182 |
| - <Directory Id="PythonLibDir37" Name="Lib"> |
183 |
| - <Directory Id="SitePackagesDir37" Name="site-packages"> |
184 |
| - <Directory Id="EggInfoDir37" Name="mysql_connector_python-$(var.FullVersion)-py3.7.egg-info"/> |
185 |
| - <Directory Id="MySQLXPackageDir37" Name="mysqlx"> |
186 |
| - <Directory Id="MySQLXPB2Dir37" Name="protobuf"/> |
187 |
| - <Directory Id="MySQLXLocalesDir37" Name="locales"> |
188 |
| - <Directory Id="MySQLXLocalesEngDir37" Name="eng"/> |
189 |
| - </Directory> |
190 |
| - </Directory> |
191 |
| - <Directory Id="MySQLPackageDir37" Name="mysql"> |
192 |
| - <Directory Id="VendorDir37" Name="vendor"> |
193 |
| - <Directory Id="VendorPluginDir37" Name="plugin"/> |
194 |
| - </Directory> |
195 |
| - <Directory Id="ConnectorPackageDir37" Name="connector"> |
196 |
| - <Directory Id="ConnectorPluginsDir37" Name="plugins"/> |
197 |
| - <Directory Id="DjangoDir37" Name="django"/> |
198 |
| - <Directory Id="ConnectorLocalesDir37" Name="locales"> |
199 |
| - <Directory Id="LocalesEngDir37" Name="eng"/> |
200 |
| - </Directory> |
201 |
| - </Directory> |
202 |
| - </Directory> |
203 |
| - </Directory> |
204 |
| - </Directory> |
205 |
| - </Directory> |
206 |
| - |
207 | 115 | <Directory Id="INSTALLDIRP38" Name="Python38">
|
208 | 116 | <Directory Id="PythonLibDir38" Name="Lib">
|
209 | 117 | <Directory Id="SitePackagesDir38" Name="site-packages">
|
|
377 | 285 | <ComponentRef Id="MyConnPyExamples"/>
|
378 | 286 | </Feature>
|
379 | 287 |
|
380 |
| - <!-- Python 3.7 --> |
381 |
| - <?if $(var.BDist37) != "" ?> |
382 |
| - <Feature Id="Python37" Title="C/py for Python 3.7" Level="1" |
383 |
| - ConfigurableDirectory ="INSTALLDIRP37" Absent="allow"> |
384 |
| - <Condition Level='0'>Not PYTHON37INSTALLPATH_ALL AND Not PYTHON37INSTALLPATH_CURRENT AND Not Installed</Condition> |
385 |
| - <ComponentRef Id="EggInfo37"/> |
386 |
| - <ComponentRef Id="MySQLPackage37"/> |
387 |
| - <?if $(var.HaveCExt37) = 1 ?> |
388 |
| - <ComponentRef Id="Vendor37"/> |
389 |
| - <ComponentRef Id="VendorPlugin37"/> |
390 |
| - <?endif?> |
391 |
| - <ComponentRef Id="ConnectorPackage37"/> |
392 |
| - <ComponentRef Id="ConnectorPlugins37"/> |
393 |
| - <ComponentRef Id="ConnectorLocales37"/> |
394 |
| - <ComponentRef Id="LocalesEng37"/> |
395 |
| - <ComponentRef Id="DjangoBackend37"/> |
396 |
| - <ComponentRef Id="MySQLXPackage37"/> |
397 |
| - <ComponentRef Id="MySQLXPackagePB237"/> |
398 |
| - <ComponentRef Id="MySQLXLocales37"/> |
399 |
| - <ComponentRef Id="MySQLXLocalesEng37"/> |
400 |
| - <?if $(var.HaveCExt37) = 1 ?> |
401 |
| - <ComponentRef Id="CExtension37"/> |
402 |
| - <?endif?> |
403 |
| - </Feature> |
404 |
| - <?endif?> |
405 |
| - |
406 | 288 | <!-- Python 3.8 -->
|
407 | 289 | <?if $(var.BDist38) != "" ?>
|
408 | 290 | <Feature Id="Python38" Title="C/py for Python 3.8" Level="1"
|
|
508 | 390 | <?endif?>
|
509 | 391 | </Feature>
|
510 | 392 |
|
511 |
| - <!-- Python 3.7 --> |
512 |
| - <CustomAction Id="SetInstallDirCurrentP37" Property="INSTALLDIRP37" Value="[PYTHON37INSTALLPATH_CURRENT]"/> |
513 |
| - <CustomAction Id="SetInstallDirAllP37" Property="INSTALLDIRP37" Value="[PYTHON37INSTALLPATH_ALL]"/> |
514 |
| - <CustomAction Id="ErrDebug37" Error="Installdir: [INSTALLDIRP37]"/> |
515 |
| - |
516 | 393 | <!-- Python 3.8 -->
|
517 | 394 | <CustomAction Id="SetInstallDirCurrentP38" Property="INSTALLDIRP38" Value="[PYTHON38INSTALLPATH_CURRENT]"/>
|
518 | 395 | <CustomAction Id="SetInstallDirAllP38" Property="INSTALLDIRP38" Value="[PYTHON38INSTALLPATH_ALL]"/>
|
|
543 | 420 | <InstallExecuteSequence>
|
544 | 421 | <Custom Action="PreventDowngrading" After="FindRelatedProducts">NEWPRODUCTFOUND</Custom>
|
545 | 422 | <RemoveExistingProducts After="InstallInitialize" />
|
546 |
| - <!-- Python 3.7 --> |
547 |
| - <Custom Action="SetInstallDirCurrentP37" After="AppSearch">NOT Installed AND PYTHON37INSTALLPATH_CURRENT</Custom> |
548 |
| - <Custom Action="SetInstallDirAllP37" After="AppSearch">NOT Installed AND PYTHON37INSTALLPATH_ALL</Custom> |
549 | 423 | <!-- Python 3.8 -->
|
550 | 424 | <Custom Action="SetInstallDirCurrentP38" After="AppSearch">NOT Installed AND PYTHON38INSTALLPATH_CURRENT</Custom>
|
551 | 425 | <Custom Action="SetInstallDirAllP38" After="AppSearch">NOT Installed AND PYTHON38INSTALLPATH_ALL</Custom>
|
|
562 | 436 |
|
563 | 437 | <InstallUISequence>
|
564 | 438 | <Custom Action="PreventDowngrading" After="FindRelatedProducts">NEWPRODUCTFOUND</Custom>
|
565 |
| - <!-- Python 3.7 --> |
566 |
| - <Custom Action="SetInstallDirCurrentP37" After="AppSearch">NOT Installed AND PYTHON37INSTALLPATH_CURRENT</Custom> |
567 |
| - <Custom Action="SetInstallDirAllP37" After="AppSearch">NOT Installed AND PYTHON37INSTALLPATH_ALL</Custom> |
568 | 439 | <!-- Python 3.8 -->
|
569 | 440 | <Custom Action="SetInstallDirCurrentP38" After="AppSearch">NOT Installed AND PYTHON38INSTALLPATH_CURRENT</Custom>
|
570 | 441 | <Custom Action="SetInstallDirAllP38" After="AppSearch">NOT Installed AND PYTHON38INSTALLPATH_ALL</Custom>
|
|
0 commit comments