cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
_Michael_
Level 2

Installation of VS Redistributable fails because a newer version is already installed

Hello,

our software is compiled with
C++, Visual Studio 2017
and therefore we have provide the
Microsoft Visual C++ Redistributable for Visual Studio 2017
with the installer as a prerequisite.

Unfortunately, the installation fails because a newer version is already installed.

How do you deal with this problem? This seems to me like a problem everyone has to face using redistributables.

The log output from the redistributable is:
[CODE]
[2818:12FC][2018-08-03T12:56:19]i001: Burn v3.7.3813.0, Windows v10.0 (Build 17134: Service Pack 0), path: c:\Program Files (x86)\InstallShield\2018\SetupPrerequisites\VC 2017 Redist\vc_redist.x64.exe, cmdline: ''
[2818:12FC][2018-08-03T12:56:19]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\Michael\AppData\Local\Temp\dd_vcredist_amd64_20180803125619.log'
[2818:12FC][2018-08-03T12:56:19]i000: Setting string variable 'WixBundleOriginalSource' to value 'c:\Program Files (x86)\InstallShield\2018\SetupPrerequisites\VC 2017 Redist\vc_redist.x64.exe'
[2818:12FC][2018-08-03T12:56:19]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'c:\Program Files (x86)\InstallShield\2018\SetupPrerequisites\VC 2017 Redist\'
[2818:12FC][2018-08-03T12:56:19]i000: Setting string variable 'WixBundleName' to value 'Microsoft Visual C++ 2017 Redistributable (x64) - 14.10.25017'
[2818:12FC][2018-08-03T12:56:19]i100: Detect begin, 10 packages
[2818:12FC][2018-08-03T12:56:19]i000: Setting version variable 'windows_uCRT_DetectKey' to value '10.0.17134.165'
[2818:12FC][2018-08-03T12:56:19]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 1
[2818:12FC][2018-08-03T12:56:19]i107: Detected forward compatible bundle: {5b295ba9-ef89-4aeb-8acc-b61adb0b9b5f}, type: Upgrade, scope: PerMachine, version: 14.14.26405.0, enabled: No
[2818:12FC][2018-08-03T12:56:19]i102: Detected related bundle: {5b295ba9-ef89-4aeb-8acc-b61adb0b9b5f}, type: Upgrade, scope: PerMachine, version: 14.14.26405.0, operation: Downgrade
[2818:12FC][2018-08-03T12:56:19]i108: Detected compatible package: vcRuntimeMinimum_x64, provider: Microsoft.VS.VC_RuntimeMinimumVSU_amd64,v14, installed: {BCA8F863-9BAB-3398-B8E4-E1D0959D0943}, version: 14.14.26405, chained: {8D4F7A6D-6B81-3DC8-9C21-6008E4866727}
[2818:12FC][2018-08-03T12:56:19]i103: Detected related package: {BCA8F863-9BAB-3398-B8E4-E1D0959D0943}, scope: PerMachine, version: 14.14.26405.0, language: 0 operation: Downgrade
[2818:12FC][2018-08-03T12:56:19]i108: Detected compatible package: vcRuntimeAdditional_x64, provider: Microsoft.VS.VC_RuntimeAdditionalVSU_amd64,v14, installed: {A2999714-5C2C-3729-A911-4AE198B7B2FD}, version: 14.14.26405, chained: {E512788E-C50B-3858-A4B9-73AD5F3F9E93}
[2818:12FC][2018-08-03T12:56:19]i103: Detected related package: {A2999714-5C2C-3729-A911-4AE198B7B2FD}, scope: PerMachine, version: 14.14.26405.0, language: 0 operation: Downgrade
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.3 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.3 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.2 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.2 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.1 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.1 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.0 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.0 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: vcRuntimeMinimum_x64, state: Obsolete, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: vcRuntimeAdditional_x64, state: Obsolete, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows81_x86, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows81_x64, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows8_x86, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows8_x64, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows7_MSU_x86, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows7_MSU_x64, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: WindowsVista_MSU_x86, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: WindowsVista_MSU_x64, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i052: Condition 'VersionNT64 >= v6.0 OR (VersionNT64 = v5.2 AND ServicePackLevel >= 1)' evaluates to true.
[2818:12FC][2018-08-03T12:56:19]i199: Detect complete, result: 0x0
[2818:07F0][2018-08-03T12:56:23]e000: Error 0x80070666: Cannot install a product when a newer version is installed.
[/CODE]
Labels (1)
0 Kudos
(4) Replies
Jenifer
Flexera Alumni

_Michael_ wrote:
Hello,

our software is compiled with
C++, Visual Studio 2017
and therefore we have provide the
Microsoft Visual C++ Redistributable for Visual Studio 2017
with the installer as a prerequisite.

Unfortunately, the installation fails because a newer version is already installed.

How do you deal with this problem? This seems to me like a problem everyone has to face using redistributables.

