Your .wixpdb file contains a "filespec" (path reference) of the icon file,
not the file's contents itself. Because either pyro is running from a
different directory than light had been run from when the wixpdb was created
or the directory containing the wxs file that references ControlPanel.wxi is
not involved in the pyro command the file can't be found.

One workaround is to make linking/binding the MSIs a two step process:

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

Call light again, passing the original "-out" argument and the newly created
.wixout file.

Do that for both the old and the new MSIs. The above will create "bound"
wixpdb files that contain the files that are also in the MSI instead of just
file paths. Then the wixpdb files can be copied/moved/etc. and still be used
to create MSP files.

-----Original Message-----
From: Hansel D'Ornellas [mailto:HD'ornel...@absolute.com] 
Sent: Friday, February 19, 2010 3:59 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] error PYRO0103 : The system cannot find the file
'UI\Icons\appicon.ico' if appicon.ico is in my latest wixpdb

This specific error can be reproduced by following the following steps:


a)      Create initial release, say app.msi v1.00- copy msi and wixpdb files
to directory  v1.00

b)      Make changes to source (if asp.net app, change one of the .aspx by
adding some new element to the page). If you make changes to code behind,
increment the assembly file version.

c)       Create  another build (called the latest build- to distinguish from
initial), say app.msi v1.10 - copy msi and wixpdb files to directory v1.10

d)      Execute torch, candle, light and pyro (the last to generate .msp
file).

This will create the error:
C:\build\appwixsource\ControlPanel.wxi(29) : error PYRO0103 : The system
cannot find the file 'UI\Icons\appicon.ico'.

I have to comment out the icon stuff in ControlPanel.wxi in then following
steps c) and d) to get a successfull .msp creation.

Original ControlPanel.wxi :

<Include xmlns="http://schemas.microsoft.com/wix/2006/wi";>

  <!-- Add/Remove Programs settings -->
  <?define SupportURL = "http://www.somesite.com"; ?>
  <?define UpdateURL = "http://www.somesite.com"; ?>
  <?define SupportPhone = "1-800-111-2222" ?>
  <?define Contact = "Technical Support" ?>

  <!-- Icons -->
  <Icon Id="ProductIcon" SourceFile="UI\Icons\appicon.ico" />

  <!-- This information is visible in Add/Remove programs -->
  <Property Id="ARPHELPLINK"><![CDATA[$(var.SupportURL)]]></Property>
  <Property Id="ARPURLUPDATEINFO"><![CDATA[$(var.UpdateURL)]]></Property>
  <Property Id="ARPHELPTELEPHONE"><![CDATA[$(var.SupportPhone)]]></Property>
  <Property Id="ARPCONTACT"><![CDATA[$(var.Contact)]]></Property>
  <Property Id="ARPPRODUCTICON" Value="ProductIcon" />

</Include>

Modified ControlPanel.wxi to get things working

<Include xmlns="http://schemas.microsoft.com/wix/2006/wi";>

  <!-- Add/Remove Programs settings -->
  <?define SupportURL = "http://www.somesite.com"; ?>
  <?define UpdateURL = "http://www.somesite.com"; ?>
  <?define SupportPhone = "1-800-111-2222" ?>
  <?define Contact = "Technical Support" ?>

  <!-- Icons -->
  <!--<Icon Id="ProductIcon" SourceFile="UI\Icons\appicon.ico" />-->

  <!-- This information is visible in Add/Remove programs -->
  <Property Id="ARPHELPLINK"><![CDATA[$(var.SupportURL)]]></Property>
  <Property Id="ARPURLUPDATEINFO"><![CDATA[$(var.UpdateURL)]]></Property>
  <Property Id="ARPHELPTELEPHONE"><![CDATA[$(var.SupportPhone)]]></Property>
  <Property Id="ARPCONTACT"><![CDATA[$(var.Contact)]]></Property>
  <!--<Property Id="ARPPRODUCTICON" Value="ProductIcon" />-->

</Include>


Note: appicon.ico is set to BuildAction to Content.




----------------------------------------------------------------------------
--
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to