问题标签 [wix3.10]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
417 浏览

wix - 是否可以使用 wix 通过热量自动获取 csproj 的参考?

我目前正在尝试创建一个 wix 安装程序,并发现这篇文章指出 WiX 3.8 无法使用堆获取每个项目文件中添加的引用。3.10 仍然如此吗?

我确实知道如何手动添加引用 dll,但我真的希望我可以使用一些自动化。

我确实发现这个堆栈溢出问题回答了类似的问题,但 HeatProject 方法似乎对我不起作用。

此代码片段成功生成了 OutputFile.wxs。但是,当我从手动 wxs 中删除带有 exe 文件的组件时,最终结果 msi 没有安装 .exe(以及所有引用)

编辑 :

OutputFiles.wxs 的内容如下

在我的主要 wxs 上,我确实有一个安装了一条线的功能

但不包括 exe(也引用库)

0 投票
1 回答
2237 浏览

.net - WiX Custom Bootstrapper Application and .NET 4.5

I am having difficulties getting a WiX Custom Bootstrapper Application that targets .NET 4.5 to work.

I have the following line in my Bundle.wxs.

My BootstrapperCore.config is as follows.

I have tried multiple variations of this.

For example, I have also tried the following.

And the following.

And the following.

And the following.

And the following.

No matter what I have tried, when I run my setup package on a system that does not have .NET 4.5 installed, I am prompted to install .NET 4.5. Once I press the Agree and Install button, the setup package crashes. When I attempt to run the setup package again, it hangs before it displays the buttons. It hangs even after I reboot. I need to restore my system from the system image before it will run again.

Can anyone tell me what I am doing wrong?

I am using WiX 3.10.

Thus far my only clue as to what is going on is the following line in the resulting log files.

This is mentioned in another question here on Stack Overflow, Prerequisite bootstrapper application fails to install .NET 4.5. One of the answers to this question suggests that the answer is to set the sku value in the supportedRuntime element of the BootstrapperCore.config file. However, I have done this. Something else is going on.

0 投票
1 回答
433 浏览

wpf - 使用 Burn Bootstrapper 项目内部获取应用程序版本

通常 EXE 版本在 Bundle.wxs 文件中设置。是否可以在编写安装程序的后端引擎逻辑的 Bootstrapper 应用程序项目中获得此版本?我已经使用 WPF 创建了一个自定义 UI。我需要在 UI 中显示版本。我怎样才能做到这一点?请指教。下面是我的 Bootstrapper 应用程序代码。

0 投票
1 回答
78 浏览

wix - 当用户单击取消按钮时,在刻录引导程序中回滚

我使用刻录引导程序创建了这个安装程序。现在,当用户单击取消按钮时,如何回滚安装期间所做的所有更改?我的 EXE 目前包括 3 个 MSI。因此,如果用户在中途单击取消,我如何在此安装过程中删除以前安装的 MSI?下面是我的取消按钮执行的内容。

0 投票
1 回答
1057 浏览

wix - 在安装过程中作为自定义操作运行 EXE 时安装程序正在等待

我正在使用 WIX 安装 Mosquitto,一旦复制了文件,我将尝试使用自定义操作运行 mosquitto.exe。它会启动一个新的命令提示符,安装会在那里暂停。只有当我终止该命令提示符时它才会恢复。下面是我的代码。

我在这里做错了什么?请指教。

0 投票
1 回答
354 浏览

wix - 如何在烧录引导程序项目中显示过早安装失败的原因?

我创建了一个烧录引导程序项目,它安装了 3 个 MSI 包。如果任何包中存在错误或任何其他错误导致安装失败,则应通过我的 WPF 应用程序显示错误消息。我怎样才能做到这一点?任何例子将不胜感激。

0 投票
1 回答
1245 浏览

node.js - 使用 WiX 将节点服务器安装为 Windows 服务

有谁知道如何使用 WiX (Windows Installer XML) 安装节点服务器并将其作为 Windows 服务启动?

目前,该应用程序没有 .exe 文件,只有一个运行“node app.js”的 bat 文件来启动服务器。我想知道是否可以使用 wix 将其安装为服务,还是必须先将其转换为 .exe 文件?

0 投票
3 回答
1194 浏览

wix - 如何为 Wix 捆绑包启用卸载并仍将其从程序和功能中隐藏?

我不想在程序和功能中显示我的包。但是在卸载时,它应该与 MSI 一起被删除。为了隐藏捆绑包,我可以将 disableModify 属性设置为 yes。这将隐藏捆绑包。但这将禁用捆绑包的卸载功能。那不是我想要的。因为如何从程序和功能中隐藏捆绑包并在卸载期间仍将其卸载?请指教。

0 投票
0 回答
204 浏览

wix - Wix 安装程序 - 欢迎屏幕上的标题在 Win2012R2 上被截断

我看到一个奇怪的行为,特定 msi 包的标题在 Win 2012 R2 上被截断,但在 Win 7 和 Win 2008 R2 系统上完全显示相同。

有问题的 msi 包使用内置的 Wix UI Minimal 对话框集。

为什么我们看到对话框上显示文本的行为如此不同是有原因的吗?

我构建了另一个示例 msi 包,这个包也表现出相同的行为。所以我开始认为这与 Wix UI 对话框集有关。

我正在使用 Wix v3.10。好心提醒。

Win 2012 R2(注意标题栏上的截断):

在此处输入图像描述

Win 7 SP1(没有截断): 在此处输入图像描述

0 投票
1 回答
684 浏览

wix - 如何在刻录引导程序应用程序中显示磁盘空间不足的消息?

我用烧录引导程序编写了自己的安装程序 UI。它有一个 WPF 前端。我有一个包含 3 个 MSI 软件包的 EXE。因此,当我尝试将其安装在空间不足的磁盘中时,如何在安装程序 UI 中显示错误消息对话框?如果有足够的磁盘空间,我可以使用回调找到吗?请指教。