The log output from the redistributable is:
[CODE]
[2818:12FC][2018-08-03T12:56:19]i001: Burn v3.7.3813.0, Windows v10.0 (Build 17134: Service Pack 0), path: c:\Program Files (x86)\InstallShield\2018\SetupPrerequisites\VC 2017 Redist\vc_redist.x64.exe, cmdline: ''
[2818:12FC][2018-08-03T12:56:19]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\Michael\AppData\Local\Temp\dd_vcredist_amd64_20180803125619.log'
[2818:12FC][2018-08-03T12:56:19]i000: Setting string variable 'WixBundleOriginalSource' to value 'c:\Program Files (x86)\InstallShield\2018\SetupPrerequisites\VC 2017 Redist\vc_redist.x64.exe'
[2818:12FC][2018-08-03T12:56:19]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'c:\Program Files (x86)\InstallShield\2018\SetupPrerequisites\VC 2017 Redist\'
[2818:12FC][2018-08-03T12:56:19]i000: Setting string variable 'WixBundleName' to value 'Microsoft Visual C++ 2017 Redistributable (x64) - 14.10.25017'
[2818:12FC][2018-08-03T12:56:19]i100: Detect begin, 10 packages
[2818:12FC][2018-08-03T12:56:19]i000: Setting version variable 'windows_uCRT_DetectKey' to value '10.0.17134.165'
[2818:12FC][2018-08-03T12:56:19]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 1
[2818:12FC][2018-08-03T12:56:19]i107: Detected forward compatible bundle: {5b295ba9-ef89-4aeb-8acc-b61adb0b9b5f}, type: Upgrade, scope: PerMachine, version: 14.14.26405.0, enabled: No
[2818:12FC][2018-08-03T12:56:19]i102: Detected related bundle: {5b295ba9-ef89-4aeb-8acc-b61adb0b9b5f}, type: Upgrade, scope: PerMachine, version: 14.14.26405.0, operation: Downgrade
[2818:12FC][2018-08-03T12:56:19]i108: Detected compatible package: vcRuntimeMinimum_x64, provider: Microsoft.VS.VC_RuntimeMinimumVSU_amd64,v14, installed: {BCA8F863-9BAB-3398-B8E4-E1D0959D0943}, version: 14.14.26405, chained: {8D4F7A6D-6B81-3DC8-9C21-6008E4866727}
[2818:12FC][2018-08-03T12:56:19]i103: Detected related package: {BCA8F863-9BAB-3398-B8E4-E1D0959D0943}, scope: PerMachine, version: 14.14.26405.0, language: 0 operation: Downgrade
[2818:12FC][2018-08-03T12:56:19]i108: Detected compatible package: vcRuntimeAdditional_x64, provider: Microsoft.VS.VC_RuntimeAdditionalVSU_amd64,v14, installed: {A2999714-5C2C-3729-A911-4AE198B7B2FD}, version: 14.14.26405, chained: {E512788E-C50B-3858-A4B9-73AD5F3F9E93}
[2818:12FC][2018-08-03T12:56:19]i103: Detected related package: {A2999714-5C2C-3729-A911-4AE198B7B2FD}, scope: PerMachine, version: 14.14.26405.0, language: 0 operation: Downgrade
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.3 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.3 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.2 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.2 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.1 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.1 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.0 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i052: Condition '(VersionNT = v6.0 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: vcRuntimeMinimum_x64, state: Obsolete, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: vcRuntimeAdditional_x64, state: Obsolete, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows81_x86, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows81_x64, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows8_x86, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows8_x64, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows7_MSU_x86, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: Windows7_MSU_x64, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: WindowsVista_MSU_x86, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i101: Detected package: WindowsVista_MSU_x64, state: Absent, cached: None
[2818:12FC][2018-08-03T12:56:19]i052: Condition 'VersionNT64 >= v6.0 OR (VersionNT64 = v5.2 AND ServicePackLevel >= 1)' evaluates to true.
[2818:12FC][2018-08-03T12:56:19]i199: Detect complete, result: 0x0
[2818:07F0][2018-08-03T12:56:23]e000: Error 0x80070666: Cannot install a product when a newer version is installed.
[/CODE]


Here you can try handle it via adding registry based condition to detect VS2017 existence,did you give a try?

Thanks,
Jenifer
0 Kudos
_Michael_
Level 2

Hi Jenifer,

no - I haven't tried it - your idea sounds good - though I would have thought Flexera should take care about this.

Unfortunately, I don't see a way to create a dependency that the Redistributable should only be installed when a certain registry is set. In the properties of
2) Specify Application Data -> Redistributables
it does not look to me like there is a simple way to implement this.

Do you know of a tutorial/example?

Probably it is possible going over the Custom Actions and doing everything by hand (which is not my preferred way - but maybe the only possible).

Have a nice day
Michael
0 Kudos
Jenifer
Flexera Alumni

_Michael_ wrote:
Hi Jenifer,

no - I haven't tried it - your idea sounds good - though I would have thought Flexera should take care about this.

Unfortunately, I don't see a way to create a dependency that the Redistributable should only be installed when a certain registry is set. In the properties of
2) Specify Application Data -> Redistributables
it does not look to me like there is a simple way to implement this.

Do you know of a tutorial/example?

Probably it is possible going over the Custom Actions and doing everything by hand (which is not my preferred way - but maybe the only possible).

Have a nice day
Michael


You can set registry based setting as a detection condition,so that pre-requisite won't get installed on existence of certain key.Please find the snap for details

Hope it helps,
Jenifer
0 Kudos

Is your solution in the attachment available with Installshield Express?  I was not able to find these screens in my 2015 version.  If this support is not available in Express what do you recommend. Thanks.

steve

0 Kudos