Prerequisites needed only for non-Windows 10

Common questions about using Actual Installer.
Post Reply
dgdavidge
Posts: 3
Joined: Wed Apr 15, 2015 12:04 am

Prerequisites needed only for non-Windows 10

Post 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?
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Prerequisites needed only for non-Windows 10

Post 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
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply