NSIS 与 WiX 与任何其他安装包
需要创建一个安装包,需要 a)安装数据库, b) 创建数据库和表, c) 安装已在 Visual Studio 中创建的可安装版本, d) 创建 ODBC 数据源, e) 复制文件。 f) 创建快捷方式等
您能建议使用哪一个吗?为了简化,以下是我的标准(降序)
- 稳定
- 满足我的所有需求。
- 简单易学,
可以推荐一下吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您想使用WiX,您至少需要基本了解Windows 安装程序 有效。最好的参考是The Definitive Guide to Windows Installer,它贯穿了所有内容基础知识以及使用 Visual Studio 和 Orca 的示例。
一旦您了解了 Windows Installer,WiX 就非常容易学习。。
正确编写的 Windows Installer 程序包将比您想象的任何其他程序包都更加稳定和有弹性。你需要一个月左右的时间来熟悉它,随着时间的推移,你会变得更好并了解更多。
另一方面,NSIS 只需要一天的时间即可学会 - 它只是一种简单的脚本语言。
@wcoenen - 我同意你肯定会通过阅读 WiX 团队的各种博客学到更多,但我个人发现这本书提供了非常坚实的基础,这使得更容易理解他们正在谈论的概念。
@Sandeep - 您需要一个用于企业软件的 MSI 软件包,如果您无意将您的产品出售给需要在锁定环境中进行自动化部署的客户,那么 NSIS 就很适合您:)
在我看来,@romkyns InnoSetup 相当有限,您可以使用批处理文件和自解压 EXE 完成同样的工作 - 这一切都取决于您的目标市场,企业/企业客户需要 MSI - 家庭用户并不关心它是否有效,并且会很乐意双击一个 SETUP.BAT 文件:)
If you want to use WiX, you need at least a basic understanding of how Windows Installer works. The best reference around is The Definitive Guide to Windows Installer, which runs through the all basics with examples using Visual Studio and Orca.
WiX is very easy to learn once you understand Windows Installer.
A properly written Windows Installer package will be more stable and resilient than anything else you can imagine. It'll take a month or so to get your head around it, and you'll get better and learn more about it over time.
On the other hand, NSIS only takes a day to learn - it's just a simple scripting language.
@wcoenen - I'd agree that you definitely will learn more by reading various blogs of those on the WiX team, but I personally find that particular book gives a really solid foundation which makes it easier to understand the concepts they're talking about.
@Sandeep - You need an MSI package for corporate software, if you have no intention of selling your product to customers who need automated deployment in a locked down environment then NSIS will suit you just fine :)
@romkyns InnoSetup is fairly limited in my opinion, you can do just as much with a batch file and a self extracting EXE - it all comes down to your target market, corporate/enterprise clients demand MSI - home users don't care as long as it works and would happily double click on a SETUP.BAT file :)
我想推荐另一个安装程序,它是 InnoSetup 与 ISTools
Innosetup 有非常好的脚本语言,并且有一个向导可以让您轻松地进行安装包,并且 ISTools 为大多数 Innosetup 选项提供了 GUI 界面,
我能够安装Mysql,它的服务并用它创建表和其他东西,而且它比其他人更容易学习。
I would like to suggest another installer which is InnoSetup combined with ISTools
Innosetup has very good scripting language, and has a wizard to make it easy for you do the installation package and ISTools have the GUI interface for most of Innosetup options,
I was able to Install Mysql, its service and creating tables and other things with it, and it's much easier to learn than others.
这取决于您要安装的内容。如果是简单的应用程序安装,那么NSIS是快速且容易实现的(wix的文档非常糟糕)。
但是,如果您的安装程序在 Windows 操作系统中进行了一些更改,例如创建还原点、安装 kmdf 或 umdf 驱动程序,那么 WIX 比 NSIS 好得多。
It depends on what you are trying to install. If it is a simple application installation, then NSIS is fast and easy to implement (wix has a very bad documentation).
But if your installer does some changes in Windows OS, like, creating restore point, installing kmdf or umdf driver, then WIX is much better than NSIS.