简体   繁体   English

免费或低成本的MSI安装程序.Net

[英]MSI installer for .Net free or low cost!

Hi I'm looking to deploy my first .Net 4.0 app. 嗨,我正在寻找部署我的第一个.Net 4.0应用程序。 I know VS comes with an installer project and a free version of InstallShield, however the free version of install shield doesn't do what I need, or so I think, and the MS installer is end of life so don't want to learn it! 我知道VS带有一个安装程序项目和一个免费版本的InstallShield,但安装版本的免费版本不能满足我的需求,或者我认为,MS安装程序已经过时了,所以不想学习它!

What is everyone using? 每个人都在使用什么? I have in the past used NSIS but it doesn't build MSI's and it was a problem to some people who wanted it as an MSI. 我过去曾使用过NSIS,但它没有构建MSI,对于那些希望它作为MSI的人来说这是一个问题。

Here is what I need to do during installation, in addition to the normal stuff: manipulate an XML file on the target machine. 除了正常的东西之外,这是我在安装过程中需要做的事情:在目标机器上操作XML文件。 Call a COM object 调用COM对象

Any recommendations (i don't have 150+ to spend on an installer)? 任何建议(我没有150+花在安装程序上)?

WiX is free (as in speech and as in beer), but you're going to hate the learning curve. WiX是免费的(如在演讲和啤酒中),但你会讨厌学习曲线。

You can definitely modify XML files , though. 但是,您肯定可以修改XML文件

I have had great success with this tool. 我用这个工具取得了很大的成功。 It has a free version that has many capabilities out of the box. 它有一个免费版本,具有许多开箱即用的功能。 I think it will do the job for you. 我认为它会为你完成这项工作。

http://www.advancedinstaller.com/ http://www.advancedinstaller.com/

Here is the feature matrix, to tell you what you don't get with the free version: 这是功能矩阵,告诉你使用免费版本没有得到的东西:

Feature Matrix 特征矩阵

You may or may not have found this already, but it is possible to execute Custom Actions in the InstallShield Limited Edition version bundled with VS2010, using a deployed EXE, VBScript or JavaScript. 您可能已经或可能没有找到这个,但可以使用已部署的EXE,VBScript或JavaScript在VS2010捆绑的InstallShield Limited Edition版本中执行自定义操作。

The number of points at which you can execute the custom action are greatly reduced in the free version, but should enable you to write the appropriate code to modify the XML file and call the COM object as you require. 在免费版本中,可以大大减少执行自定义操作的点数,但是应该允许您编写适当的代码来修改XML文件并根据需要调用COM对象。

Custom actions item can be found in Solution Explorer tree for the InstallShield project, under (5) Define Setup Requirements and Actions. 可以在InstallShield项目的解决方案资源管理器树中的(5)定义安装要求和操作下找到自定义操作项。

InstallShield 2010LE can consume merge modules which means you can combine it with WiX to inject things into it that it wasn't intended to do. InstallShield 2010LE可以使用合并模块,这意味着您可以将其与WiX结合使用,将不必要的东西注入其中。 Also it compliments WiX nicely in that it has the bootstrapper that WiX does not. 此外,它很好地补充了WiX,因为它具有WiX不具备的引导程序。

If your installer is really simple I'd be willing to set it up for you intially for the cost of a nice lunch. 如果您的安装程序非常简单,我愿意为您准备一份美味的午餐。

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

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