Rob,

I have created a solution using VS2010 Pro and Wix 3.6 RC0.  The main MSI
package is called DemoSoftware.  It will install a file called ReadMe.txt
with content "original" text in it.  The installation is per machine
(ProgramFiles (x86)) on windows 7.  The DemoBA project is the bootstrapper
application.  I have attached the sln as well in the email for your
convenience.

Here is the DemoSoftware MSI wix file content:
   <?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
 <Product Id="EB37B12B-FEA8-43c2-8C38-B8FB73B931C9" Name="DemoSoftware"
Language="1033" Version="1.0.0.0" Manufacturer="MyCorp"
UpgradeCode="5CB9C5A4-C296-4824-B9B4-706A1BF52C40">
 <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"
/>


    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName]
is already installed." />

    <MediaTemplate />

<Feature Id="ProductFeature" Title="DemoSoftware" Level="1">
 <ComponentGroupRef Id="ProductComponents" />
</Feature>
 </Product>

<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
 <Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="DemoSoftware" />
 </Directory>
</Directory>
</Fragment>

<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
      <Component Id="ReadMe.txt"
Guid="59053F1B-1BFA-41F3-A9C6-6A39BA54B90C">
        <File Name="ReadMe.txt" Source="ReadMe.txt" Compressed="no"
KeyPath="yes" />
      </Component>
</ComponentGroup>
</Fragment>
</Wix>


And the boostrapper wxs is like the following:
<?xml version='1.0' encoding='UTF-8'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'
     xmlns:bal='http://schemas.microsoft.com/wix/BalExtension'
     xmlns:util='http://schemas.microsoft.com/wix/UtilExtension'>
  <Bundle Version='1.0.0.0' Name='DemoSoftwareBA' Manufacturer='Microsoft'
UpgradeCode='3E2D7AC3-8466-4734-840D-81DE67B2CC9C' Compressed='no'>
    <BootstrapperApplicationRef
Id='WixStandardBootstrapperApplication.RtfLicense'/>


    <Chain>
      <MsiPackage Id='DemoSoftware' Vital='yes' Visible='yes'
                  SourceFile='DemoSoftware\DemoSoftware.msi' Cache='yes'
                  Permanent='no'
                  EnableFeatureSelection='yes' DisplayInternalUI='yes'
Compressed='no'>
        <Payload Compressed='no' SourceFile='DemoSoftware\ReadMe.txt' />
      </MsiPackage>
    </Chain>
  </Bundle>
</Wix>

To reproduce this problem, compile the bundle and modify the ReadMe.txt
content.  Run the DemoBA.exe, you will encounter the error window about
hash value.  The log is below:
[01B4:1458][2012-04-16T23:51:39]: Burn v3.6.2803.0, Windows v6.1 (Build
7601: Service Pack 1), path: C:\projects\Demo\DemoBA\bin\Debug\DemoBA.exe,
cmdline: ''
[01B4:1458][2012-04-16T23:51:39]: Setting string variable 'WixBundleLog' to
value 'C:\Users\hongz1\AppData\Local\Temp\DemoSoftwareBA_20120416235139.log'
[01B4:1458][2012-04-16T23:51:39]: Setting string variable
'WixBundleOriginalSource' to value
'C:\projects\Demo\DemoBA\bin\Debug\DemoBA.exe'
[01B4:1458][2012-04-16T23:51:39]: Setting string variable 'WixBundleName'
to value 'DemoSoftwareBA'
[01B4:1458][2012-04-16T23:51:39]: Detect 1 packages
[01B4:1458][2012-04-16T23:51:39]: Detected partially cached package:
DemoSoftware, invalid payload: pay40987A2BC2F27BB77D44DC57BC2164D7, reason:
0x80070570
[01B4:1458][2012-04-16T23:51:39]: Detected package: DemoSoftware, state:
Absent, cached: Partial
[01B4:1458][2012-04-16T23:51:39]: Detected package: DemoSoftware, feature:
ProductFeature, state: Absent
[01B4:1458][2012-04-16T23:51:39]: Detect complete, result: 0x0
[01B4:1458][2012-04-16T23:51:41]: Plan 1 packages, action: Install
[01B4:1458][2012-04-16T23:51:41]: Plan 1 msi features for package:
DemoSoftware
[01B4:1458][2012-04-16T23:51:41]: Planned feature: ProductFeature, state:
Absent, default requested Unknown, ba requested: Unknown, execute action:
None, rollback action: None
[01B4:1458][2012-04-16T23:51:41]: Setting string variable
'WixBundleRollbackLog_DemoSoftware' to value
'C:\Users\hongz1\AppData\Local\Temp\DemoSoftwareBA_20120416235139_0_DemoSoftware_rollback.log'
[01B4:1458][2012-04-16T23:51:41]: Setting string variable
'WixBundleLog_DemoSoftware' to value
'C:\Users\hongz1\AppData\Local\Temp\DemoSoftwareBA_20120416235139_0_DemoSoftware.log'
[01B4:1458][2012-04-16T23:51:41]: Planned package: DemoSoftware, state:
Absent, default requested: Present, ba requested: Present, execute:
Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[01B4:1458][2012-04-16T23:51:41]: Plan complete, result: 0x0
[01B4:1458][2012-04-16T23:51:41]: Apply begin
[0C18:17AC][2012-04-16T23:51:47]: Automatic updates could not be paused due
to error: 0x80240025. Continuing...
[0C18:17AC][2012-04-16T23:51:47]: Creating a system restore point.
[0C18:17AC][2012-04-16T23:51:47]: Could not create system restore point,
error: 0x80070422. Continuing...
[0C18:17AC][2012-04-16T23:51:47]: Caching bundle from:
'C:\Users\hongz1\AppData\Local\Temp\{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}\.be\DemoBA.exe'
to: 'C:\ProgramData\Package
Cache\{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}\DemoBA.exe'
[0C18:17AC][2012-04-16T23:51:47]: Registering bundle dependency provider:
{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}, version: 1.0.0.0
[0C18:0494][2012-04-16T23:51:47]: Error 0x80091007: Hash mismatch for
payload at path: C:\ProgramData\Package
Cache\{EB37B12B-FEA8-43C2-8C38-B8FB73B931C9}v1.0.0.0\DemoSoftware.msi
[0C18:0494][2012-04-16T23:51:47]: Error 0x80091007: Failed to verify hash
of payload: DemoSoftware
[0C18:0494][2012-04-16T23:51:47]: Failed to verify payload: DemoSoftware at
path: C:\ProgramData\Package
Cache\{EB37B12B-FEA8-43C2-8C38-B8FB73B931C9}v1.0.0.0\DemoSoftware.msi,
error: 0x80091007. Deleting file.
[0C18:0494][2012-04-16T23:51:47]: Error 0x80070002: Failed to find payload:
DemoSoftware in working path:
C:\Users\hongz1\AppData\Local\Temp\{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}\DemoSoftware
and unverified path: C:\ProgramData\Package Cache\.unverified\DemoSoftware
[0C18:0494][2012-04-16T23:51:47]: Error 0x80070002: Failed to cache
payload: DemoSoftware
[01B4:15E4][2012-04-16T23:51:47]: Failed to cache payload: DemoSoftware
from working path:
C:\Users\hongz1\AppData\Local\Temp\{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}\DemoSoftware,
error: 0x80070002.
[01B4:15E4][2012-04-16T23:51:47]: Application requested retry of payload:
DemoSoftware, encountered error: 0x80070002. Retrying...
[01B4:15E4][2012-04-16T23:51:47]: Acquiring package: DemoSoftware, payload:
DemoSoftware, copy from: C:\projects\Demo\DemoBA\bin\Debug\DemoSoftware.msi
[01B4:15E4][2012-04-16T23:51:47]: Setting string variable
'WixBundleLastUsedSource' to value 'C:\projects\Demo\DemoBA\bin\Debug\'
[0C18:0494][2012-04-16T23:51:47]: Verified acquired payload: DemoSoftware
at path: C:\ProgramData\Package Cache\.unverified\DemoSoftware, moving to:
C:\ProgramData\Package
Cache\{EB37B12B-FEA8-43C2-8C38-B8FB73B931C9}v1.0.0.0\DemoSoftware.msi.
[01B4:15E4][2012-04-16T23:51:47]: Acquiring package: DemoSoftware, payload:
pay40987A2BC2F27BB77D44DC57BC2164D7, copy from:
C:\projects\Demo\DemoBA\bin\Debug\ReadMe.txt
[0C18:0494][2012-04-16T23:51:47]: Error 0x80091007: Hash mismatch for
payload at path: C:\ProgramData\Package
Cache\.unverified\pay40987A2BC2F27BB77D44DC57BC2164D7
[0C18:0494][2012-04-16T23:51:47]: Error 0x80091007: Failed to verify hash
of payload: pay40987A2BC2F27BB77D44DC57BC2164D7
[0C18:0494][2012-04-16T23:51:47]: Failed to verify payload:
pay40987A2BC2F27BB77D44DC57BC2164D7 at path: C:\ProgramData\Package
Cache\.unverified\pay40987A2BC2F27BB77D44DC57BC2164D7, error: 0x80091007.
Deleting file.
[0C18:0494][2012-04-16T23:51:47]: Error 0x80091007: Failed to cache
payload: pay40987A2BC2F27BB77D44DC57BC2164D7
[01B4:15E4][2012-04-16T23:51:47]: Failed to cache payload:
pay40987A2BC2F27BB77D44DC57BC2164D7 from working path:
C:\Users\hongz1\AppData\Local\Temp\{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}\pay40987A2BC2F27BB77D44DC57BC2164D7,
error: 0x80091007.
[01B4:15E4][2012-04-16T23:51:47]: Application requested retry of payload:
pay40987A2BC2F27BB77D44DC57BC2164D7, encountered error: 0x80091007.
Retrying...
[01B4:15E4][2012-04-16T23:51:50]: Acquiring package: DemoSoftware, payload:
pay40987A2BC2F27BB77D44DC57BC2164D7, copy from:
C:\projects\Demo\DemoBA\bin\Debug\ReadMe.txt
[0C18:0494][2012-04-16T23:51:50]: Error 0x80091007: Hash mismatch for
payload at path: C:\ProgramData\Package
Cache\.unverified\pay40987A2BC2F27BB77D44DC57BC2164D7
[0C18:0494][2012-04-16T23:51:50]: Error 0x80091007: Failed to verify hash
of payload: pay40987A2BC2F27BB77D44DC57BC2164D7
[0C18:0494][2012-04-16T23:51:50]: Failed to verify payload:
pay40987A2BC2F27BB77D44DC57BC2164D7 at path: C:\ProgramData\Package
Cache\.unverified\pay40987A2BC2F27BB77D44DC57BC2164D7, error: 0x80091007.
Deleting file.
[0C18:0494][2012-04-16T23:51:50]: Error 0x80091007: Failed to cache
payload: pay40987A2BC2F27BB77D44DC57BC2164D7
[01B4:15E4][2012-04-16T23:51:50]: Failed to cache payload:
pay40987A2BC2F27BB77D44DC57BC2164D7 from working path:
C:\Users\hongz1\AppData\Local\Temp\{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}\pay40987A2BC2F27BB77D44DC57BC2164D7,
error: 0x80091007.
[01B4:15E4][2012-04-16T23:51:50]: Application requested retry of payload:
pay40987A2BC2F27BB77D44DC57BC2164D7, encountered error: 0x80091007.
Retrying...
[01B4:15E4][2012-04-16T23:51:53]: Acquiring package: DemoSoftware, payload:
pay40987A2BC2F27BB77D44DC57BC2164D7, copy from:
C:\projects\Demo\DemoBA\bin\Debug\ReadMe.txt
[0C18:0494][2012-04-16T23:51:53]: Error 0x80091007: Hash mismatch for
payload at path: C:\ProgramData\Package
Cache\.unverified\pay40987A2BC2F27BB77D44DC57BC2164D7
[0C18:0494][2012-04-16T23:51:53]: Error 0x80091007: Failed to verify hash
of payload: pay40987A2BC2F27BB77D44DC57BC2164D7
[0C18:0494][2012-04-16T23:51:53]: Failed to verify payload:
pay40987A2BC2F27BB77D44DC57BC2164D7 at path: C:\ProgramData\Package
Cache\.unverified\pay40987A2BC2F27BB77D44DC57BC2164D7, error: 0x80091007.
Deleting file.
[0C18:0494][2012-04-16T23:51:53]: Error 0x80091007: Failed to cache
payload: pay40987A2BC2F27BB77D44DC57BC2164D7
[01B4:15E4][2012-04-16T23:51:53]: Failed to cache payload:
pay40987A2BC2F27BB77D44DC57BC2164D7 from working path:
C:\Users\hongz1\AppData\Local\Temp\{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}\pay40987A2BC2F27BB77D44DC57BC2164D7,
error: 0x80091007.
[01B4:1458][2012-04-16T23:51:53]: Error 0x80091007: Failed while caching,
aborting execution.
[0C18:17AC][2012-04-16T23:51:53]: Removing bundle dependency provider:
{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}
[0C18:17AC][2012-04-16T23:51:53]: Removing cached bundle:
{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}, from path: C:\ProgramData\Package
Cache\{08ce2e51-41d4-48d1-a1ae-d4d1f0b43810}\
[01B4:1458][2012-04-16T23:51:53]: Apply complete, result: 0x80091007,
restart: None, ba requested restart:  No

