简体   繁体   English

如何为WPF应用程序和ASP.net应用程序创建安装程序?

[英]How can I create an installer for a WPF application as well as a ASP.net application?

I have a Visual Studio 2017 project that contains a WPF application and a ASP.net application that interact through a database. 我有一个Visual Studio 2017项目,其中包含通过数据库进行交互的WPF应用程序和ASP.net应用程序。

I am currently using this to create an installer for the entire project. 我目前正在使用来为整个项目创建一个安装程序。

The problem I'm having is that I can successfully create an installer for the WPF application, but not the ASP.net application. 我遇到的问题是我可以为WPF应用程序成功创建安装程序,但不能为ASP.net应用程序创建安装程序。 Is there a way I can create an installer that installs both applications on a separate computer? 有什么方法可以创建将两个应用程序安装在单独计算机上的安装程序?

Thanks 谢谢

Usually, you have to choose a tool or set of tools to generate an installer for your projects to be deployed in your users'/consumers' computers. 通常,您必须选择一个或一组工具来生成要在用户/消费者的计算机中部署的项目的安装程序。 There are lots of available options. 有很多可用的选项。 Some are free, some are paid (and quite expensive). 有些是免费的,有些是付费的(而且非常昂贵)。

Free ones include WiX Toolset and InstallForge . 免费的包括WiX ToolsetInstallForge Paid ones tend to be a lot easier to use and offer more ready-to-use features, and examples of these are InstallShield and Advanced Installer . 付费功能通常更易于使用,并提供更多现成的功能,例如InstallShieldAdvanced Installer

I personally use WiX, as it offers quite interesting features, it is free, and has a huge comunity. 我个人使用WiX,因为它提供了非常有趣的功能,它是免费的,并且具有很大的社区性。 On the other hand, its learning curve can be quite steep, depending on your specific needs. 另一方面,它的学习曲线可能会非常陡峭,具体取决于您的特定需求。

Many other options are available. 还有许多其他选项。 For a simpler (although much less flexible) solution for WinForms and WPF projects, check out ClickOnce . 有关WinForms和WPF项目的更简单(尽管灵活性稍差)的解决方案,请查看ClickOnce

也许您可以尝试Inno设置: http ://www.jrsoftware.org/isinfo.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何为ASP.Net Web应用程序创建完整的安装程序 - How to create complete installer for ASP.Net web application 如何在 WPF 和 ASP.NET 应用程序之间进行通信? - How do I communicate between a WPF and ASP.NET application? 如何在ASP.NET页面中添加WPF浏览器应用程序 - How can I add wpf browser application in asp.net page 如何使用Wix Toolset为ASP.NET Core应用程序创建MSI安装程序 - How to create MSI installer for ASP.NET Core application using Wix Toolset 我如何将一个简短的 ASP.NET WebForms 应用程序迁移到 ASP.NET MVC 应用程序? - How i can migrate a short ASP.NET WebForms Application to ASP.NET MVC Application? 如何在 ASP.NET MVC 应用程序中使用 AntiForgeryToken 创建元标记? - How can I create meta tag with the AntiForgeryToken in ASP.NET MVC application? 如何在WPF项目中将应用程序设置添加到安装程序中? - How can I add the application settings to my installer in a WPF project? 如何在ASP.NET应用程序中使用收件人打开Outllook - How I can open Outllook with Recipient in a ASP.NET Application 如何在 asp.net 应用程序中使用 Graphviz? - How can I use Graphviz in an asp.net application? 我如何在asp.net应用程序中修复MAC错误? - How I can fix MAC error in asp.net application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM