thill
Posts: 111
Joined: Sat Jan 21, 2012 5:58 pm

SECUREREPAIR: Failed to CreateContentHash of the file

Thu Jun 25, 2015 3:18 pm

We see this message on every file during installation: "SECUREREPAIR: Failed to CreateContentHash of the file ...".

Can't find much information on the web. Installations continue past that section.

Just wondering what that's about and if we should be doing something we're not.

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Fri Jun 26, 2015 9:55 am

Hello,

I'm not sure, but this line could be written in the log when Windows Installer fails to compute the hash value of an installation file. Did you encounter any error during installation or the installation succeed? If so, please check the KB2918614 article and see if matches with your installation errors.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

thill
Posts: 111
Joined: Sat Jan 21, 2012 5:58 pm

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Sat Jun 27, 2015 12:15 am

That KB does not appear to apply. We're running the installer logged-in and as Administrator.

Yes, the install continues to success. But we get asked about those messages.

Is there an option to disable checking the hash of the files? Or a way to create the hash and satisfy it?

Thanks a lot. Have a great weekend.

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Tue Jun 30, 2015 8:23 am

Hello,
Is there an option to disable checking the hash of the files? Or a way to create the hash and satisfy it?
To disable the hash file check you should make sure the [Hash Files] button, from "Files and Folders" page (you can see it in the "Files and Folders" ribbon section), is not enabled.

Also, can you tell us if your setup package is digitally signed? This log entry may appear when the digital signature of the setup is not recognized by Windows Installer. So, please check if on the UAC prompt, spawned during installation by Windows Installer to request elevation, the digital signature/publisher of your setup is successfully recognized.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

thill
Posts: 111
Joined: Sat Jan 21, 2012 5:58 pm

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Tue Jun 30, 2015 5:13 pm

The Hash Files option is not enabled. And we do not digitally sign anything.

Ours is a server-based product. Because we install a Windows service we have the "Run as Administrator" flag enabled and instruct people to also right-click the installer EXE and Run as Administrator.

Not sure when this started to appear in the installer log but we do get questions about it.

thill
Posts: 111
Joined: Sat Jan 21, 2012 5:58 pm

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Tue Jun 30, 2015 10:18 pm

Here is a piece of log on this:

Code: Select all

MSI (s) (14:00) [16:44:27:889]: SECREPAIR: Hash Database: C:\Windows\Installer\SourceHash{9854DBF4-A807-413A-90BF-418D0DEE006B}
MSI (s) (14:00) [16:44:27:889]: Note: 1: 2262 2: SourceHash 3: -2147287038 
MSI (s) (14:00) [16:44:27:904]: SECREPAIR: New Hash Database creation complete.
MSI (s) (14:00) [16:44:27:904]: SECREPAIR: CryptAcquireContext succeeded
MSI (s) (14:00) [16:44:27:920]: SECREPAIR: CryptAcquireContext succeeded
MSI (s) (14:00) [16:44:27:920]: SECREPAIR: Failed to open the file:C:\ProgramData\Full Circle Systems\DocVue Enterprise\10.1.1.7533\DEE006B\sql\auditmodule\01.AA_PreConfigReports_table.sql for computing its hash. Error:3
They do not affect the installation which completes successfully.

Was hoping it would be as simple as disabling that option in Files & Folders but it wasn't enabled.

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Wed Jul 01, 2015 4:07 pm

Hello,

To further investigate this, can you please send us the .aip (project file) and a full verbose log of the installation to support at advancedinstaller dot com so we can take a closer look over them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Fri Jul 03, 2015 1:32 pm

Hello Todd,

After running several tests on our side it seems the related log lines ("SECUREREPAIR: Failed to CreateContentHash of the file") are written in the log files when installing the setup on Windows machines which have the KB2918614 update installed. On all machines without this update installed the related lines are not written in the log. So, it seems the KB2918614 is the culprit. I've done a small research trying to find out why Windows Installer tries to compute the hash for the installation files when the KB2918614 is installed, but I didn't find any useful info. Maybe this is just another undocumented glitch caused by the KB2918614 update, but considering that your product installation succeeds you can safely ignore those lines.

If there is anything we can assist you with just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

donalwa
Posts: 10
Joined: Wed Jun 15, 2016 4:26 pm

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Mon Dec 11, 2017 4:02 pm

Just wondering was a conclusive solution found for this issue? I am seeing a similar issue where KB2918614 is not installed on windows server 2012 R2?

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Tue Dec 12, 2017 8:20 am

Hello,

Unfortunately we didn't find any conclusive resolution for this behavior. Did you get any installation issues? If so, can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate its settings?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Mon Feb 05, 2018 10:45 pm

I am experiencing a similar error -
see viewtopic.php?f=5&t=35054

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: SECUREREPAIR: Failed to CreateContentHash of the file

Wed Feb 07, 2018 11:24 am

Hello Mike,

You can see my colleague reply on the referenced thread.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”