How to create an installer for Visual Studio C# WPF project using wixsharp

541 views Asked by At

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.

1

There are 1 answers

2
Jakub On

You could check the CLR Version using Environment.Version property. 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).aspx

If you want to install .NET Framework sillently in the background then you can just run the Installer's exe with additional /q just like in the answer from this question: Install Dot net 4.5 silently as adependency