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?

Fri Feb 19, 2021 4:57 am

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.88KiB)Viewed 11101 times

Catalin
Posts: 6541
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?

Fri Feb 19, 2021 4:28 pm

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?

Mon Feb 22, 2021 3:33 am

Hi Catalin,

Thanks for your quick help.

Best Regards,
Justin

Catalin
Posts: 6541
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?

Mon Feb 22, 2021 2:57 pm

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?

Wed Feb 24, 2021 8:47 am

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: 6541
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?

Wed Feb 24, 2021 7:24 pm

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.35KiB)Viewed 11057 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?

Thu Feb 25, 2021 9:04 am

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: 6541
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?

Thu Feb 25, 2021 3:36 pm

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”