[wix-users] Error 0x80091007: Hash mismatch for path
Farrukh Waheed
farrukh1 at gmail.com
Wed Jul 26 05:12:07 PDT 2017
Thanks.... appreciated
On 25 July 2017 at 20:13, Alex Tuppen <alex.tuppen at gmail.com> wrote:
> In case anyone else has a similar problem this was caused by having two
> dependencies of the same name (but in different source folders) for x86 and
> x64 unpacking to the same place and burn getting the GUIDs the wrong way
> round. The fix was to specify a folder structure for each using the Name
> value.
>
> The payload files are now declared like this:
>
> <Payload Compressed='yes'
> SourceFile='Resources\Prod.Pulse\SCA\SCOM2012\x64\MOMCertImport.exe'
> Name='SCA\SCOM2012\x64\MOMCertImport.exe'/>
> <Payload Compressed='yes'
> SourceFile='Resources\Prod.Pulse\SCA\SCOM2012\x86\MOMCertImport.exe'
> Name='SCA\SCOM2012\x86\MOMCertImport.exe'/>
>
>
> This does however make me question this documentation:
> http://wixtoolset.org/documentation/manual/v3/xsd/wix/payload.html
> As it clearly states that the default value for Name is the sourcefile,
> which was unique for each file but it wasn't until I specified a value for
> Name that the logs showed burn unpacking to a subfolder.
>
> Alex
>
> On Mon, 24 Jul 2017 at 16:54 Alex Tuppen <alex.tuppen at gmail.com> wrote:
>
> > Hi,
> >
> > I am getting the below error messages in my bundle's log file and I
> cannot
> > work out why.
> >
> > [16EC:1320][2017-07-24T11:33:25]e000: Error 0x80091007: Hash mismatch
> for path: C:\ProgramData\Package Cache\65D4FC25E4F02CCC325917AE7EA5987BA52497DA\MOMCertImport.exe,
> expected: 06BD98583C73B9D97A54472EDF0A00D590024A67, actual:
> 87FD653C06C4D638C83182FD43AD37E83C757492
> > [16EC:1320][2017-07-24T11:33:25]e000: Error 0x80091007: Failed to
> verify hash of payload: pay2F6419EC3C4EF736B4C9257552A6C584
> >
> > From what I have found on Google my understanding is that when the bundle
> > is built a hash value is generated. Then when the bundle is executed a
> new
> > hash value is generated and the two are compared to make sure that the
> > bundle has not been tampered with. This all makes perfect sense however
> the
> > three files failing the test in my bundle are not being altered once the
> > bundle has been built. The exepackage and payload files are being
> declared
> > like this:
> >
> > <ExePackage Id="PowerONPulseConfigProd"
> > Cache="yes"
> > Compressed="yes"
> > InstallCommand='-ai -o certificate -c "[CompanyName]"'
> > InstallCondition='ProductChoice = pulse AND DeployEnv =
> prod'
> > UninstallCommand='-ai -o unistall -u [Username] -p
> [Password]'
> > After='PowerONPulse'
> > SourceFile='Resources\Prod.Pulse\SetupAgentB.exe'>
> > <Payload Compressed='yes' SourceFile='Resources\Prod.
> Pulse\SCA\SCOM2012\x64\MOMCertImport.exe'/>
> >
> > My best guess is that there is either something wrong with the files (one
> > exe and two dlls) as the rest of the payload files work fine or something
> > wrong with the way I am signing my bundle:
> >
> > <Target Name="SignBundleEngine">
> > <Exec Command=""C:\Program Files (x86)\Windows
> Kits\10\bin\10.0.15063.0\x86\signtool.exe" sign /f
> "PowerONCodeSigning.pfx" /p /t http://timestamp.digicert.com
> /v /d "%(SignBundleEngine.Filename)" "@(SignBundleEngine)""
> /></Target><Target Name="SignBundle">
> > <Exec Command=""C:\Program Files (x86)\Windows
> Kits\10\bin\10.0.15063.0\x86\signtool.exe" sign /f
> "PowerONCodeSigning.pfx" /p /t http://timestamp.digicert.com
> /v /d "%(SignBundle.Filename)" "@(SignBundle)""
> /></Target><Target Name="SignMsi">
> > <Exec Command=""C:\Program Files (x86)\Windows
> Kits\10\bin\10.0.15063.0\x86\signtool.exe" sign /f
> "PowerONCodeSigning.pfx" /p /t http://timestamp.digicert.com
> /v /d "%(SignMsi.Filename)" "@(SignMsi)""
> /></Target><Target Name="SignCabs">
> > <Exec Command=""C:\Program Files (x86)\Windows
> Kits\10\bin\10.0.15063.0\x86\signtool.exe" sign /f
> "PowerONCodeSigning.pfx" /p /t http://timestamp.digicert.com /v
> /d "%(SignCabs.Filename)" "@(SignCabs)"" /></Target>
> >
> > At this point I am at a loss as to what could be causing this and would
> > really appreciate any help.
> >
> > Kind regards,
> >
> > Alex
> >
> >
> >
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-users
mailing list