Hello all,
I would like to try MediaPortal 2, but have run into a show stopping installation bug. The installation fails with "Error 0x80070666" which apparently has been reported before, but seemingly, never fully resolved.
see:
I have managed to narrow down to the Microsoft Visual C++ Redistributable component (aka vcredist140_x86.exe as fetched from the installation server)
The problem stems from a known issue where VC++ 2017 shares the same registry key as VC++ 2015, and therefore blocks any attempt to install 2015 after 2017 has been installed. The same problem is also widely reported elsewhere. A possible workaround is to uninstall any VC++ 2017 redist entries, install VC++ 2015, and then reinstall VC++ 2017 again. This course of action is obviously undesirable.
According to somewhat reliable sources. VC++ 2017 is fully (binary) compatible with VC++ 2015, so in theory, using VC++ 2017 in place of VC++ 2015 during the MP installation process should bring no harm.
See:
I attach two excerpts from the installation logs. Firstly for MediaPortal, and secondly for VC++ 2015 redist manually installed.
Note - MP log is for MP 2.2 Pre, but 2.1 had been tried prior to this
Microsoft Visual C++ 2015 redistributable (x86) obtained directly from Microsoft
As stated above, this problem also affects MediaPortal 2.2, and given that many other applications may install VC++ 2017 Redistributable prior to the installation of MediaPortal, This problem can only become more prevalent. I have managed to install MP2.2 on to a pristine, but up to date Windows 10 Pro virtual machine by avoiding the installation of VC++ 2017 until after MediaPortal has been installed. This method may also serve as a reproduction if required.
A rather dirty hack to enable newcomers to try it out MediaPortal, in the short term, would be to replace the vcredist140_x86.exe fetched from install.team-mediaportal.com with VC++ 2017. I do hesitate to suggest this, and would rather see MP2.1 and 2.2 patched to fetch the "correct" redistributable. (Microsoft seem to insist on naming the redistributables as "vc_redist.x86.exe" regardless of version as a matter of interest)
Thank you for your attention on this, and I would characterize this as a high priority issue.
I would like to try MediaPortal 2, but have run into a show stopping installation bug. The installation fails with "Error 0x80070666" which apparently has been reported before, but seemingly, never fully resolved.
see:
I have managed to narrow down to the Microsoft Visual C++ Redistributable component (aka vcredist140_x86.exe as fetched from the installation server)
The problem stems from a known issue where VC++ 2017 shares the same registry key as VC++ 2015, and therefore blocks any attempt to install 2015 after 2017 has been installed. The same problem is also widely reported elsewhere. A possible workaround is to uninstall any VC++ 2017 redist entries, install VC++ 2015, and then reinstall VC++ 2017 again. This course of action is obviously undesirable.
According to somewhat reliable sources. VC++ 2017 is fully (binary) compatible with VC++ 2015, so in theory, using VC++ 2017 in place of VC++ 2015 during the MP installation process should bring no harm.
See:
I attach two excerpts from the installation logs. Firstly for MediaPortal, and secondly for VC++ 2015 redist manually installed.
Note - MP log is for MP 2.2 Pre, but 2.1 had been tried prior to this
Code:
...
[2598:0970][2018-10-20T01:03:47]i301: Applying execute package: VC2015_x86, action: Install, path: C:\ProgramData\Package Cache\72211BD2E7DFC91EA7C8FAC549C49C0543BA791B\vcredist140_x86.exe, arguments: '"C:\ProgramData\Package Cache\72211BD2E7DFC91EA7C8FAC549C49C0543BA791B\vcredist140_x86.exe" /passive /norestart -burn.filehandle.self=896'
[2598:0970][2018-10-20T01:03:48]e000: Error 0x80070666: Process returned error: 0x666
[2598:0970][2018-10-20T01:03:48]e000: Error 0x80070666: Failed to execute EXE package.
[123C:1238][2018-10-20T01:03:48]e000: Error 0x80070666: Failed to configure per-machine EXE package.
[123C:1238][2018-10-20T01:03:48]i319: Applied execute package: VC2015_x86, result: 0x80070666, restart: None
[123C:1238][2018-10-20T01:03:48]e000: Error 0x80070666: Failed to execute EXE package.
[2598:0970][2018-10-20T01:03:48]i351: Removing cached package: VC2015_x86, from path: C:\ProgramData\Package Cache\72211BD2E7DFC91EA7C8FAC549C49C0543BA791B\
[2598:0970][2018-10-20T01:03:48]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5e1b3023-7ee8-4ff9-8d56-b9e7db809a7a}, resume: None, restart: None, disable resume: No
[2598:0970][2018-10-20T01:03:48]i330: Removed bundle dependency provider: {5e1b3023-7ee8-4ff9-8d56-b9e7db809a7a}
[2598:0970][2018-10-20T01:03:48]i352: Removing cached bundle: {5e1b3023-7ee8-4ff9-8d56-b9e7db809a7a}, from path: C:\ProgramData\Package Cache\{5e1b3023-7ee8-4ff9-8d56-b9e7db809a7a}\
[2598:0970][2018-10-20T01:03:48]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5e1b3023-7ee8-4ff9-8d56-b9e7db809a7a}, resume: None, restart initiated: No, disable resume: No
[123C:1238][2018-10-20T01:03:48]i399: Apply complete, result: 0x80070666, restart: None, ba requested restart: No
[123C:1238][2018-10-20T01:16:44]i500: Shutting down, exit code: 0x666
...
Microsoft Visual C++ 2015 redistributable (x86) obtained directly from Microsoft
Code:
...
[28B4:1DE8][2018-10-20T01:51:59]i000: Setting string variable 'WixBundleOriginalSource' to value 'E:\Downloads\vc_redist.x86 (24215).exe'
[28B4:1DE8][2018-10-20T01:51:59]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'E:\Downloads\'
[28B4:1DE8][2018-10-20T01:51:59]i000: Setting string variable 'WixBundleName' to value 'Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.24215'
[28B4:1DE8][2018-10-20T01:51:59]i100: Detect begin, 10 packages
[28B4:1DE8][2018-10-20T01:51:59]i000: Setting version variable 'windows_uCRT_DetectKey' to value '10.0.17134.319'
[28B4:1DE8][2018-10-20T01:51:59]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 1
[28B4:1DE8][2018-10-20T01:51:59]i102: Detected related bundle: {7e9fae12-5bbf-47fb-b944-09c49e75c061}, type: Upgrade, scope: PerMachine, version: 14.15.26706.0, operation: Downgrade
[28B4:1DE8][2018-10-20T01:51:59]i108: Detected compatible package: vcRuntimeMinimum_x86, provider: Microsoft.VS.VC_RuntimeMinimumVSU_x86,v14, installed: {39E15475-23F2-345D-8977-B5DC47A94E26}, version: 14.15.26706, chained: {BBF2AC74-720C-3CB3-8291-5E34039232FA}
[28B4:1DE8][2018-10-20T01:51:59]i103: Detected related package: {39E15475-23F2-345D-8977-B5DC47A94E26}, scope: PerMachine, version: 14.15.26706.0, language: 0 operation: Downgrade
[28B4:1DE8][2018-10-20T01:51:59]i108: Detected compatible package: vcRuntimeAdditional_x86, provider: Microsoft.VS.VC_RuntimeAdditionalVSU_x86,v14, installed: {2757496A-3E74-320A-B007-36120A9F126D}, version: 14.15.26706, chained: {69BCE4AC-9572-3271-A2FB-9423BDA36A43}
[28B4:1DE8][2018-10-20T01:51:59]i103: Detected related package: {2757496A-3E74-320A-B007-36120A9F126D}, scope: PerMachine, version: 14.15.26706.0, language: 0 operation: Downgrade
[28B4:1DE8][2018-10-20T01:51:59]i052: Condition '(VersionNT = v6.3 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[28B4:1DE8][2018-10-20T01:51:59]i052: Condition '(VersionNT = v6.3 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[28B4:1DE8][2018-10-20T01:51:59]i052: Condition '(VersionNT = v6.2 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[28B4:1DE8][2018-10-20T01:51:59]i052: Condition '(VersionNT = v6.2 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[28B4:1DE8][2018-10-20T01:51:59]i052: Condition '(VersionNT = v6.1 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[28B4:1DE8][2018-10-20T01:51:59]i052: Condition '(VersionNT = v6.1 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[28B4:1DE8][2018-10-20T01:51:59]i052: Condition '(VersionNT = v6.0 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[28B4:1DE8][2018-10-20T01:51:59]i052: Condition '(VersionNT = v6.0 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[28B4:1DE8][2018-10-20T01:51:59]i101: Detected package: vcRuntimeMinimum_x86, state: Obsolete, cached: None
[28B4:1DE8][2018-10-20T01:51:59]i101: Detected package: vcRuntimeAdditional_x86, state: Obsolete, cached: None
[28B4:1DE8][2018-10-20T01:51:59]i101: Detected package: Windows81_x86, state: Absent, cached: None
[28B4:1DE8][2018-10-20T01:51:59]i101: Detected package: Windows81_x64, state: Absent, cached: None
[28B4:1DE8][2018-10-20T01:51:59]i101: Detected package: Windows8_x86, state: Absent, cached: None
[28B4:1DE8][2018-10-20T01:51:59]i101: Detected package: Windows8_x64, state: Absent, cached: None
[28B4:1DE8][2018-10-20T01:51:59]i101: Detected package: Windows7_MSU_x86, state: Absent, cached: None
[28B4:1DE8][2018-10-20T01:51:59]i101: Detected package: Windows7_MSU_x64, state: Absent, cached: None
[28B4:1DE8][2018-10-20T01:51:59]i101: Detected package: WindowsVista_MSU_x86, state: Absent, cached: None
[28B4:1DE8][2018-10-20T01:51:59]i101: Detected package: WindowsVista_MSU_x64, state: Absent, cached: None
[28B4:1DE8][2018-10-20T01:51:59]i052: Condition 'VersionNT >= v6.0 OR (VersionNT = v5.1 AND ServicePackLevel >= 2) OR (VersionNT = v5.2 AND ServicePackLevel >= 1)' evaluates to true.
[28B4:1DE8][2018-10-20T01:51:59]i199: Detect complete, result: 0x0
[28B4:2984][2018-10-20T01:52:03]e000: Error 0x80070666: Cannot install a product when a newer version is installed.
As stated above, this problem also affects MediaPortal 2.2, and given that many other applications may install VC++ 2017 Redistributable prior to the installation of MediaPortal, This problem can only become more prevalent. I have managed to install MP2.2 on to a pristine, but up to date Windows 10 Pro virtual machine by avoiding the installation of VC++ 2017 until after MediaPortal has been installed. This method may also serve as a reproduction if required.
A rather dirty hack to enable newcomers to try it out MediaPortal, in the short term, would be to replace the vcredist140_x86.exe fetched from install.team-mediaportal.com with VC++ 2017. I do hesitate to suggest this, and would rather see MP2.1 and 2.2 patched to fetch the "correct" redistributable. (Microsoft seem to insist on naming the redistributables as "vc_redist.x86.exe" regardless of version as a matter of interest)
Thank you for your attention on this, and I would characterize this as a high priority issue.