[英]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; 准备好正确的答案取决于几个因素;
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.