I have an issue when creating a patch, using pyro tool. I am not sure if this is a WiX tool defect, or I am doing something wrong. When executing the pyro.exe, my release builder crashes with the output from the pyro tool as below:
Windows Installer XML Toolset Patch Builder version 3.11.0.1701 Copyright (c) .NET Foundation and contributors. All rights reserved.
pyro.exe : error PYRO0001 : Object reference not set to an instance of an object.
Exception Type: System.NullReferenceException
Stack Trace: at Microsoft.Tools.WindowsInstallerXml.MediaRow.get_LastSequence() at Microsoft.Tools.WindowsInstallerXml.Patch.AttachTransforms(ArrayList transforms) at Microsoft.Tools.WindowsInstallerXml.Tools.Pyro.Run(String[] args)
And, this is the execution sequence of WiX tools I am using to build a patch:
- candle.exe -out Patch.wixobj -ext WixUIExtension -ext WixNetFxExtension -arch x86
- light.exe -out Product_1.wixout Product_1.wixobj -xo -ext WixUIExtension -ext WixNetFxExtension
- light.exe -out Product_2.wixout Product_2.wixobj -xo -ext WixUIExtension -ext WixNetFxExtension
- torch.exe -out Diff.wixmst Product_wixout Product_2.wixout -p -xi -ext WixUIExtension -ext WixNetFxExtension
- light.exe -out Patch.wixmsp Patch.wixobj -ext WixUIExtension -ext WixNetFxExtension
- pyro.exe -outPatch.msp Patch.wixmsp -t MyPatch Diff.wixmst
Please advise.
Many thanks