简体   繁体   English

部署在Visual Studio 2010 Express Edition中制作的C#应用​​程序

[英]Deploy my C# application made in Visual Studio 2010 Express Edition

I have finished my entire application in Visual Studio C# 2010, and it is 100% working. 我已经在Visual Studio C#2010中完成了整个应用程序,并且100%正常工作。 What is the best way to deploy my application? 部署我的应用程序的最佳方法是什么?

I need it to be a single file, and I need it to install: my executable, a help documentation file, .NET 4 client profile, and an icon to a certain directory. 我需要将其作为一个文件,并且需要安装:可执行文件,帮助文档文件,.NET 4客户端配置文件以及特定目录的图标。 I tried the ClickOnce application, but it didn't have any good way to package the additional files I needed together. 我尝试了ClickOnce应用程序,但是它没有将我需要的其他文件打包在一起的任何好方法。 I can't use the setup project, since I only have the Express version of Visual Studio. 我无法使用安装项目,因为我只有Visual Studio的Express版本。

I found a program called Inno Setup that I am currently using. 我找到了一个当前正在使用的名为Inno Setup的程序 It compiles the installer for me and everything works great, except I can't find a way to include the .NET 4 client profile in the installation; 它可以为我编译安装程序,并且一切正常,除了我找不到在安装中包括.NET 4客户端配置文件的方法之外; as a result when trying to install my application on other computers it always throws errors until the user goes to Microsoft's website and downloads .NET; 结果,当尝试在其他计算机上安装我的应用程序时,它总是会引发错误,直到用户访问Microsoft网站并下载.NET为止; while this works it is not user friendly at all and most of the clientele that will be using my software is less than computer savvy. 尽管此方法有效,但它对用户并不友好,并且将要使用我的软件的大多数客户都不是精通计算机的人。

How can I fix this problem? 我该如何解决这个问题?

Look into using Windows Installer XML (WiX) . 研究使用Windows Installer XML(WiX) You can create a Windows Installer package that installs your executable, help file, shortcuts, etc. The .NET 4 client profile can be included with a bootstrapper. 您可以创建Windows Installer程序包来安装可执行文件,帮助文件,快捷方式等。引导程序可以包含.NET 4客户端配置文件。 The bootstrapper would invoke the client profile setup if needed, then invoke your Windows Installer package. 引导程序将在需要时调用客户端配置文件设置,然后调用Windows Installer程序包。 Recently, WiX has been including a new system which does just that, called Burn. 最近,WiX包含了一个可以执行此操作的新系统,称为Burn。

Windows Installer is the standard installer package format on Windows, and can easily be deployed in many scenarios. Windows Installer是Windows上的标准安装程序包格式,可以在许多情况下轻松部署。 3rd-party systems typically have many shortcomings compared to Windows Installer, which is why I avoid systems like Inno Setup. 与Windows Installer相比,第三方系统通常存在许多缺点,这就是为什么我避免使用Inno Setup之类的系统的原因。

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

相关问题 Visual Studio C#2010快递版中的对象浏览器在哪里? - Where is the object browser in visual studio C# 2010 express edition? 如何使用ClickOnce部署我的C#(4.0)Visual Studio 2010基于Windows窗体的应用程序? - How to use ClickOnce to deploy my C#(4.0)Visual studio 2010 windows form based Application? 如何在Visual Studio C#2010 Express Edition中创建DLL文件? - How to Create a DLL file in Visual Studio C# 2010 Express edition? Visual Studio 2010 Express C#限制 - Visual Studio 2010 Express C# limitations 在Visual Studio Express Edition C#中确定.dll依赖项 - Determining .dll dependencies in Visual Studio Express Edition C# 如何在 Microsoft Visual C# 2010 Express 中部署项目? - How to deploy a project in Microsoft Visual C# 2010 Express? Visual C#Express 2010从Visual Studio导入项目 - Visual C# Express 2010 Importing a project from Visual Studio 如何在Visual Studio 2010中使用SQL Server 2012数据库打包和部署C#桌面应用程序? - How to package and deploy a C# desktop application with a SQL Server 2012 database in Visual Studio 2010? Microsoft Visual Studio C#2010 Express:可以调试但不能构建 - Microsoft Visual Studio C# 2010 Express: Can debug but not build Visual Studio C#2010 Express代码编辑器和“ - ”字符 - Visual Studio C# 2010 Express code editor and “-” characters
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM