ビルド サーバーでセットアップを自動作成し、リリース バージョンと現在のビルド バージョンの間にパッチを作成しようとしています。
悲しいことに、私はそれを機能させることができません。
これは私の Patch.wxs です:
<Patch AllowRemoval="no" Manufacturer="Company" DisplayName="Product Patch" Description="Patch" Classification="Update">
<Media Id="5000" Cabinet="RTM.cab">
<PatchBaseline Id="RTM"/>
</Media>
<PatchFamily Id="SampleFamily" Version="1.0.0.0" Supersede="yes">
<FeatureRef Id="ProductFeature"/>
</PatchFamily>
</Patch>
postBuild を使用して、パッチファイルをコンパイルおよびリンクします。
"C:\Program Files (x86)\WiX Toolset v3.8\bin\candle.exe" $(ProjectDir)Patch.wxs -dDebug -dOutDir=$(TargetDir) -o Patch.wixobj
"C:\Program Files (x86)\WiX Toolset v3.8\bin\light.exe" $(TargetDir)Patch.wixobj -o $(TargetDir)Patch.wixmsp
ここまでは、すべてうまくいくと思います。ビルドが成功した後、torch を使用して変換を作成します。
torch -p -xi release.wixpdb latestBuild.wixpdb -out diff.wixmst
差分が正常に作成されました。次に、pyro はファイルに違いはないという警告を表示します。
pyro Patch.wixmsp -t RTM diff.wixmst -out patch.msp"
warning PYRO1079 : The cabinet 'RTM.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.
msi ファイルをインストールすると、ファイルが異なり、2 つの異なるインストールが行われます。しかし、パッチをインストールしても何も変わりません。PatchFamily をいじってみましたが、うまくいきません。
変更を含むパッチ ファイルを取得するにはどうすればよいですか?