简体   繁体   English

在单个可执行文件中使用.NET 3 / 3.5部署WPF应用程序

[英]Deploy a WPF application with .NET 3/3.5 in a single executable

I have developed a WPF application and the customer is planning to deploy the application on DVDs. 我已经开发了WPF应用程序,客户计划将其部署在DVD上。

My application is really simple and doesn't require any setup process, but I need to assure that if the client doesn't have .NET 3 installed that it will be installed locally (from the DVD) before starting the WPF application. 我的应用程序非常简单,不需要任何设置过程,但是我需要确保,如果客户端未安装.NET 3,它将在启动WPF应用程序之前在本地(从DVD)安装。

So, what's the easiest was to add the .NET 3/3.5 package locally on my DVD and assure it'll be installed before running my application? 因此,最简单的方法是在DVD本地添加.NET 3 / 3.5软件包,并确保在运行应用程序之前将其安装? Remeber that my application will be a standalone application. 请记住,我的应用程序将是一个独立的应用程序。

I would suggest using Visual Studio Setup Project for creating a setup package which would check for prerequisites and provide fundamental features like file system, registries, scripting. 我建议使用Visual Studio安装项目来创建安装程序包,该程序包将检查先决条件并提供诸如文件系统,注册表,脚本等基本功能。 It is very easy to get started with. 入门非常容易。 Take a look here for a brief walkthrough . 看一下这里的简短演练

when you use the publish option... 当您使用发布选项时... 在此处输入图片说明

The Project Properties has a place to specify the dependancies that will need to be downloaded 项目属性中有一个地方来指定需要下载的依赖项

在此处输入图片说明

then you simply check the boxes 然后您只需选中复选框 在此处输入图片说明

there are other more complex ways to go abaout this but for .net 3.5 you don't have to go far 还有其他更复杂的方法可以解决这个问题,但对于.net 3.5,您不必走太远

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM