[英]How to create an installer for Visual Studio C# WPF project using wixsharp
I want to create an installer with wixsharp for my visual studio c # WPF application
. 我想为我的Visual Studio
c # WPF application
程序使用wixsharp创建一个安装c # WPF application
。 In order for the user to install my application, I have to check if .NET 4.6
is installed or not. 为了使用户安装我的应用程序,我必须检查是否已安装
.NET 4.6
。
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) 如果是这种情况,我将继续进行安装,否则,我必须以静默方式安装
.NET 4.6
(用户必须单击“下一步”以安装.NET
,然后再继续安装我的应用程序)
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.
那么如何使用wixsharp做到这一点。
Thank you in advance. 先感谢您。
You could check the CLR Version using Environment.Version
property. 您可以使用
Environment.Version
属性检查CLR版本。 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 您可以在下面阅读有关CLR版本与.NET Framework版本本身之间关系的更多信息: https : //msdn.microsoft.com/zh-cn/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 如果您想在后台静默安装.NET Framework,则只需使用附加
/q
运行安装程序的exe,就像在此问题的答案中一样: 静默安装Dot net 4.5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.