Can you see any thing wrong?

Zhichao Hong, CSDP
zhichao.h...@computer.org


On Mon, Apr 16, 2012 at 11:09 PM, Rob Mensching <r...@robmensching.com>wrote:

> It should just work. Can you provide specific details about how you laid
> out your MSI? The Burn log file is also usually helpful.  Ideally, open a
> bug and attach an example project that does not contain any private
> information in it.
>
> On Mon, Apr 16, 2012 at 8:50 PM, Zhichao Hong <zhichao.h...@gmail.com
> >wrote:
>
> > I am creating a bootstrapper app using Burn.  One of the MSI package has
> > loose file (i.e. files outside of CAB or MSI so they can be changed after
> > MSI has been created).  The MSI installer itself works just fine with the
> > loose files.  However, when I bundled the MSI inside a chain and changed
> > the loose file content after Setup.exe has been created, Setup.exe always
> > fails with hash checking (Error 0x80091007: Hash mismatch for payload at
> > path: ...).  Is loose file supported in Burn?  If not, can this be added
> to
> > the wish list for the future relases?  Otherwise, what is the best way to
> > plug in a dynamic content only known at deployment using Burn?
> >
> > This is super import for my installer.  If Burn cannot do it currently,
> is
> > there any tool can do this such as InstallShield?  I am trying to find
> out
> > this is a windows bootstrapper limitation or Wix limitation.
> >
> > Zhichao Hong, CSDP
> > zhichao.h...@computer.org
> >
> >
> ------------------------------------------------------------------------------
> > Better than sec? Nothing is better than sec when it comes to
> > monitoring Big Data applications. Try Boundary one-second
> > resolution app monitoring today. Free.
> > http://p.sf.net/sfu/Boundary-dev2dev
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
>
> --
> virtually, Rob Mensching - http://RobMensching.com LLC
>
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to