Ask Leo!

"A Cabinet file cannot be trusted" - Why?

Home » Windows » Windows Oddities

Summary: There are many things that can lead to the error "A Cabinet file cannot be trusted". I'll review the steps I'd take to track down the problem.

"A Cabinet file cannot be trusted" - Why?

"A Cabinet file necessary for the installation cannot be trusted" is actually the full message, and it results most commonly when folks are attempting to download DirectX 9.0c for use with a new game, commonly "The Sims 2".

Wow. Forget all the business uses of computers ... just don't get in between a person and their game. Lots of questions, and no shortage of emotion to be found on this topic.

Unfortunately, in my research I've not been able to find the One True Answer. But the problem seems to be reasonably well understood, and there are a ton of things to try. Unfortunately, many of them are not simple.

The problem arises out of Microsoft's attempts to improve the security of Windows. The software is attempting to use digital signatures to verify that what you're installing is what you think it is and not some virus, trojan horse, or other malware.

When it fails, here are things to try, in the order that I would try them:

  • Re-download the component you're attempting to install, from a trusted source. For example go to Microsoft's site for the latest DirectX download.

  • I know you're tired of hearing it, but it applies here also: scan for spyware and scan for viruses. Make sure that the databases you use for each tool are as up-to-date as possible. There have been reports of this kind of problem being related to spyware or viruses.

  • Under Windows XP, ensure that the Cryptographic Services are enabled and running:

    • Right-click on My Computer
    • Click on Manage
    • Expand Services and Applications
    • Click on Services
    • Right-click on Cryptographic Services
    • Click on Properties
    • Set the Startup type to Automatic
    • OK and close your way back out.
    This service is required for the validation to work.

  • Ensure that you are up-to-date with Windows Service Packs. There are apparently specific fixes in the service packs that relate to the cryptography service and could result in its failure. I recommend enabling Automatic Updates as well.

  • Run chkdsk or scandisk on your Windows drives. Certain types of file corruption can result in this problem.

  • Run the System File Checker under Windows XP to detect and repair any corruption or system irregularities.

  • On Windows 9x (95, 98 and Me), hit Start, Run, and run the command "scanreg.exe /fix".

  • Review the two Microsoft Knowledgebase articles listed below. They have a long list of steps that may help resolve the issue.

  • Perform a Repair installation of Windows, as outlined in How to Perform a Windows XP Repair Install.

Some resources I encountered and from which some of the suggestions above were gleaned:

The bottom line is that yes, this is a royal pain, and no, it shouldn't have to be this way. As I said at the outset, there's apparently no One True Solution, no simple tweak, that will make this problem go away. I've prioritized the steps I'd take above so that hopefully your issue will get resolved after a few easy steps.

Take your time and try not to get frustrated (OK, try not to get too frustrated).

Good Luck!

Related:

Article 1894 | Posted February 6, 2005

Recent Comments
46 Comments

I opened the direct X log and read it to find out exactly what caused the problem and found this message

DXCheckTrust(): D:\DirectX\Apr2005_d3dx9_25_x86.cab is not trusted. The file may be damaged. Please check valid certificate is installed and Cryptographic Services are enabled.

So I found this file, right clicked it, pressed properties and found out the certificate was not vaild. So I installed the certificate but it still says it isn't valid.

Can anyone help? Thanks.

Posted by: Robby L at January 18, 2008 5:43 AM

iam running on vista and i cant do half the stuff there because it is for XP and i did the other half and it still dosent work!!!wahhhh!!!!!Pls help me cuz i wanna play COD4 and crysis (if my com can take it)plspslsplsplspls HELP!!!!

Posted by: Jonathan at January 26, 2008 4:06 AM

If anyone is having this problem, I want to let you know first hand that using the log file to track down the problem is the best solution. I spent three days trying every other fix, and finally did it myself. Do a search for 'DirectX' and find the text file directly under your 'Windows' folder. Open it up, delete ALL of the contents and then save it.

Now, re-run the failing install, when it fails re-open the log file and look at the very bottom, in the last 10 lines or so there will be a path to the unverified file. Find this file in windows explorer, right click and hit properties.

If this file has a 'Digital Signature' tab, then try re-installing the digital signature (this worked for one of the two files I had problems with)

If the digital signature tab doesn't show up under properties OR if the option above doesn't work then rename the file to something else and then re-run the install.

Worked like a charm for me.

Good Luck!

Posted by: Shane at April 23, 2008 1:50 PM

Chad is right, thanks so much!!!!

I tried everything suggested (except repair XP that was the last thing its liek the lame solution since your pretty much reinstalling XP). Had high hopes for Iggys but it diddnt work. Looked at chads post and tried it

So went to Start> Search, and type in Directx and first thing was the Directx log, scroll through it and the problem was the same as Chads but different file:
05/14/08 16:48:57: dxupdate: DXCheckTrust(): C:\WINDOWS\system32\DirectX\WebSetup\Apr2005_d3dx9_25_x86.cab is not trusted. The file may be damaged. Please check valid certificate is installed and Cryptographic Services are enabled. is not trusted. The file is not signed properly.

So I went to that location and I deleted that cab file .

I ran my Betfair Poker game which then prompted the directx thing and it installed fine and worked!!!

Posted by: Niz at May 14, 2008 9:08 AM

The post by Chad at January 15, 2008 07:00 AM worked ... Thanks a lot

Posted by: ak at June 6, 2008 5:46 AM

I have been searching off and on for a solution to this directX problem for almost a year!!Finally I found this site and read these comments, Thanx Chad it worked perfectly. And thank you Leo for this great site!

Posted by: Shell at June 14, 2008 8:13 PM

chads way worked for me just perfectly, thanks!

Posted by: Brandon at June 16, 2008 8:12 PM

You are the man!! Well done!! I did it!! FINALY

Posted by: Bole at August 14, 2008 8:52 AM

I was havind the same problem installing DirectX 10. Followed Chad's advice and it worked like a charm. Thanks!!!

Posted by: Jim at September 9, 2008 5:31 PM

for windows vista, the direct x log is in c:/windows/logs
but an easier way instead of looking at the log, is just to delete all of the .cab files in the direct x folder, and reintalling direct x from the windows site. i had multiple crypt. issues, so i just erased them all and it worked fine!

Posted by: Jeb at September 21, 2008 9:50 AM

Post a comment on ""A Cabinet file cannot be trusted" - Why?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

New!

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

Please wait. Your comment is being processed ...


Ask Your Question:


ask-leo.com
Web

Stay Informed

Weekly Newsletter

Archives

By Category
By Date

Advertisers

Advertise on Ask Leo!

««   »»

Question? - Ask Leo!
Who is Leo?
Link to Leo!

Terms, Conditions & Privacy