安装安装过程中是否需要安装支持文件? [英] Do I Need To Install The Supporting File During Installation Of Setup

查看:236
本文介绍了安装安装过程中是否需要安装支持文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用dotnet中的installshield限制版创建了一个安装文件。

为了在客户端计算机上安装安装文件,我是否需要在安装安装过程中安装支持文件。

解决方案

如果您的运行时需要一些预先存在的支持文件,则需要安装它们。如果您不需要它们,则无需安装它们。 :-)

但是Installshield ......你认真吗?



Installshield非常糟糕。与Visual Studio捆绑的许多版本的安装项目类型也不好;微软正在摆脱它而不用其他任何东西替换它。那么,该怎么办?



我的解决方案是使用开源安装工具集开源WiX:

http://en.wikipedia.org/wiki/WiX

http://wixtoolset.org



我最近迁移到它,我很高兴我做到了。它也不完美(整个Microsoft Installer及其API远远落后于其他技术),但它比我迄今为止听过的任何内容都要好得多。实际上,如果你使用WiX,你会明白上面提到的工具实际上几乎是非法的(技术上),他们正在使用他们的专有项目文件。只有WiX能够很好地符合现代MSBuild和相关的基于XML的项目标准,因此您可以使用标准MSBuild技术来使用WiX项目:定制它,与更大的主项目或解决方案集成,编写您自己的扩展,如果您需要的话,以及等等。



此外,它与不同版本的Visual Studio非常顺畅地集成。



最后,一个很大的好处是:WiX代码是非可视的。使用一些官方记录的XML方案,在XML代码中显式声明了所有内容。 XML代码文件背后没有任何内容。



关于行为和功能,很遗憾,很多高级功能都没有全面记录。但社区已经收集了大量经验并提供了许多有用的建议。到目前为止,我能够找到我真正需要的所有家务的解决方案。并且我在旧版安装项目中找到了一套随时可用的解决方案。需要开发自定义步骤的一些操作已经嵌入到WiX中。它包括将Windows防火墙调整到您的应用程序,设置文件和目录的权限,根据项目平台和目标平台的不同操作等等。



-SA

I have created a setup file using installshield limited edition in dotnet.
In order to install the setup file on client machine, do i need to install the supporting files during installation of setup.

解决方案

If you need some preexisting "supporting files" for your runtime, you need to install them. If you don't need them, you don't need to install them. :-)
But Installshield… are you serious?

Installshield is awful. And the setup project type bundled with many versions Visual Studio is not good, too; Microsoft is getting rid of it without replacing it with anything else. So, what to do?

My solution is using open-source WiX, the open-source installation toolset:
http://en.wikipedia.org/wiki/WiX,
http://wixtoolset.org.

I recently made a migration to it and am very glad I did. It's not perfect too (and the whole Microsoft Installer and its API is well behind other technologies), but it is much better than anything I ever heard of so far. Actually, if you use WiX, you will understand that the tools mentioned above are actually nearly illegal (technically), they are using their proprietary project files. Only WiX provide excellent compliance with the contemporary MSBuild and related XML-based project standard, so you can use WiX projects using standard MSBuild techniques: customize it, integrate with bigger master projects or solutions, write your own extensions, if you need some, and so on.

Also, it has very good and smooth integration with Visual Studio of different versions.

Finally, one big benefit is: WiX code is non-visual. Everything is explicitly declared in XML code using some official documented XML scheme. Nothing is hidden behind the XML code files.

As to the behavior and features, many advanced features are not comprehensively documented, unfortunately. But communities already collected considerable experience and provide a lot of useful advice. So far, I was able to find solutions to all chores I practically needed. And the set of ready-to-use solutions is wider that that I found in a legacy Setup project. Some actions which required development of custom steps are already embedded in WiX. It includes adjusting Windows Firewall to your application, setting permissions of files and directories, different action depending on the project platform and target platform, and a lot more.

—SA


这篇关于安装安装过程中是否需要安装支持文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