[MDEV-27828] Unable to upgrade MariaDB 10.6.5 to MariaDB 10.6.7: Installation directory ''C:\Program Files\MariaDB 10.6\'' exists and is not empty. Created: 2022-02-14  Updated: 2022-02-25  Resolved: 2022-02-14

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Platform Windows
Affects Version/s: 10.6.7, 10.7.3, 10.8.2
Fix Version/s: 10.6.8, 10.7.4, 10.8.3

Type: Bug Priority: Blocker
Reporter: Anton Serbulov Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None

Attachments: Text File mariadb-10.6.7-winx64.log    
Issue Links:
Duplicate
duplicates MDEV-27948 MariaDB Server Upgrade - Inatallation... Closed
Problem/Incident
is caused by MDEV-27546 The installer does not check that the... Closed

 Description   

Steps to reproduce

  1. Install MariaDB 10.6.5

    start /w msiexec /i C:\mariadb-10.6.5-winx64.msi /qn ADDLOCAL=ALL ALLUSERS=1 REBOOT=R
    

  2. Upgrade to MariaDB 10.6.7

    start /w msiexec /i C:\mariadb-10.6.7-winx64.msi /l*v C:\mariadb-10.6.7-winx64.log /qn ADDLOCAL=ALL ALLUSERS=1 REBOOT=R
    

  3. Check upgrade log

Actual result
Upgrade failed

MSI (s) (CC:90) [10:17:04:512]: Doing action: INSTALL
Action start 10:17:04: INSTALL.
MSI (s) (CC:90) [10:17:04:512]: Running ExecuteSequence
MSI (s) (CC:90) [10:17:04:512]: Doing action: FindRelatedProducts
Action start 10:17:04: FindRelatedProducts.
MSI (s) (CC:90) [10:17:04:512]: PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value is '{CF97C4B7-41C6-4A22-8F7A-D2D2B14927ED}'.
MSI (s) (CC:90) [10:17:04:512]: PROPERTY CHANGE: Adding MIGRATE property. Its value is '{CF97C4B7-41C6-4A22-8F7A-D2D2B14927ED}'.
...
MSI (s) (CC:90) [10:17:04:871]: Doing action: CheckInstallDirectory
Action ended 10:17:04: CostFinalize. Return value 1.
MSI (s) (CC:A0) [10:17:04:887]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI8C6.tmp, Entrypoint: CheckInstallDirectory
MSI (s) (CC!A4) [10:17:04:887]: PROPERTY CHANGE: Adding INSTALLDIRERROR property. Its value is 'Installation directory 'C:\Program Files\MariaDB 10.6\' exists and is not empty. Choose a different install directory'.
Action start 10:17:04: CheckInstallDirectory.
MSI (s) (CC:90) [10:17:04:887]: Doing action: ErrorInstallDir
Action ended 10:17:04: CheckInstallDirectory. Return value 1.
Action start 10:17:04: ErrorInstallDir.
MSI (s) (CC:90) [10:17:04:887]: Product: MariaDB 10.6 (x64) -- Installation directory 'C:\Program Files\MariaDB 10.6\' exists and is not empty. Choose a different install directory
 
Installation directory 'C:\Program Files\MariaDB 10.6\' exists and is not empty. Choose a different install directory
Action ended 10:17:04: ErrorInstallDir. Return value 3.
Action ended 10:17:04: INSTALL. Return value 3.
...
MSI (s) (CC:90) [10:17:04:918]: Product: MariaDB 10.6 (x64) -- Installation failed.
 
MSI (s) (CC:90) [10:17:04:918]: Windows Installer installed the product. Product Name: MariaDB 10.6 (x64). Product Version: 10.6.7.0. Product Language: 1033. Manufacturer: MariaDB Corporation Ab. Installation success or error status: 1603.

Expected result
Upgrade finished successfully


Generated at Thu Feb 08 09:55:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.