I got at task to extend en existing WinForm application to make a check weather or not the required .NET Framework (fx. 3.5) is installed.
Well the issues is that - if there is no .NET Framework installed, the winform program is not able to run at all... I assume.
I could (maybe) do like suggested here: (and make a c++ program that should start first, make the check and then launch the application) Check on .Net framework version from WinForms app But I would rather not go into c++.
Another way seems to be this solution: Why isn't an exception thrown when the right .NET framework version is not present? ... where you configure your application in app.config. But I doubt that will work if there i no .NET framework installed.
<startup>
<supportedRuntime version="v3.5" />
</startup>
So my question is what is Best Practice in this area? Should I make the check one way or the other, or should I just make it a pre-requisite, that fx. .NET Framework version 3.5 is demanded?