|
18 | 18 | <Property Id="PREVIOUSVERSIONSINSTALLED38" Secure="yes" />
|
19 | 19 | <Property Id="PREVIOUSVERSIONSINSTALLED39" Secure="yes" />
|
20 | 20 | <Property Id="PREVIOUSVERSIONSINSTALLED310" Secure="yes" />
|
| 21 | + <Property Id="PREVIOUSVERSIONSINSTALLED311" Secure="yes" /> |
21 | 22 |
|
22 |
| - <Upgrade Id="c4142c28-7de9-11e7-b269-5ce0c50b9cbc"> |
| 23 | + <Upgrade Id="c4142c28-7de9-11e7-b269-5ce0c50b9cbc"> |
23 | 24 | <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes"
|
24 | 25 | Minimum="1.0.0"
|
25 | 26 | Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)"
|
|
31 | 32 | Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)"
|
32 | 33 | Property="PREVIOUSVERSIONSINSTALLED37"/>
|
33 | 34 | </Upgrade>
|
34 |
| - <Upgrade Id="29739579-22ec-4df7-905f-05ca0d778c41"> |
| 35 | + <Upgrade Id="29739579-22ec-4df7-905f-05ca0d778c41"> |
35 | 36 | <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes"
|
36 | 37 | Minimum="1.0.0"
|
37 | 38 | Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)"
|
38 | 39 | Property="PREVIOUSVERSIONSINSTALLED38"/>
|
39 | 40 | </Upgrade>
|
40 |
| - <Upgrade Id="180e8431-7c58-4b72-b206-c6d7bd5487d6"> |
| 41 | + <Upgrade Id="180e8431-7c58-4b72-b206-c6d7bd5487d6"> |
41 | 42 | <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes"
|
42 | 43 | Minimum="1.0.0"
|
43 | 44 | Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)"
|
|
49 | 50 | Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)"
|
50 | 51 | Property="PREVIOUSVERSIONSINSTALLED310"/>
|
51 | 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> |
52 | 59 |
|
53 | 60 | <!-- Obtain location of the Python interpreters installed on the system-->
|
54 | 61 |
|
|
140 | 147 | <?endif?>
|
141 | 148 | </Property>
|
142 | 149 |
|
| 150 | + <!-- Python 3.11 --> |
| 151 | + <Property Id="PYTHON311INSTALLPATH_ALL"> |
| 152 | + <?if "$(var.Platform)"="x64" ?> |
| 153 | + <RegistrySearch Id="Python311InstallPathAll64" Root="HKLM" Type="raw" |
| 154 | + Key="Software\Python\PythonCore\3.11\InstallPath" Win64="yes"/> |
| 155 | + <?else?> |
| 156 | + <!-- Starting from python 3.5, 32bit Python install has a '-32' in its InstallPath reg key path --> |
| 157 | + <RegistrySearch Id="Python311InstallPathAll32" Root="HKLM" Type="raw" |
| 158 | + Key="Software\Python\PythonCore\3.11-32\InstallPath" Win64="no"/> |
| 159 | + <?endif?> |
| 160 | + </Property> |
| 161 | + <Property Id="PYTHON311INSTALLPATH_CURRENT"> |
| 162 | + <?if "$(var.Platform)"="x64" ?> |
| 163 | + <RegistrySearch Id="Python311InstallPathCurrent64" Root="HKCU" Type="raw" |
| 164 | + Key="Software\Python\PythonCore\3.11\InstallPath" Win64="yes"/> |
| 165 | + <?else?> |
| 166 | + <!-- Starting from python 3.5, 32bit Python install has a '-32' in its InstallPath reg key path --> |
| 167 | + <RegistrySearch Id="Python311InstallPathCurrent32" Root="HKCU" Type="raw" |
| 168 | + Key="Software\Python\PythonCore\3.11-32\InstallPath" Win64="no"/> |
| 169 | + <?endif?> |
| 170 | + </Property> |
| 171 | + |
143 | 172 | <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.">
|
144 | 173 | Installed OR PYTHON36INSTALLPATH_ALL OR PYTHON36INSTALLPATH_CURRENT OR PYTHON37INSTALLPATH_ALL OR PYTHON37INSTALLPATH_CURRENT OR PYTHON38INSTALLPATH_ALL OR PYTHON38INSTALLPATH_CURRENT OR PYTHON39INSTALLPATH_ALL OR PYTHON39INSTALLPATH_CURRENT OR PYTHON310INSTALLPATH_ALL OR PYTHON310INSTALLPATH_CURRENT
|
145 | 174 | </Condition>
|
|
253 | 282 | </Directory>
|
254 | 283 | </Directory>
|
255 | 284 |
|
| 285 | + <Directory Id="INSTALLDIRP311" Name="Python311"> |
| 286 | + <Directory Id="PythonLibDir311" Name="Lib"> |
| 287 | + <Directory Id="SitePackagesDir311" Name="site-packages"> |
| 288 | + <Directory Id="EggInfoDir311" Name="mysql_connector_python-$(var.FullVersion)-py3.11.egg-info"/> |
| 289 | + <Directory Id="MySQLXPackageDir311" Name="mysqlx"> |
| 290 | + <Directory Id="MySQLXPB2Dir311" Name="protobuf"/> |
| 291 | + <Directory Id="MySQLXLocalesDir311" Name="locales"> |
| 292 | + <Directory Id="MySQLXLocalesEngDir311" Name="eng"/> |
| 293 | + </Directory> |
| 294 | + </Directory> |
| 295 | + <Directory Id="MySQLPackageDir311" Name="mysql"> |
| 296 | + <Directory Id="VendorDir311" Name="vendor"> |
| 297 | + <Directory Id="VendorPluginDir311" Name="plugin"/> |
| 298 | + </Directory> |
| 299 | + <Directory Id="ConnectorPackageDir311" Name="connector"> |
| 300 | + <Directory Id="ConnectorPluginsDir311" Name="plugins"/> |
| 301 | + <Directory Id="DjangoDir311" Name="django"/> |
| 302 | + <Directory Id="ConnectorLocalesDir311" Name="locales"> |
| 303 | + <Directory Id="LocalesEngDir311" Name="eng"/> |
| 304 | + </Directory> |
| 305 | + </Directory> |
| 306 | + </Directory> |
| 307 | + </Directory> |
| 308 | + </Directory> |
| 309 | + </Directory> |
| 310 | + |
256 | 311 | <!-- Common files-->
|
257 | 312 | <Directory Id="$(var.Directory_Id)">
|
258 | 313 | <Directory Id="CompanyDir" Name="MySQL">
|
|
425 | 480 | <?endif?>
|
426 | 481 | </Feature>
|
427 | 482 | <?endif?>
|
| 483 | + |
| 484 | + <!-- Python 3.11 --> |
| 485 | + <?if $(var.BDist311) != "" ?> |
| 486 | + <Feature Id="Python311" Title="C/py for Python 3.11" Level="1" |
| 487 | + ConfigurableDirectory ="INSTALLDIRP311" Absent="allow"> |
| 488 | + <Condition Level='0'>Not PYTHON311INSTALLPATH_ALL AND Not PYTHON311INSTALLPATH_CURRENT AND Not Installed</Condition> |
| 489 | + <ComponentRef Id="EggInfo311"/> |
| 490 | + <ComponentRef Id="MySQLPackage311"/> |
| 491 | + <?if $(var.HaveCExt311) = 1 ?> |
| 492 | + <ComponentRef Id="Vendor311"/> |
| 493 | + <ComponentRef Id="VendorPlugin311"/> |
| 494 | + <?endif?> |
| 495 | + <ComponentRef Id="ConnectorPackage311"/> |
| 496 | + <ComponentRef Id="ConnectorPlugins311"/> |
| 497 | + <ComponentRef Id="ConnectorLocales311"/> |
| 498 | + <ComponentRef Id="LocalesEng311"/> |
| 499 | + <ComponentRef Id="DjangoBackend311"/> |
| 500 | + <ComponentRef Id="MySQLXPackage311"/> |
| 501 | + <ComponentRef Id="MySQLXPackagePB2311"/> |
| 502 | + <ComponentRef Id="MySQLXLocales311"/> |
| 503 | + <ComponentRef Id="MySQLXLocalesEng311"/> |
| 504 | + <?if $(var.HaveCExt311) = 1 ?> |
| 505 | + <ComponentRef Id="CExtension311"/> |
| 506 | + <?endif?> |
| 507 | + </Feature> |
| 508 | + <?endif?> |
428 | 509 | </Feature>
|
429 | 510 |
|
430 | 511 | <!-- Python 3.7 -->
|
|
447 | 528 | <CustomAction Id="SetInstallDirAllP310" Property="INSTALLDIRP310" Value="[PYTHON310INSTALLPATH_ALL]"/>
|
448 | 529 | <CustomAction Id="ErrDebug310" Error="Installdir: [INSTALLDIRP310]"/>
|
449 | 530 |
|
| 531 | + <!-- Python 3.11 --> |
| 532 | + <CustomAction Id="SetInstallDirCurrentP311" Property="INSTALLDIRP311" Value="[PYTHON311INSTALLPATH_CURRENT]"/> |
| 533 | + <CustomAction Id="SetInstallDirAllP311" Property="INSTALLDIRP311" Value="[PYTHON311INSTALLPATH_ALL]"/> |
| 534 | + <CustomAction Id="ErrDebug311" Error="Installdir: [INSTALLDIRP311]"/> |
| 535 | + |
450 | 536 | <UIRef Id="WixUI_CPY"/>
|
451 | 537 | <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
|
452 | 538 | <UIRef Id="WixUI_ErrorProgressText" />
|
|
469 | 555 | <!-- Python 3.10 -->
|
470 | 556 | <Custom Action="SetInstallDirCurrentP310" After="AppSearch">NOT Installed AND PYTHON310INSTALLPATH_CURRENT</Custom>
|
471 | 557 | <Custom Action="SetInstallDirAllP310" After="AppSearch">NOT Installed AND PYTHON310INSTALLPATH_ALL</Custom>
|
| 558 | + <!-- Python 3.11 --> |
| 559 | + <Custom Action="SetInstallDirCurrentP311" After="AppSearch">NOT Installed AND PYTHON311INSTALLPATH_CURRENT</Custom> |
| 560 | + <Custom Action="SetInstallDirAllP311" After="AppSearch">NOT Installed AND PYTHON311INSTALLPATH_ALL</Custom> |
472 | 561 | </InstallExecuteSequence>
|
473 | 562 |
|
474 | 563 | <InstallUISequence>
|
|
485 | 574 | <!-- Python 3.10 -->
|
486 | 575 | <Custom Action="SetInstallDirCurrentP310" After="AppSearch">NOT Installed AND PYTHON310INSTALLPATH_CURRENT</Custom>
|
487 | 576 | <Custom Action="SetInstallDirAllP310" After="AppSearch">NOT Installed AND PYTHON310INSTALLPATH_ALL</Custom>
|
| 577 | + <!-- Python 3.11 --> |
| 578 | + <Custom Action="SetInstallDirCurrentP311" After="AppSearch">NOT Installed AND PYTHON311INSTALLPATH_CURRENT</Custom> |
| 579 | + <Custom Action="SetInstallDirAllP311" After="AppSearch">NOT Installed AND PYTHON311INSTALLPATH_ALL</Custom> |
488 | 580 | </InstallUISequence>
|
489 | 581 | </Product>
|
490 | 582 | </Wix>
|
|
0 commit comments