Visual Studio WiX and fixes

I tried to create a WiX patch with Visual Studio. Easy enough. I am building with Visual Studio and it is building. But, when I try to run the created MSI , I was told

This installation package could not open. Contact the vendor application to check if it is a valid Windows Installer Package.

Ideally, I would create a much smaller msp path file, but for simplicity, I'm fine with the MSI file. How to do this using Visual Studio, or do I need to go down to the command line and use the candle.exe, light.exe, torch.exe and pyro.exe files?

The WiX code looks something like this:

<?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> 
+4
source share
1 answer

Votive does not have a project patch type. MSBuild's WiX goals include the Torch task, but not Pyro , so you can do everything with MSBuild, but you need to use Exec to run Pyro. There is an open request for patch support functions, both in Visual Studio and in MSBuild objects.

+5
source

Source: https://habr.com/ru/post/1342815/


All Articles