3CXPhone install raises Visual C++ Redistributable Error

Discussion in '3CX Clients' started by mcbsys, Feb 9, 2018.

Thread Status:
Not open for further replies.
  1. mcbsys

    mcbsys New Member

    Joined:
    Oct 8, 2008
    Messages:
    186
    Likes Received:
    15
    Today I installed the new 3CXPhone for Windows version 15.5.8801.3 on Windows 10 Pro 1709 Build 16299.192. During the installation, it asked me if it could install a Visual C++ 2015 Redistributable (x86) 14.0.23918 and I chose OK. I expected it to ask for elevated permission (UAC) but instead the install failed with "Error 0x80070666: Cannot install a product when a newer version is installed." The error log is below.

    Apparently the installer is trying to install version 14.0.23918 (Update 2) but I already have 14.0.23415 (Update 3).

    As far as I can tell, 3CXPhone is working fine with the Update 3 version.

    Could 3CX please distribute the latest redistributable to avoid this issue?

    https://www.microsoft.com/en-us/download/details.aspx?id=52685

    Thanks.

    Code:
    [2584:44CC][2018-02-09T10:27:36]i001: Burn v3.7.3813.0, Windows v10.0 (Build 16299: Service Pack 0), path: C:\ProgramData\3CXPhone for Windows\PhoneApp\redist\vc_redist.x86.exe, cmdline: '/install'
    [2584:44CC][2018-02-09T10:27:36]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\MyUser\AppData\Local\Temp\dd_vcredist_x86_20180209102736.log'
    [2584:44CC][2018-02-09T10:27:36]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\ProgramData\3CXPhone for Windows\PhoneApp\redist\vc_redist.x86.exe'
    [2584:44CC][2018-02-09T10:27:36]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\ProgramData\3CXPhone for Windows\PhoneApp\redist\'
    [2584:44CC][2018-02-09T10:27:36]i000: Setting string variable 'WixBundleName' to value 'Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.23918'
    [2584:44CC][2018-02-09T10:27:37]i100: Detect begin, 10 packages
    [2584:44CC][2018-02-09T10:27:37]i000: Setting version variable 'windows_uCRT_DetectKey' to value '10.0.16299.125'
    [2584:44CC][2018-02-09T10:27:37]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 1
    [2584:44CC][2018-02-09T10:27:37]i102: Detected related bundle: {e2803110-78b3-4664-a479-3611a381656a}, type: Upgrade, scope: PerMachine, version: 14.0.24215.1, operation: Downgrade
    [2584:44CC][2018-02-09T10:27:37]i108: Detected compatible package: vcRuntimeMinimum_x86, provider: Microsoft.VS.VC_RuntimeMinimumVSU_x86,v14, installed: {BBF2AC74-720C-3CB3-8291-5E34039232FA}, version: 14.0.24215, chained: {B5FC62F5-A367-37A5-9FD2-A6E137C0096F}
    [2584:44CC][2018-02-09T10:27:37]i103: Detected related package: {BBF2AC74-720C-3CB3-8291-5E34039232FA}, scope: PerMachine, version: 14.0.24215.0, language: 0 operation: Downgrade
    [2584:44CC][2018-02-09T10:27:37]i108: Detected compatible package: vcRuntimeAdditional_x86, provider: Microsoft.VS.VC_RuntimeAdditionalVSU_x86,v14, installed: {69BCE4AC-9572-3271-A2FB-9423BDA36A43}, version: 14.0.24215, chained: {BD9CFD69-EB91-354E-9C98-D439E6091932}
    [2584:44CC][2018-02-09T10:27:37]i103: Detected related package: {69BCE4AC-9572-3271-A2FB-9423BDA36A43}, scope: PerMachine, version: 14.0.24215.0, language: 0 operation: Downgrade
    [2584:44CC][2018-02-09T10:27:37]i052: Condition '(VersionNT = v6.3 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
    [2584:44CC][2018-02-09T10:27:37]i052: Condition '(VersionNT = v6.3 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
    [2584:44CC][2018-02-09T10:27:37]i052: Condition '(VersionNT = v6.2 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
    [2584:44CC][2018-02-09T10:27:37]i052: Condition '(VersionNT = v6.2 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
    [2584:44CC][2018-02-09T10:27:37]i052: Condition '(VersionNT = v6.1 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
    [2584:44CC][2018-02-09T10:27:37]i052: Condition '(VersionNT = v6.1 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
    [2584:44CC][2018-02-09T10:27:37]i052: Condition '(VersionNT = v6.0 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
    [2584:44CC][2018-02-09T10:27:37]i052: Condition '(VersionNT = v6.0 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
    [2584:44CC][2018-02-09T10:27:37]i101: Detected package: vcRuntimeMinimum_x86, state: Obsolete, cached: None
    [2584:44CC][2018-02-09T10:27:37]i101: Detected package: vcRuntimeAdditional_x86, state: Obsolete, cached: None
    [2584:44CC][2018-02-09T10:27:37]i101: Detected package: Windows81_x86, state: Absent, cached: None
    [2584:44CC][2018-02-09T10:27:37]i101: Detected package: Windows81_x64, state: Absent, cached: None
    [2584:44CC][2018-02-09T10:27:37]i101: Detected package: Windows8_x86, state: Absent, cached: None
    [2584:44CC][2018-02-09T10:27:37]i101: Detected package: Windows8_x64, state: Absent, cached: None
    [2584:44CC][2018-02-09T10:27:37]i101: Detected package: Windows7_MSU_x86, state: Absent, cached: None
    [2584:44CC][2018-02-09T10:27:37]i101: Detected package: Windows7_MSU_x64, state: Absent, cached: None
    [2584:44CC][2018-02-09T10:27:37]i101: Detected package: WindowsVista_MSU_x86, state: Absent, cached: None
    [2584:44CC][2018-02-09T10:27:37]i101: Detected package: WindowsVista_MSU_x64, state: Absent, cached: None
    [2584:44CC][2018-02-09T10:27:37]i052: Condition 'VersionNT >= v6.0 OR (VersionNT = v5.1 AND ServicePackLevel >= 2) OR (VersionNT = v5.2 AND ServicePackLevel >= 1)' evaluates to true.
    [2584:44CC][2018-02-09T10:27:37]i199: Detect complete, result: 0x0
    [2584:12C8][2018-02-09T10:27:43]e000: Error 0x80070666: Cannot install a product when a newer version is installed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 mcbsys, Feb 9, 2018
    Last edited: Apr 4, 2018
  2. Sopock

    Sopock Member

    Joined:
    Jul 11, 2012
    Messages:
    447
    Likes Received:
    20
    Please note that even 24123 is just RC. There is newer update 3:
    This website requires users to log in...:cool:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 Sopock, Feb 14, 2018
    Last edited: Feb 14, 2018
  3. mcbsys

    mcbsys New Member

    Joined:
    Oct 8, 2008
    Messages:
    186
    Likes Received:
    15
    Sopock, you're right, the page I linked is for an RC version, probably 24123. I hadn't noticed that.

    As shown in the error log, I have 24215 on my system, which is apparently the final (non-RC) release 3. The page you linked points to this download: https://my.visualstudio.com/Downloads?pid=2082.

    If 3CX is unable to update to the latest version, perhaps they could at least update the installer to check for 23918 "or later" so as not to raise an error during installation.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Sopock

    Sopock Member

    Joined:
    Jul 11, 2012
    Messages:
    447
    Likes Received:
    20
    For that they will also need newer version of:
    ...this is where Advanced installer outshines InstallShield
    This also sounds familiar:
    • free update for customers with a valid Maintenance Plan
    • Your Maintenance Plan can be extended while valid. The extension is appended at the end of your current maintenance plan. After expiration, the Maintenance Plan can be renewed anytime.
    Probably installed by something else, not by end user which can't obtain one. 3CX installer should not even start downloading of redist. if required is already installed.
    Not only that. When you run same installer again and use Modify it's clear that it also installs 2010 SP1!
    @drewswiz | @accentlogic: If 3CX can add the redistributable Visual C++ DLLs to the 3CX application local folder, then the installer is not required.

    This reflects the fact that both the runtime libraries and the applications compiled with either version of the compiler are--for the most part--binary compatible.


    @Nick Galea: Make sure your PBX is always up to date
    Of course we could run several code bases and keep updating our old versions. Yes, but it would mean the cost of 3CX would easily triple. And that’s assuming we could find developers that would want to do that – updating old stuff instead of innovating and building new features for the latest platform.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 Sopock, Feb 15, 2018
    Last edited: Feb 15, 2018
  5. Sopock

    Sopock Member

    Joined:
    Jul 11, 2012
    Messages:
    447
    Likes Received:
    20
    There is also no need for PhoneApp\redist folder.
    Note that 3CX client also works with C++ redist 2017!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #5 Sopock, Feb 19, 2018
    Last edited: Feb 19, 2018
  6. LeonidasG

    LeonidasG Support Team
    Staff Member 3CX Support

    Joined:
    Nov 19, 2008
    Messages:
    1,500
    Likes Received:
    98
    Thanks for this, we'll take a closer look at the above.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. D Bedford

    Joined:
    Oct 17, 2017
    Messages:
    21
    Likes Received:
    8
    Just wanted to confirm that I'm also seeing this issue. We have the following two installed on all of our machines:

    Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.24215
    Microsoft Visual C++ 2015 Redistributable (x64) - 14.0.23026

    I have attached an image of the prompt that we get. The prompt appears after you choose to Upgrade the 3CX Softphone client (currently version 15). The small downloading box appears (sorry no screenshot of this), progresses, then this prompt appear.

    When I go to install it using the prompt I get told that we already have this version or newer installed. When I click 'Close', the prompt disappears and 3CX opens correctly at the latest version.

    Clients are running Windows 10 Professional x64 1703.

    EDIT: Just wanted to add that Windows 7 Professional x86 clients are not receiving this prompt. They have:
    Microsoft Visual C++ 2008 Redistributable (x86) - 9.0.30729.17
    Microsoft Visual C++ 2010 Redistributable (x86) - 10.0.40219
    Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.24123
     

    Attached Files:

    #7 D Bedford, Feb 27, 2018
    Last edited: Feb 27, 2018
  8. mcbsys

    mcbsys New Member

    Joined:
    Oct 8, 2008
    Messages:
    186
    Likes Received:
    15
    Just hit the exact same issue with the new SP4 version of 3CX Phone (15.5.10244.4).

    @LeonidasG, what is the status of this? Have you reproduced it? Scheduled a fix?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. LeonidasG

    LeonidasG Support Team
    Staff Member 3CX Support

    Joined:
    Nov 19, 2008
    Messages:
    1,500
    Likes Received:
    98
    Checking this will be one of our first priorities for the Windows Client. Once fixed, we'll likely release an updated 3CX Client which will be available to you to update on your PBX Updates Console.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. LeonidasG

    LeonidasG Support Team
    Staff Member 3CX Support

    Joined:
    Nov 19, 2008
    Messages:
    1,500
    Likes Received:
    98
    Went ahead and checked this with the exact version of Windows and Visual Studios you gave.

    The installation correctly detects that a newer version of Visual Studio is installed and so the installer continues normally and 3CX is installed correctly. I see no problems.


    I will need to see the following from you as what you're saying doesn't add up and i'm not seeing any errors here. Please provide the following:
    -Screenshot of Control Panel > Programs and Features (Specifically the "Microsoft Visual C++ part)
    -Screenshot of the error screen that you get upon installation.
    -Clean logs from %appdata%\3CXPhone for Windows\Logs
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. D Bedford

    Joined:
    Oct 17, 2017
    Messages:
    21
    Likes Received:
    8
    Requested information sent via private conversation to LeonidasG. If anyone else can also provide this, it may help to correlate any patterns that are there with our set ups.
     
  12. mcbsys

    mcbsys New Member

    Joined:
    Oct 8, 2008
    Messages:
    186
    Likes Received:
    15
    Strange ... I just installed 3CX Phone 15.5.10244.4 on top of 15.5.10244.4 (same version) and did not get a VC install prompt or error.

    Uninstalled 3CX Phone.

    Installed an old version of 3CX Phone: 15.5.7262.2. No error.

    When 3CX Phone started, accepted the prompt to download the updated version from my server. This time, I was asked about installing VC and when I accepted, got an error.

    So it seems to only happen when you are upgrading. Not sure if it happens with a direct install or if you have to use the /passive switch (as apparently done during an automatic upgrade).

    Programs and Features:
    Programs and features.png

    VC prompt:
    3CX VC install 1.png

    VC error:
    3CX VC install 2.png

    C:\Users\MyUser\AppData\Local\Temp\dd_vcredist_x86_20180404102432.log attached.

    Will send 3CX logs as PM.
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    D Bedford likes this.
  13. LeonidasG

    LeonidasG Support Team
    Staff Member 3CX Support

    Joined:
    Nov 19, 2008
    Messages:
    1,500
    Likes Received:
    98
    Thanks guys,

    I've understood that the issue is in a nutshell.
    We'll be looking into changing this part of the installer for SP5.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    D Bedford likes this.
  14. mcbsys

    mcbsys New Member

    Joined:
    Oct 8, 2008
    Messages:
    186
    Likes Received:
    15
    Great, thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.