Installation failure messages: "Hash mismatch for path" , "Failed to verify payload:"


When an OpenCities Map installation is cancelled or fails, a log file of the session is created. 
Before exiting the installer, the user is offered the opportunity to open this file via the prompt 'Click here to open the log file'.




The target path and file naming convention of the log file will be similar to that which follows: 

C:\Users\%username%\AppData\Local\Temp\OpenCities_Map_PowerView_2023_20240617121815.log

Note the %username% operating system environment variable substitution, and that the log file name contains the full product name and timestamp of the session. 

Users who examine this log for errors may encounter "Hash mismatch", "Failed to verify payload" et al as shown in the example below: 


[29B0:1B00][2024-01-01T09:21:56]e000: Error 0x80091007: Hash mismatch for path: C:\ProgramData\Package Cache\.unverified\PowerProductPackage, expected: C27EFCBA58BE3F589688C8DB26D01D76C4BB6C33, actual: 8CAFD78D9C7E241051B09C6839FB906938B50812
[29B0:1B00][2024-01-01T09:21:56]e000: Error 0x80091007: Failed to verify hash of payload: PowerProductPackage
[29B0:1B00][2024-01-01T09:21:56]e310: Failed to verify payload: PowerProductPackage at path: C:\ProgramData\Package Cache\.unverified\PowerProductPackage, error: 0x80091007. Deleting file.
[29B0:1B00][2024-01-01T09:21:56]e000: Error 0x80091007: Failed to cache payload: PowerProductPackage
[6538:5BA0][2024-01-01T09:21:56]e000: CacheVerifyComplete: Failed with error code -2146889721 and retry number 0
[6538:5BA0][2024-01-01T09:21:56]e314: Failed to cache payload: PowerProductPackage from working path: C:\Users\ABC123\AppData\Local\Temp\{43FEFE56-F7E7-486D-8556-80E2713E3028}\PowerProductPackage, error: 0x80091007.
[6538:5BA0][2024-01-01T09:21:56]e349: Application requested retry of payload: PowerProductPackage, encountered error: 0x80091007. Retrying...
[6538:5BA0][2024-01-01T09:21:56]i338: Acquiring package: PowerProductPackage, payload: PowerProductPackage, copy from: U:\ABCCORP\Bentley\map powerview\MapPowerViewx64.msi

[6538:5BA0][2024-01-01T09:22:42]e000: Caching failed for PowerProductPackage
[6538:0F5C][2024-01-01T09:22:42]i000: ErrorPage Code: -2146889721
[6538:0858][2024-01-01T09:22:42]e000: Error 0x80091007: Cache thread exited unexpectedly.

 


This pattern outlines a common cause of installation error which we can infer from the line: 
[6538:5BA0][2024-01-01T09:21:56]i338: Acquiring package: PowerProductPackage, payload: PowerProductPackage, copy from: U:\ABCCORP\Bentley\map powerview\MapPowerViewx64.msi

The path U:\ reasonably implies a mapped network drive location which in this case is indicative of the OpenCities Map installer's location relative to the site of execution. 

In these cases, relocating the OpenCities Map install executable to a local user-accessible drive (e.g. C:\yourtemp) will likely resolve the issue.