gpt4 book ai didi

visual-studio - Visual Studio WiX 和补丁

转载 作者:行者123 更新时间:2023-12-04 06:29:42 27 4
gpt4 key购买 nike

我试图用 Visual Studio 构建一个 WiX 补丁。很容易。我用 Visual Studio 构建,它构建。但是,当我尝试运行结果 MSI 时,我被告知

This installation package could not be opened. Contact the application vendor to verify tat this is a valid Windows Installer package.



理想情况下,我会创建一个小得多的 msp 路径文件,但是,为了简单起见,我可以使用 MSI 文件。我如何使用 Visual Studio 执行此操作,或者我是否需要下拉到命令行并使用蜡烛.exe、light.exe、torch.exe 和pyro.exe?

WiX 代码如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Patch
AllowRemoval="yes"
Classification="Update"
Comments="Some Patch for v 1.0.0"
Description="Updates Some Software to v 1.0.1"
DisplayName="Some software Patch 03/07/2011"
Manufacturer="MyMfg"
TargetProductName="SomeProduct">

<Media Id="1000" Cabinet="Inspect.cab">
<PatchBaseline Id="SomeBaseLine" />
</Media>
<PatchFamily
Id="SomeFamily"
Version="1.0.1.0"
ProductCode="<GUID>"
Supersede="yes">

<ComponentRef Id="ComponentsToPatch" />
</PatchFamily>
</Patch>
</Wix>

最佳答案

Votive没有补丁项目类型。 WiX MSBuild 目标包括 Torch任务但不是 Pyro任务,因此您可以使用 MSBuild 完成所有操作,但需要使用 Exec运行火焰兵。在 Visual Studio 和 MSBuild 目标中,有一个开放的功能请求支持修补。

关于visual-studio - Visual Studio WiX 和补丁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5232943/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com