wix 补丁 PYRO0103:系统找不到文件 [英] wix patch PYRO0103 : The system cannot find the file

查看:61
本文介绍了wix 补丁 PYRO0103:系统找不到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have tried building a patch for my application. I need to replace two files, nothing more. Using a bootstrapper got the files in place, but when uninstalling the bootstrapper the files was gone and not replaced by the old ones(of course). I added Keypath=yes" to my application package(both old and new one) in hope of that would get my problem solved, but no.

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

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

Here is my problem that I get when running this from my command line:

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 不包括图像.

The interesting thing is that my patch.wxs is not including Images.

<?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

I found this when googling: 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

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

And this sentence might help, but I do not understand it and googling did not give me a good examlpe:

"通过更改您的原始命令行为 light.exe将 .msi 文件扩展为 .wixout 并添加这两个参数点亮:-xo -b"

"Change your original command-line to light.exe by changing the extension of the .msi file to .wixout and adding these two arguments to light: -xo -b"

问候,安德烈亚斯

推荐答案

您必须在创建 MSI 安装程序时更改参数.

You have to change the arguments when creating the MSI Installers.

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

Say you created your installer Installer.msi like that up to now:

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

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

Do this with the old and new installer.

现在您可以使用带有 .wixpdb 文件的 torch 来创建您的 diff.wixmst

Now you can use torch with the .wixpdb files to create your 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

这篇关于wix 补丁 PYRO0103:系统找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