2012-07-02 63 views
1

我試圖使用包含2個C#項目(可執行文件和庫)的this example,使用WiX 3.6創建補丁。但我發現了這個錯誤:錯誤PYRO0227嘗試創建WiX補丁時

warning PYRO1079 : The cabinet 'RMT.cab' does not contain any files. If this patch contains no files, this warning can likely be safely ignored. Otherwise, try passing -p to torch.exe when first building the transforms, or add a ComponentRef to your PatchFamily authoring to pull changed files into the cabinet. 
error PYRO0227 : The transform being built did not contain any differences so it could not be created. 

執行的命令:

set w="c:\Program Files (x86)\WiX Toolset v3.6\bin\" 

%w%torch.exe -p -xi 1.0.0.0\PatchMe.Installer.wixpdb 1.1.1.1\PatchMe.Installer.wixpdb -out Patch\Diff.wixmst 
%w%candle.exe Patch.wxs 
%w%light.exe Patch.wixobj -out Patch\Patch.WixMsp 
%w%pyro.exe Patch\Patch.WixMsp -out Patch\Patch.msp -t RTM Patch\Diff.wixmst 

目錄「1.0.0.0」和「1.1.1.1」包含兩個不同的版本相同的項目(改變的AssemblyVersion的輸出和一些代碼更改)。 Patch.wxs文件:

<?xml version="1.0" encoding="UTF-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 
    <?include Variables.wxi ?> 
    <Patch AllowRemoval="yes" 
     Manufacturer="$(var.Manufacturer)" 
     DisplayName="$(var.ProductName) $(var.ProductVersion)" 
     Description="Small Update Patch" 
     Classification="Update" 
     TargetProductName="$(var.ProductName)" 
     > 

     <Media Id="5000" Cabinet="RMT.cab"> 
      <PatchBaseline Id="RTM"> 
      </PatchBaseline> 
     </Media> 

     <PatchFamilyRef Id="SamplePatchFamily"/> 
    </Patch> 

    <Fragment> 
     <PatchFamily Id="SamplePatchFamily" Version="$(var.ProductVersion)" Supersede="yes"> 
      <ComponentRef Id="cmp981D9885AA29DD578D66D32ED919EBFB"/> 
      <ComponentRef Id="cmpD5E6EA59DB565F052E0217CB3248DAE5"/> 
     </PatchFamily> 
    </Fragment> 
</Wix> 

ComponentRef標識的指成分片段由前面提到的項目heat​​.exe豐收創造。

任何想法,什麼可能是一個問題,爲什麼變換不包含任何更改?

+0

這可能適用於您的情況: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WIX-users-Patch-in-Wix-3-6-is-empty -warning-PYRO1079-the-cabinet-cab-does-not-contain-any-files-td7335788.html and http://sourceforge.net/p/wix/bugs/3244/ – FanerYedermann

回答

1

我認爲這可能是3.6中的一個錯誤。我嘗試了幾個小時纔得到這個版本的3.6.3303.1,但我總是得到PYRO1079錯誤。我終於降級到版本3.5.2519.0,並且錯誤沒有再次發生。

降級後,我不得不放棄我的MediaTemplate節點和ComponentGroup節點的Directory屬性。我不知道這是否是解決方案的一部分(即,這可能解決了問題而不是降級問題)。