|
17 | 17 | <Property Id="PREVIOUSVERSIONSINSTALLED37" Secure="yes" />
|
18 | 18 | <Property Id="PREVIOUSVERSIONSINSTALLED38" Secure="yes" />
|
19 | 19 | <Property Id="PREVIOUSVERSIONSINSTALLED39" Secure="yes" />
|
| 20 | + <Property Id="PREVIOUSVERSIONSINSTALLED310" Secure="yes" /> |
20 | 21 |
|
21 | 22 | <Upgrade Id="c4142c28-7de9-11e7-b269-5ce0c50b9cbc">
|
22 | 23 | <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes"
|
|
42 | 43 | Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)"
|
43 | 44 | Property="PREVIOUSVERSIONSINSTALLED39"/>
|
44 | 45 | </Upgrade>
|
| 46 | + <Upgrade Id="a0b2ca29-5516-4cb1-a076-178068896350"> |
| 47 | + <UpgradeVersion OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes" |
| 48 | + Minimum="1.0.0" |
| 49 | + Maximum="$(var.Major_Version).$(var.Minor_Version).$(var.Patch_Version)" |
| 50 | + Property="PREVIOUSVERSIONSINSTALLED310"/> |
| 51 | + </Upgrade> |
45 | 52 |
|
46 | 53 | <!-- Obtain location of the Python interpreters installed on the system-->
|
47 | 54 |
|
|
133 | 140 | <?endif?>
|
134 | 141 | </Property>
|
135 | 142 |
|
| 143 | + <!-- Python 3.10 --> |
| 144 | + <Property Id="PYTHON310INSTALLPATH_ALL"> |
| 145 | + <?if "$(var.Platform)"="x64" ?> |
| 146 | + <RegistrySearch Id="Python310InstallPathAll64" Root="HKLM" Type="raw" |
| 147 | + Key="Software\Python\PythonCore\3.10\InstallPath" Win64="yes"/> |
| 148 | + <?else?> |
| 149 | + <!-- Starting from python 3.5, 32bit Python install has a '-32' in its InstallPath reg key path --> |
| 150 | + <RegistrySearch Id="Python310InstallPathAll32" Root="HKLM" Type="raw" |
| 151 | + Key="Software\Python\PythonCore\3.10-32\InstallPath" Win64="no"/> |
| 152 | + <?endif?> |
| 153 | + </Property> |
| 154 | + <Property Id="PYTHON310INSTALLPATH_CURRENT"> |
| 155 | + <?if "$(var.Platform)"="x64" ?> |
| 156 | + <RegistrySearch Id="Python310InstallPathCurrent64" Root="HKCU" Type="raw" |
| 157 | + Key="Software\Python\PythonCore\3.10\InstallPath" Win64="yes"/> |
| 158 | + <?else?> |
| 159 | + <!-- Starting from python 3.5, 32bit Python install has a '-32' in its InstallPath reg key path --> |
| 160 | + <RegistrySearch Id="Python310InstallPathCurrent32" Root="HKCU" Type="raw" |
| 161 | + Key="Software\Python\PythonCore\3.10-32\InstallPath" Win64="no"/> |
| 162 | + <?endif?> |
| 163 | + </Property> |
| 164 | + |
136 | 165 | <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.">
|
137 |
| - 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 |
| 166 | + 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 |
138 | 167 | </Condition>
|
139 | 168 |
|
140 | 169 | <Media Id="1" Cabinet="ConnectorPython_Python.cab" EmbedCab="yes"/>
|
|
242 | 271 | </Directory>
|
243 | 272 | </Directory>
|
244 | 273 |
|
| 274 | + <Directory Id="INSTALLDIRP310" Name="Python310"> |
| 275 | + <Directory Id="PythonLibDir310" Name="Lib"> |
| 276 | + <Directory Id="SitePackagesDir310" Name="site-packages"> |
| 277 | + <Directory Id="EggInfoDir310" Name="mysql_connector_python-$(var.FullVersion)-py3.10.egg-info"/> |
| 278 | + <Directory Id="MySQLXPackageDir310" Name="mysqlx"> |
| 279 | + <Directory Id="MySQLXPB2Dir310" Name="protobuf"/> |
| 280 | + <Directory Id="MySQLXLocalesDir310" Name="locales"> |
| 281 | + <Directory Id="MySQLXLocalesEngDir310" Name="eng"/> |
| 282 | + </Directory> |
| 283 | + </Directory> |
| 284 | + <Directory Id="MySQLPackageDir310" Name="mysql"> |
| 285 | + <Directory Id="VendorDir310" Name="vendor"> |
| 286 | + <Directory Id="VendorPluginDir310" Name="plugin"/> |
| 287 | + </Directory> |
| 288 | + <Directory Id="ConnectorPackageDir310" Name="connector"> |
| 289 | + <Directory Id="DjangoDir310" Name="django"/> |
| 290 | + <Directory Id="ConnectorLocalesDir310" Name="locales"> |
| 291 | + <Directory Id="LocalesEngDir310" Name="eng"/> |
| 292 | + </Directory> |
| 293 | + </Directory> |
| 294 | + </Directory> |
| 295 | + </Directory> |
| 296 | + </Directory> |
| 297 | + </Directory> |
| 298 | + |
245 | 299 | <!-- Common files-->
|
246 | 300 | <Directory Id="$(var.Directory_Id)">
|
247 | 301 | <Directory Id="CompanyDir" Name="MySQL">
|
|
410 | 464 | <?endif?>
|
411 | 465 | </Feature>
|
412 | 466 | <?endif?>
|
| 467 | + |
| 468 | + <!-- Python 3.10 --> |
| 469 | + <?if $(var.BDist310) != "" ?> |
| 470 | + <Feature Id="Python310" Title="C/py for Python 3.10" Level="1" |
| 471 | + ConfigurableDirectory ="INSTALLDIRP310" Absent="allow"> |
| 472 | + <Condition Level='0'>Not PYTHON310INSTALLPATH_ALL AND Not PYTHON310INSTALLPATH_CURRENT AND Not Installed</Condition> |
| 473 | + <ComponentRef Id="EggInfo310"/> |
| 474 | + <ComponentRef Id="MySQLPackage310"/> |
| 475 | + <?if $(var.HaveCExt310) = 1 ?> |
| 476 | + <ComponentRef Id="Vendor310"/> |
| 477 | + <ComponentRef Id="VendorPlugin310"/> |
| 478 | + <?endif?> |
| 479 | + <ComponentRef Id="ConnectorPackage310"/> |
| 480 | + <ComponentRef Id="ConnectorLocales310"/> |
| 481 | + <ComponentRef Id="LocalesEng310"/> |
| 482 | + <ComponentRef Id="DjangoBackend310"/> |
| 483 | + <ComponentRef Id="MySQLXPackage310"/> |
| 484 | + <ComponentRef Id="MySQLXPackagePB2310"/> |
| 485 | + <ComponentRef Id="MySQLXLocales310"/> |
| 486 | + <ComponentRef Id="MySQLXLocalesEng310"/> |
| 487 | + <?if $(var.HaveCExt310) = 1 ?> |
| 488 | + <ComponentRef Id="CExtension310"/> |
| 489 | + <?endif?> |
| 490 | + </Feature> |
| 491 | + <?endif?> |
413 | 492 | </Feature>
|
414 | 493 |
|
415 | 494 | <!-- Python 3.6 -->
|
|
432 | 511 | <CustomAction Id="SetInstallDirAllP39" Property="INSTALLDIRP39" Value="[PYTHON39INSTALLPATH_ALL]"/>
|
433 | 512 | <CustomAction Id="ErrDebug39" Error="Installdir: [INSTALLDIRP39]"/>
|
434 | 513 |
|
| 514 | + <!-- Python 3.10 --> |
| 515 | + <CustomAction Id="SetInstallDirCurrentP310" Property="INSTALLDIRP310" Value="[PYTHON310INSTALLPATH_CURRENT]"/> |
| 516 | + <CustomAction Id="SetInstallDirAllP310" Property="INSTALLDIRP310" Value="[PYTHON310INSTALLPATH_ALL]"/> |
| 517 | + <CustomAction Id="ErrDebug310" Error="Installdir: [INSTALLDIRP310]"/> |
| 518 | + |
435 | 519 | <UIRef Id="WixUI_CPY"/>
|
436 | 520 | <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
|
437 | 521 | <UIRef Id="WixUI_ErrorProgressText" />
|
|
454 | 538 | <!-- Python 3.9 -->
|
455 | 539 | <Custom Action="SetInstallDirCurrentP39" After="AppSearch">NOT Installed AND PYTHON39INSTALLPATH_CURRENT</Custom>
|
456 | 540 | <Custom Action="SetInstallDirAllP39" After="AppSearch">NOT Installed AND PYTHON39INSTALLPATH_ALL</Custom>
|
| 541 | + <!-- Python 3.10 --> |
| 542 | + <Custom Action="SetInstallDirCurrentP310" After="AppSearch">NOT Installed AND PYTHON310INSTALLPATH_CURRENT</Custom> |
| 543 | + <Custom Action="SetInstallDirAllP310" After="AppSearch">NOT Installed AND PYTHON310INSTALLPATH_ALL</Custom> |
457 | 544 | </InstallExecuteSequence>
|
458 | 545 |
|
459 | 546 | <InstallUISequence>
|
|
470 | 557 | <!-- Python 3.9 -->
|
471 | 558 | <Custom Action="SetInstallDirCurrentP39" After="AppSearch">NOT Installed AND PYTHON39INSTALLPATH_CURRENT</Custom>
|
472 | 559 | <Custom Action="SetInstallDirAllP39" After="AppSearch">NOT Installed AND PYTHON39INSTALLPATH_ALL</Custom>
|
| 560 | + <!-- Python 3.10 --> |
| 561 | + <Custom Action="SetInstallDirCurrentP310" After="AppSearch">NOT Installed AND PYTHON310INSTALLPATH_CURRENT</Custom> |
| 562 | + <Custom Action="SetInstallDirAllP310" After="AppSearch">NOT Installed AND PYTHON310INSTALLPATH_ALL</Custom> |
473 | 563 | </InstallUISequence>
|
474 | 564 | </Product>
|
475 | 565 | </Wix>
|
|
0 commit comments