简体   繁体   English

如何使用wixsharp为Visual Studio C#WPF项目创建安装程序

[英]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.

相关问题 如何使用 Visual Studio C# 和 MYSQL 创建安装程序或安装程序文件并添加 MYSQL 参考以将我的项目部署到另一个系统? - how to create a setup or installer file and adding MYSQL reference using visual studio C# and MYSQL for deploy my project into another system? 如何使用Visual Studio 2010为C#Web服务项目创建.msi安装程序? - How do I create an .msi installer with Visual Studio 2010 for a C# webservices project? 如何使用 Visual Studio Code 创建 C# 项目? - How to create a C# project using Visual Studio Code? 如何在Visual C#中手动创建安装程序 - How to manually create an installer in visual c# Visual Studio 2017 C#安装程序项目未安装我的应用程序 - Visual Studio 2017 C# installer project is not installing my app C#Visual Studio安装程序设置项目输出为一个.exe - c# visual studio installer setup project output as one .exe c#Visual Studio Project安装程序从文本框中检索数据 - c# Visual Studio Project Installer retrieve data from Textbox 如何在Visual Studio / WPF / C#中创建“分配按钮” texbox? - How to create a “assign button” texbox in visual studio / wpf / c#? 如何从Visual Studio 2013 C#项目的安装程序中获取变量? - How can I obtain a variable from the installer of a visual studio 2013 c# project? 如何为我的 Visual Studio 2010 C# 项目制作安装程序? - How do I make an installer for my Visual Studio 2010 C# project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM