Windows:安装应用程序依赖关系
我需要为 .NET 应用程序及其依赖项开发一个安装程序。
.NET 应用程序本身使用 WiX 作为安装程序。这已经解决了,实际上不需要改变。
我的问题是“安装依赖项”部分。 .NET 应用程序依赖于其他几个第三方软件包:数据库、一些我有权重新分发的 Windows 更新(这些更新,我需要检查它们是否需要安装、VirtualBox 等)。
我的第一种方法是使用 dotNetInstaller 创建引导程序,但 dotNetInstaller 可以执行的检查非常有限。具体来说,MUI 翻译的 Windows 让我发疯(需要为原始版本安装 Windows 更新) Windows 安装的语言,而不是用户看到的语言)。
创建具有强大逻辑的引导程序有哪些选择? NSIS、InnoSetup 等是否适合我想要的?
我的限制是:
- 必须可在企业环境中部署
- 单个 UAC 提示(启动引导程序时)
- 我不要求将所有内容捆绑在一起的单个文件,尽管如果可能的话会受到欢迎
- 强大的逻辑(这可能意味着程序)
I need to develop an installer for a .NET application and its dependencies.
The .NET application itself is using WiX for the installer. That is resolved and does not really need to be changed.
My problem is the "install the dependencies" part. The .NET application depends on several other third-party packages: database, some Windows updates which I got permission to redistribute -those, I need to check if they need to be installed or not-, VirtualBox, etc).
My first approach was to use dotNetInstaller to create a bootstrapper but dotNetInstaller is pretty limited in the checks it can perform. Specifically, MUI-translated Windows are driving me crazy (the Windows updates need to be installed for the original language of that Windows installation, not for the language the user sees).
What are my alternatives to create a bootstrapper with powerful logic? Are NSIS, InnoSetup, etc fit for what I want?
My constraints are:
- Must be deployable in a corporate environment
- Single UAC prompt (when the bootstrapper is launched)
- I do not require to a single file that bundles all together, although if possible it'd be welcome
- Powerful logic (which probably means procedural)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
安装包的独立引导程序并不多。其中大多数都带有安装创作工具。
在我看来,您必须选择以下选项之一:
There aren't many standalone bootstrappers for installation packages. Most of them come with a setup authoring tool.
The way I see it, you will have to choose one of the following: