Page 1 of 1

Prerequisites needed only for non-Windows 10

Posted: Thu Dec 15, 2016 10:20 pm
by dgdavidge
I am working with a program that requires C++ Redistributable for Visual Studio 2015 unless running on Windows 10 where the functionality is built in. The registry key that is present in Win 7 or Win 8.1 is not present in Win 10. When I enter an Additional Prerequisite to test for the key, it won't let the user install my program on a Win 10 machine. I have not tried installing the redistributable on Win 10 for fear of damaging the system. Is there a way to make it only install the redistributable only if the key is not present and it is not Win 10?

Re: Prerequisites needed only for non-Windows 10

Posted: Tue Dec 20, 2016 9:07 am
by Leo
You can try an alternative way of checking if C++ is installed:
Just check the version of the following file:
%SystemRoot%\SysWOW64\vcruntime140.dll

In Actual Installer, in the Prerequisites \ Additional Prerequisites section add:

Code: Select all

Name: Microsoft Visual C++ 2010 Redistributable Package (x86)
Command: https://www.microsoft.com/en-us/download/details.aspx?id=5555
Platform: Any
Condition: File Version greater or equal
Value 1: <SystemDir>\vcruntime140.dll
Value 2: 14.0