Microsoft Visual Studio 2017 Installer Projects launch condition check not work for .net 4.7.1

1.8k Views Asked by At

I am using visual studio professional at version: This version announced as supported .net framework 4.7.1

I installed the Microsoft Visual Studio 2017 Installer Projects extension from the market.

Generate a visual studio setup project to generate MSI for a .net framework windows service console application, inside "Launch Condition" tag, set the .net framework version is target to 4.7.1.

The msi launch check works fine in any system below 4.7 like (4.6.1/4.6/4.5.2....) the launch check will prevent installer to be launched, but in OS system with windows 2012 R2 with .net 4.7 installed, the launch check should expected also as failed. But .net 4.7 pass the launch check and continually launch the installer.

Is anyone facing the same problem and is there a solution for this? I need to support launch check of .net 4.7.1 in my Microsoft Visual Studio 2017 installer project.

1

There are 1 best solutions below

0
On

It is happening because Microsoft Visual Studio installer considers only first two digits of version. To overcome from this situation you can create Launching condition to prevent installer to be launched if required version of .Net framework is 4.7.1 is not installed even 4.7 is installed on machine.

See Defining Launching Conditions section in https://help.sap.com/doc/saphelp_nwgwpam_1/1.0.4/en-US/c5/88c211fa174464800b9d457182e4be/content.htm?no_cache=true