简体   繁体   English

仅使用.Net Framework安装WPF应用程序

[英]Install WPF application using only .Net Framework

I have developed WPF application using VS 2013. 我已经使用VS 2013开发了WPF应用程序。

How do I install this application and run in some other PC without Visual Studio, using just only framework? 如何仅使用框架安装此应用程序并在没有Visual Studio的其他PC上运行?

A good way to distribute WPF applications, is ClickOnce 分发WPF应用程序的一种好方法是ClickOnce

You can place your application on a server, users can click on the link to install it. 您可以将应用程序放置在服务器上,用户可以单击链接进行安装。 If you like, you can provide settings to automatically check for updates. 如果愿意,可以提供设置以自动检查更新。

The application can be made to run in an offline mode, and will make an entry under the Start button as well as in Control Panel to allow uninstall. 可以使该应用程序以脱机模式运行,并将在“开始”按钮以及“控制面板”中进行输入以允许卸载。

It will run in an Isolated Storage sandbox, so this may not be appropriate for all applications, or may require some minor code changes. 它将在“隔离存储”沙箱中运行,因此这可能不适用于所有应用程序,或者可能需要进行一些小的代码更改。 But, I have had many programs that just worked when turned into ClickOnce deployments. 但是,当转换为ClickOnce部署时,我有许多程序可以正常工作。

NOTE: You may want to invest in a code signing cert to remove any warnings the end user will see. 注意:您可能需要投资代码签名证书,以消除最终用户将看到的任何警告。 Or adjust Code Access Security of the destination machines if they are within your control. 或调整目标计算机的代码访问安全性(如果它们在您的控制范围内)。

The right answer ready depends on a few factors; 准备好正确的答案取决于几个因素;

  1. Where are your users (anywhere, corp. network) 您的用户在哪里(公司网络在任何地方)
  2. How often do you want to update the application, should it be automatic 您应该多久更新一次应用程序,如果它是自动的
  3. Will you deploy a database 您会部署数据库吗

As it stands this link provides some options Deploying a WPF Application (WPF) 就目前而言,此链接提供了一些选项部署WPF应用程序(WPF)

If you update the questions with more detail, perhaps we can provide more specific suggestions. 如果您更详细地更新问题,也许我们可以提供更具体的建议。

The easiest way - ClickOnce. 最简单的方法-ClickOnce。 To use it: Project -> Property -> Publish. 要使用它:项目->属性->发布。 Another popular option - InnoSetup ( http://www.jrsoftware.org/isinfo.php ). 另一个流行的选项-InnoSetup( http://www.jrsoftware.org/isinfo.php )。

暂无
暂无

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

相关问题 部署WPF浏览器应用程序时如何提示安装.NET Framework? - How to prompt to install .NET Framework when deploying a WPF Browser Application? 如何在只有.NET Framework 4.0和4.5的系统上支持.NET Framework 3.0 WPF应用程序? - How to support .NET Framework 3.0 wpf application on the system that has only .NET Framework 4.0 & 4.5? WPF多.NET Framework兼容性应用程序开发 - WPF multi .NET Framework compatibility application developing 如何使用 Visual Studio 2017 在 .Net Framework v4.6.1 应用程序中安装实体框架 - How to install Entity Framework in a .Net Framework v4.6.1 application using Visual Studio 2017 在Vista中使用应用程序安装(激活).NET 3.0 Framework - Install (activate) .NET 3.0 Framework with an application in Vista 将WPF应用程序迁移到.net Framework 4.5.1之后的实体框架异常 - Entity Framework exception after migrating WPF application to .net Framework 4.5.1 是否有直接方法将WPF .NET Framework应用程序转换为UWP .NET Core? - Is there a straightforward way to convert a WPF .NET Framework application to UWP .NET Core? 是否可以使用 .NET 7 运行 .NET 框架 WPF 应用程序? (Windows 10) - Is it possible to run .NET Framework WPF application with .NET 7? (Windows 10) WPF触摸应用程序(部分)在.NET Framework 4.7上冻结 - WPF touch application (partially) freezes on .NET Framework 4.7 WPF应用程序部署XAML分析错误-.NET Framework版本问题 - WPF Application deployment XAML parsing errors - .NET Framework version issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM