Justin
Posts: 44
Joined: Sun Oct 18, 2020 5:53 pm

How to detect version of Microsoft Visual C++ 2015-2019 Redistributable (x64)/(x86) installed on machine?

Hi,
As title, how to detect version of Microsoft Visual C++ 2015-2019 Redistributable (x64)/(x86) installed on machine?
I get the version from the registry "HKLM\SOFTWARE\Microsoft\DevDiv\VC\Servicing\14.0\RuntimeMinimum\Version", am I right?
If it is, How do I set the condition to install the redistributable if the installed version is less than our packaged version? I did not see the "less than version" search criteria in Edit Search dialog.

Thanks,
Best Regards,
Justin
Attachments
Image 5.jpg
Image 5.jpg (227.88 KiB) Viewed 11222 times
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: How to detect version of Microsoft Visual C++ 2015-2019 Redistributable (x64)/(x86) installed on machine?

Hello Justin,

As you can see, the condition is automatically configured when you add the predefined prerequisite.
I get the version from the registry "HKLM\SOFTWARE\Microsoft\DevDiv\VC\Servicing\14.0\RuntimeMinimum\Version", am I right?
This is indeed correct.
If it is, How do I set the condition to install the redistributable if the installed version is less than our packaged version? I did not see the "less than version" search criteria in Edit Search dialog.
For this, you can use the "Minimum" field from under "Required Versions" section. If the installed version will not be higher than the "Minimum" version you provide, then the prerequisite will be installed.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Justin
Posts: 44
Joined: Sun Oct 18, 2020 5:53 pm

Re: How to detect version of Microsoft Visual C++ 2015-2019 Redistributable (x64)/(x86) installed on machine?

Hi Catalin,

Thanks for your quick help.

Best Regards,
Justin
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: How to detect version of Microsoft Visual C++ 2015-2019 Redistributable (x64)/(x86) installed on machine?

You are always welcome, Justin!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Justin
Posts: 44
Joined: Sun Oct 18, 2020 5:53 pm

Re: How to detect version of Microsoft Visual C++ 2015-2019 Redistributable (x64)/(x86) installed on machine?

Hi Catalin,
I found that if we install VC++ 2015-2019 redistributable (x64) will change the the value of "HKLM\SOFTWARE\Microsoft\DevDiv\VC\Servicing\14.0\RuntimeMinimum\Version" and "HKLM\SOFTWARE\WOW6432Node\Microsoft\DevDiv\VC\Servicing\14.0\RuntimeMinimum\Version" registry.
So I don't know how to check the information of redistributable (x86) installation. Do you have any idea for this?
Thanks!

Best Regards,
Justin
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: How to detect version of Microsoft Visual C++ 2015-2019 Redistributable (x64)/(x86) installed on machine?

Hello Justin,

I have tested this and you are indeed right, both the 64-bit and 32-bit registry nodes are modified.

However, after having a look over the install condition that we use for the 32-bit version of the VC++ Redistributable 2015-2019, I have noticed that there are actually two conditions - namely the registry one and this:
AdditionalCondition.png
AdditionalCondition.png (15.35 KiB) Viewed 11178 times

I have run some tests and the detection works as expected.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Justin
Posts: 44
Joined: Sun Oct 18, 2020 5:53 pm

Re: How to detect version of Microsoft Visual C++ 2015-2019 Redistributable (x64)/(x86) installed on machine?

Hi Catalin,
Thanks for your kindly help. This method is no useful for me. I will find other way to check.

Best Regards,
Justin
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: How to detect version of Microsoft Visual C++ 2015-2019 Redistributable (x64)/(x86) installed on machine?

You are always welcome, Justin!

Please let me know if there is anything else you require assistance with and I will gladly assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”