Plesk upgrade fails: The older version cannot be removed

Created:

2016-11-16 12:53:19 UTC

Modified:

2017-01-29 22:57:53 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk upgrade fails: The older version cannot be removed

Symptoms

An attempt to upgrade Plesk fails with an error:

MSI: Error! Error 1714.The older version of MySQL Server 5.1 cannot be removed.  Contact your technical support group.
Failed to install 'C:\\fbbf9d8ff02f22843aa039b6b97b60fa\\parallels\\PANEL-WIN_11.5.30\ hirdparty-msi-Windows-any-x86_64\\mysql-essential-5.1.68-win32.msi': Fatal error during installation. (Error cod 1603)

Or:

MSI: Error! The older version of BIND DNS Server cannot be removed.  Contact your technical support group.
Failed to install 'C:\\ParallelsInstaller\\parallels\\PANEL-WIN_11.5.30\\dist-msi-Microsoft-2003-i386\\bind.msi': Fatal error during installation. (Error code 1603)

Or:

MSI: Error! The older version of SPAW Editor cannot be removed.  Contact your technical support group.
Failed to install 'C:\\fbbf9d8ff02f22843aa039b6b97b60fa\\parallels\\PANEL-WIN_11.5.30\\dist-msi-Microsoft-2003-i386\\spaw.msi': Fatal error during installation. (Error code 1603)

Or: some other .msi package could not be installed because its older version cannot be removed.

Cause

The Plesk installer cannot find the .msi file of the currently installed package.

Resolution

  1. Go to http://autoinstall-win.plesk.com/ and choose the Plesk version which you trying to upgrade from.

    For example: PANEL-WIN_10.4.4 .

  2. Go to the directory mentioned in the error and download the package mentioned.

    For example download mysql-essential-5.1.56-win32.msi from the PANEL-WIN_10.4.4/thirdparty-msi-Windows-any-x86_64/

  3. Put the downloaded package into the corresponding directory: C:\\ParallelsInstaller\\parallels\\<PANEL-WIN_upgrade_from_version>\\<dist-msi-Microsoft-2003-i386_or_thirdparty-msi-Windows-any-x86_64 , create the folder if it is needed.

    For the example above:

    C:\\ParallelsInstaller\\parallels\\PANEL-WIN_10.4.4\hirdparty-msi-Windows-any-x86_64

  4. Run the upgrade again.

If the problem still persists, you need to put the missing file into a Windows Installer cache:

1. Open registry editor

2. Go to registry key HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData\\S-1-5-18\\Products\\

3. Use the package name from the error message to find required key path. For example, for mysql-admin.msi it is required to search with 'Plesk SQL Server'. Search can be performed in registry GUI or using Power Shell command line:

PS C:\> reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\ /f "Plesk SQL Server" /s

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\A7D1202289F6C3046B221849077A4F07\InstallProperties  
DisplayName    REG_SZ    Plesk SQL Server
End of search: 1 match(es) found.

Note: Package ID can be searched by its *.msi name from the error in HKLM\SOFTWARE\Classes\Installer\Products\ branch with the following query:

PS C:\Users\Administrator> reg query HKLM\SOFTWARE\Classes\Installer\Products\ /f "mysql-admin.msi" /s

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\A7D1202289F6C3046B221849077A4F07\SourceList
PackageName REG_SZ mysql-admin.msi

In that case to find LocalPackage name, package ID (e.g. A7D1202289F6C3046B221849077A4F07) and InstallProperties should be added to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\ path, it should look like the following one:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\A7D1202289F6C3046B221849077A4F07\InstallProperties

4. In the LocalPackage key get the file name:

PS C:\> reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\A7D1202289F6C3046B221849077A4F07\InstallProperties\ /v LocalPackage

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\A7D1202289F6C3046B221849077A4F07\InstallProperties    
LocalPackage    REG_SZ    C:\Windows\Installer\39c85b.msi   

5. Copy required version package file from an appropriate folder into C:\\Windows\\Installer\\ directory as 39c85b.msi and restart an upgrade.

Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    Ivan B

    Instead of step #2 and #3 in the Windows cache manipulations part, one can find local package name directly by its non-cached name.

    1. Find out product code in the  HKLM\SOFTWARE\Classes\Installer\Products\  hive:
      PS C:\> reg query HKLM\SOFTWARE\Classes\Installer\Products\ /f "webmail.msi" /s
      HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\32458DC911F747645AF257819E1DB266\SourceList
          PackageName    REG_SZ    webmail.msi
      So we need 32458DC911F747645AF257819E1DB266
    2. To get the LocalPackage value add the product code from previous step and InstallProperties to the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\ hive:
      PS C:\> reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\32458DC911F747645AF257819E1DB266\InstallProperties | findstr "LocalPackage"
          LocalPackage    REG_SZ    C:\Windows\Installer\18ea00.msi
Please sign in to leave a comment.