Prerequisites needed only for non-Windows 10

Common questions about using Actual Installer.

Prerequisites needed only for non-Windows 10

Postby dgdavidge » Thu Dec 15, 2016 10:20 pm

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?
dgdavidge
 
Posts: 3
Joined: Wed Apr 15, 2015 12:04 am

Re: Prerequisites needed only for non-Windows 10

Postby Leo » Tue Dec 20, 2016 9:07 am

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
http://www.actualinstaller.com
Leo
Site Admin
 
Posts: 282
Joined: Fri Jan 22, 2010 12:40 pm


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron