[英]How do I create a valid installation package?
I'm using the latest Visual Studio 2010, with C# 3.5 and my project is working fine on my machine. 我正在使用带有C#3.5的最新Visual Studio 2010,并且我的项目在我的计算机上运行正常。
I'm using SQLite for the database, and it's just a little .db file. 我正在使用SQLite作为数据库,它只是一个小的.db文件。
What's the best way for me to package this simple little application? 对我来说,打包这个简单的小应用程序的最佳方法是什么?
What is the preferred way to create a project that's setup for deployment? 创建要部署的项目的首选方法是什么?
I'm assuming that your app is to be run on a desktop - if that's not the case you'll have to clarify. 我假设您的应用程序将在台式机上运行-如果不是这种情况,则需要澄清。
You need to add a setup & deployment project to your solution and configure it to install the build output from your application as well as whatever content you want (ie: your .db file) onto the end user's machine. 您需要向您的解决方案中添加一个设置和部署项目,并对其进行配置,以将应用程序的构建输出以及所需的任何内容(即.db文件)安装到最终用户的计算机上。
The process is fairly straightforward and there are TONS of tutorials online -- Google is your friend for nitty gritty details. 这个过程非常简单,在线上有大量的教程-Google是您的朋友,了解详细的细节。
You can always use NSIS (from Nullsoft). 您始终可以使用NSIS(来自Nullsoft)。 Free and really a pleasure to work with.
免费,而且真的很愉快。 It comes with samples and tutorials and you will find a lot of info on Google.
它附带示例和教程,您会在Google上找到很多信息。
You can deploy your app in a few minutes if you don't want too much installer customization. 如果您不想过多地定制安装程序,则可以在几分钟内部署您的应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.