I want to create an installer with wixsharp for my visual studio c # WPF application.
In order for the user to install my application, I have to check if .NET 4.6 is installed or not.
If this is the case, I proceed with the installation otherwise, I must install .NET 4.6 in silent mode (the user must click next to install the .NET, after that proceed to install my application with a other next)
This is the first time I am creating an installer for an application and I have no any idea about that. so how to do that using wixsharp.
Thank you in advance.
You could check the CLR Version using
Environment.Versionproperty. Below you can read more about relationship between the CLR version and the .NET Framework's version itself: https://msdn.microsoft.com/en-us/library/system.environment.version(v=vs.110).aspxIf you want to install .NET Framework sillently in the background then you can just run the Installer's exe with additional
/qjust like in the answer from this question: Install Dot net 4.5 silently as adependency