0

我已经尝试为我的应用程序构建一个补丁。我需要替换两个文件,仅此而已。使用引导程序使文件就位,但是当卸载引导程序时,文件消失了,并且没有被旧文件替换(当然)。我将 Keypath=yes" 添加到我的应用程序包(旧的和新的)中,希望这样可以解决我的问题,但没有。

我一直在关注本教程:http ://wix.tramontana.co.hu/tutorial/upgrades-and-modularization/patchwork

这是我从命令行运行它时遇到的问题:

C:\Program Files (x86)\WiX Toolset v3.8\bin>pyro.exe C:\Work\Dev\App\
Patch\Patch.wixmsp -out Patch.msp -t Sample C:\\Work\Dev\App\Patch\dif
f.wixmst 

结果是这样的:

C:\Work\Dev\App\Installer_3.6.2\AppInstaller\Manager.wxs(181) :
error PYRO0103 : The system cannot find the file '..\App\3.6.2\Manager\Image
s\sort_down_small.png'.
C:\Work\Dev\App\Installer_3.6.2\AppInstaller\Manager.wxs(182) :
error PYRO0103 : The system cannot find the file '..\App\3.6.2\Manager\Image
s\sort_up_small.png'.
C:\Work\Dev\App\Installer_3.6.2\AppInstaller\Manager.wxs(182) :
error PYRO0103 : The system cannot find the file '..\App\3.6.2\Manager\Image
s\sort_up_small.png'.
............

有趣的是我的 patch.wxs 不包括图像。

<?xml version='1.0' encoding='UTF-8'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
  <Patch AllowRemoval="yes" Manufacturer="Company" MoreInfoURL="www.Company.com"
DisplayName="App 3.6.2 patch" Description="Small Update Patch" Classification="Update">
<Media Id='5000' Cabinet='Sample.cab'>
  <PatchBaseline Id='Sample'/>
</Media>
<PatchFamily Id='SamplePatchFamily' Version='1.5.0.0' Supersede='yes'>
  <ComponentRef Id="Assemblies"/>
</PatchFamily>

我能做些什么?

我在谷歌搜索时发现了这个:http: //windows-installer-xml-wix-toolset.687559.n2.nabble.com/error-PYRO0103-The-system-cannot-find-the-file-UI-Icons-appicon- ico-if-appicon-ico-is-in-my-latest-wb-td4600799.html

这句话可能会有所帮助,但我不明白,谷歌搜索并没有给我一个很好的例子:

“通过将 .msi 文件的扩展名更改为 .wixout 并将这两个参数添加到 light:-xo -b,将原始命令行更改为 light.exe”

问候, 安德烈亚斯

4

1 回答 1

1

创建 MSI 安装程序时,您必须更改参数。

假设您到目前为止创建了安装程序 Installer.msi:

candle Installer.wxs -out Installer.wixobj
light Installer.wixobj -out Installer.msi

你必须把它改成这个

candle Installer.wxs -out Installer.wixobj
light -bf -xo Installer.wixobj -out Installer.wixout
light Installer.wixout -out Installer.msi

使用新旧安装程序执行此操作。

现在您可以将 torch 与 .wixpdb 文件一起使用来创建您的 diff.wixmst

torch -p -xi (PathToOldInstaller)\Installer.wixpdb (PathToNewInstaller)\Installer.wixpdb -out diff.wixmst

最后创建补丁

candle patch.wxs
light patch.wixobj
pyro patch.wixmsp -out patch.msp -t Sample diff.wixmst
于 2014-07-29T12:00:25.687 回答