4
我试图用Visual Studio构建一个WiX补丁。很简单。我用Visual Studio构建,然后构建。但是,当我尝试运行造成MSI,我告诉Visual Studio WiX和补丁
此安装包不能 打开。联系应用程序 供应商以验证这是一个有效的 Windows Installer软件包。
理想情况下,我会创建一个更小的msp路径文件,但是,为了简单起见,我确定MSI文件。如何用Visual Studio做到这一点,或者,我是否需要下拉到命令行并使用candle.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>