Hello Mel,
In order to install .NET Framework before installing the main package, all you need to do is add it as a pre-install prerequisite.
If the version of .NET Framework on the respective machine will be lower than 4.7, then the 4.7 version will be installed.
How can i put that prerequisite so that the installer does not continue unless the version of .net is 4.7 or higher ?
Normally, this could be done by unchecking the
"Continue with main installation even if the prerequisite was not installed" option.
However, I would advise against this, because the .NET Framework installation is a little bit strange.
Normally, that option will check the
"Install Conditions" once again after the prerequisite is installed. In case of .NET Framework, the install condition is a registry query. This would work fine with pretty much every prerequisite, however .NET Framework updates the registry entries only after a reboot, meaning that the check will fail, resulting in an error.
Best regards,
Catalin