Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

"A Cabinet file cannot be trusted" – Why?

“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.

Become a Patron of Ask Leo! and go ad-free!

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!

Subscribe to Confident Computing! Tech problem solving & safety tips with a weekly confidence boost in your inbox every week.

I'll see you there!

10 Reasons Your Computer is Slow

Slow Computer?

Speed up with my FREE special report: 10 Reasons Your Computer is Slow, now updated for Windows 10.

No strings. No email. Here's the direct download. (Just right-click and "Save As...".)

67 comments on “"A Cabinet file cannot be trusted" – Why?”

  1. hi..i also still have problem when installing directx 9.0c ..when i run it it seems like the setup have install the directx 9.0c..but not it isn’t…also wanna know how the hell i wanna install this directx 9.0c

    Reply
  2. I had the cabinet file error whenever I tried to download DirectX 9.0c from microsoft. I have Windows ME, and I did a Windows Update (start then windows update), and I downloaded DirectX 9.0c from there, and it worked perfectly.

    Reply
  3. FINALLY! I go out and spend $59 on the sims2 game and it doesnt work! thank-you! Ive searched the web for days and found nothing thank-you again for your help!

    Reply
  4. I have Windows XP. Every time I go to Microsoft.com, and download DirectX 9.0, it downloads, and then at the very end, it says cabinet file cannot be trusted. Windows Update won’t run (something about ActiveX)

    Please Help

    Reply
  5. Hello,
    I have this same problem too with this, for a cool game called Need For Speed: Underground 2. The same annoying cabinet file error comes and I can’t install from the CD either. To the point, I’ve tried all of those suggestions listed except for repairing windows because I do not wish to back-up all my like…50 GB worth of stuff. Also, I hear DrectX 9.0c can run on Win. XP: SP1, so I do not want to update to SP2 either. Anymore suggestions? Yes, I did read the article and tried the other options, but none of which seem to work…

    Reply
  6. Hello all

    My suggestion to those of you who have had the same problem as myself: “cabinet file cannot be trusted.” Yes, i know it is very frustrating and i got my game for christmas and here it is now july and im just now able to play it. I finally got directx 9.0 to install so heres what i did (I have Windows XP):

    First, i made sure that my cyptographic services were on.
    Then i uninstalled my current version of directx (8.1) with direct x eradicator
    After my system rebooted, i went to run and typed in ‘dxdiag’ to check what version of directx was on and at this point, it should say ‘Version not found’ and at this point, make sure that your sound dlls and everything is still there. Then i went to microsoft and i was finally allowed to install directx9.0. After installing 9.0 go back to dxdiag and make sure that your files are working properly. If directx eradicator somehow messed up anything, go to start>assesories>system tools>system restore. and this will restore your computer to the state it was in before directx eradicator. Hope this helps. If any questions just post or email me.

    Reply
  7. CAUSE- These issues may indicate that a component of Windows XP that processes digital signatures is damaged.

    To resolve this behavior, re-register the Softpub.dll, Wintrust.dll, Initpki.dll, Dssenh.dll, Rsaenh.dll, Gpkcsp.dll, Sccbase.dll, Slbcsp.dll, Mssip32.dll, and Cryptdlg.dll files. To do so, follow these steps: 1.Click Start, and then click Run. 2.In the Open box, type cmd, and then click OK. 3.At the command prompt, type regsvr32 softpub.dll, and then press ENTER. 4.Click OK when you receive the message that DllRegisterServer in Softpub.dll succeeded. 5.Repeat steps 1 through 4 for the following files: Wintrust.dll, Initpki.dll, Dssenh.dll, Rsaenh.dll, Gpkcsp.dll, Sccbase.dll, Slbcsp.dll, Mssip32.dll, and Cryptdlg.dll. 6.Type exit, and then press ENTER to quit Command Prompt.

    Reply
  8. All these ways of evading “cannot be trusted” are
    for Windows XP. But I have Windows 2000 Pro, and in trying to install Google Earth, where DirectX 9.0 is required, I get the “Cannot be trusted — Download failed” msg. 2000 has no Cryptographic Services link, so that first procedure can’t work.
    What now, brown cow? If Leo or someone else can tell me, I’ll gladly buy Leo a Latte! DavidK

    Reply
  9. Actually, the Download of DirectX 9.0 was entirely successful. It’s the INSTALLATION that failed because “A cabinet file necessary for installation cannot be trusted.” No one seems to offer a solution I can try. Remember, I’m using Win 2000 Pro, not XP. 2000 has no “cryptographic
    services” to click on, so that’s out. Leo, I still have your Latte waiting. David K.

    Reply
  10. I recently down loaded DirectX 9.0 and now cannot load most of my game rooms, especially pogo. When trying the computer does nothing but lock up. Microsoft is of no help at all.

    Reply
  11. Hey iggy
    Thanks a bunch .I tried the other suggestions like running scandisk,sfc /scannow but it didn’t work until i re-registered the files. Thanks for the post

    Reply
  12. Hey

    At first I was getting the cabinet file cannot be trusted when attempting to upgrade from 9.0b to 9.0c. I eventually fixed that, but now I’m being told that ati2dvag.dll is not digitally signed. I’ve attempted to fix the .dll drivers in command prompt but this didn’t not fix it. Help?

    Reply
  13. Hi

    I tried loading Need for Speed undergound Most Wanted and Ive tried evrything mentioned above nothing worked on my Windows, i tried MS site and apparently it gave me some problems complaining about the MS Version i had, i then decided to roll back my dxdiag to a previous version and then update that never worked to. I finally fixed the problem by Loading Service pack 2 for windows.

    Reply
  14. Iggy,

    Thank you so much, I have been trying to fix this for some time and I even skimmed this article to no avail. I looked at the comments today and it worked.

    Thanks again.

    Reply
  15. Hi Leo!

    I went to the Cryptographic Services and it was already in Automatic. So I let it as it was. Then I made this pass “Run chkdsk or scandisk on your Windows drives. Certain types of file corruption can result in this problem.” I tried to install DirectX 9.0c and it appeared again! “A Cabinet File for the installation cannot be trusted” :X! What can I Do? I’m getting frustated.

    Sorry for my English, I’m Portuguese.

    Reply
  16. I had this problem with Win98se on my laptop. I upgraded from IE5.01, which was the version that came with the computer, to IE6.0sp1 and DirectX 9.0c then installed without a problem. The initial problem was that dsound.dll could not be found and installing DirectX 9.0c solved the problem.

    Reply
  17. about e-mail, It isn’t working right now.
    any way,
    I am 11 and I am having trouble with my computer. It’s a windows 98, and apparently it dosen’t come with directX9.0b.Unfortunately, this is exactly what I need for installing games and sofware for both my I pod shuffle and my camera.
    I tried installing it and found that it was a pretty simple thing to do, until the little box poped up saying I needed a “cabinet file”. I found the deffinition, but I still need a cabinet file.do I have to go to another web site, make one , buy one, or do I just not know what I’m Talking about?

    -help!!!!!!!!!!
    maggie

    Reply
  18. Hello PPL,
    I got Windows XP Service Pack 1.
    for me what made it work is i simply updated my windows and it upgraded my service pack to number 2, witch allready installed the directx for me,
    so i think thoes of u who still having problems simply upgrade to service pack 2 nothing to be afraid of 🙂

    Reply
  19. I had a simlar problem trying to load SW Empire at war. I have SP2 and DX9.0c already intalled but not the latest version , installing SWEAW the upgrade for DX tried to load but got the “cabinet file” statement. if i continude to try to play the game i got the d3dx9_27.dll statement ,after tring every option to resolve this, The fix that worked was to download the 27.dll upgrade alone and extract it to local drive – windows-system32 folder. as you get a request for a location, use the browes option and extract to system 32 folder.

    Reply
  20. I tried almost everything on this page and comments, and it was Iggy’s comment that helped me, I’m running Windows XP

    Reply
  21. Hi Leo
    Thanks a lot! The chkdsk worked for me! I have so much trouble installing win xp on my new machine, hopefulley this third install is the lucky time!

    Reply
  22. Hello i’ve tried to install DirectX 9.0c for the longest time. I have tried many things to download it to try and play my games.It always says file nessessary for installation cannot be trusted.Will you please tell me a solution.

    Reply
  23. I have tried everything that you said, but it still says, “A cabinet file cannot be trusted.” I am running an XP Home Edition with service pack 2, but I dont have service pack 1. Does this have anything to do with it?
    Also, I have no idea what windows updates are or where you can get them, so I think it might fix the problem. I have had Civilization 4: Beyond the Sword for 2 months and cannot get it to run because of directx 9.0c. I only have till October 20th before I have to send it back. A relative suggested adding a new cryptographic profile, but knows nothing else. Can anybody help me please? If you cannot, its okay, but I at least want to find the windows updates and service pack 1. If you can, please email me at [Email Address Removed]

    Reply
  24. I’m running win98SE and I ran into the dreaded “A cabinet necessary for installation cannot be trusted.” I tried Leo’s list of things (as appropriate for win98) and explored the WinTrust.dll (and dependents) for corruption or unneeded security patches… I also tried older (July 2004, Aug 2006) downloads from Microsoft of their redistributable DirectX9. The older versions also failed.

    I finally was able to install DirectX 9 only after my wife suggested downgrading Internet Explorer 6.0 to IE5.5(SP2). After I did that, DirectX9 installed without any complaints! Since I use Firefox, I won’t bother to re-install IE6.0. Leo was right suspecting “enhanced” security as the problem and it looks like the security issue is somewhere in the IE6 support files. I don’t know what would happen on the more recent Windows OS’s, but for my win98SE, going back to IE5.5 solved this frustrating problem.

    Reply
  25. Microsoft is simply a bunch of common criminals. Every time problem arises I have to go into a war on their software (editing the registry, using 3rd party patches etc.) This time they made me fix dsetup32.dll to bybass digital signature check.
    Here is what I did
    00824D2D 90
    00824D2E 90

    00825C42 EB
    00825c43 40

    00823F03 EB
    00823f04 75

    Reply
  26. I found this on another site and this is what fixed all my problems with trying to install directx9.0c i went to my Control Panel clicked on administrative tools then i went to local security policy. I went to Software Restriction Policies and went to trusted publishers. From there i set it to end user which allowed me to reinstall directx 9.0c without the
    “A cabinet file necessary for installation cannot be trusted. Please verify the cryptographic services are enabled and the cabinet file certificate is valid.”
    error showing up again i had already tried everything he suggests on this site and this is what finally worked. for some reason it wasn’t letting me view any certificates in explorer since i changed this setting i have been able to install all my programs without a problem including activex files etc. I use Windows xp sp2 build 2600 btw. I know this is at the bottom but trty this first

    Reply
  27. I tried the list in the article and the suggestions in the various posts, including the popular one by Iggy. None of them worked for me. Finally, I did a search on my PC for Directx and found the Directx log. I searched this log until the most recent section where it was freezing up. I got the following.
    01/15/08 09:31:07: dxupdate: DXCheckTrust(): C:\WINDOWS\system32\DirectX\WebSetup\Dec2005_d3dx9_28_x86.cab is not trusted. The file is not signed properly.

    So I went to that location and I deleted that cab file (ok, I only moved it to test it so I could replace it if I messed something up). I ran the latest Directx again and it downloaded that exact one and then everything ran smoothly. I have a feeling the developers screwed up royaly and never digitally signed that version for sometime or for whatever reason so that so many people are having this issue. Just delete that cab file and run it again and it may work for you as well. I would suggest that you check your directx log file and see what your holdup is exactly FIRST before trying any of these other ideas. I wasted alot of time on all the other ideas when if I knew there was a directx log file I would have checked that first.

    Anyway, I hope this helps alot of you that still cannot get it working.

    Reply
  28. 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.

    Reply
  29. 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!!!!

    Reply
  30. 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!

    Reply
  31. 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!!!

    Reply
  32. 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!

    Reply
  33. 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!

    Reply
  34. If you still have trouble with Cryptographic services go to:%systemroot%\system32\directx folder and delete Websetup folder and that is it!! I did everything and the services were running fine but I still couldn’t start a game, and when I deleted that folder it worked like a charm!!

    Reply
  35. I actually had this problem installing DirectX 10 on on Windows Vista. After trying everything listed here (except the repair) and still no dice, I did one more google search and figured out my problem and it was alot simpler than I thought…

    I didn’t have internet access (well kinda). I was installing it on a machine inside my corporate network. In order for any machine to gain access to the internet while on my network, you must authenticate with the firewall. For most users this automatically happens when you go to a website because the machine is added to the domain and the Windows account on the computer is authenticated against the domain controller. However, in this case, I had not connected to the internet by going to a website so the computer techically did not have access to the internet.

    Had I been doing a search on the internet for the problem from the machine that was experiencing the problem, I would have been prompted to authenticate and I wouldn’t have seen the problem, but I was searching the internet for the problem from my machine since the machine experiencing the problem was only a test machine and hadn’t been added to my domain yet. I got lazy and did one last final search but this time from the computer with the problem (because I didn’t want to go back to my computer) and when prompted to log into the firewall, it hit me.

    So why did the machine need access to the internet? This was because the DirectX setup file is actually a 200 KB (approx) file that then connects to the internet to download the rest of the setup files.

    So if anyone comes across the post later, I figured I would share my experience and give one other thing to check, just in case it is something silly like that I ran into.

    Hope it helps!!

    Sean

    Reply
  36. I did what Chad suggested, because so many other people had said it worked for them. But every time I re-ran the DirectX install, the corrupt files that I deleted were equally un-trustful…
    So I ended up deleting the same file like 100 times only to have it re-installed :(…

    Anyone know what I might doing wrong?

    Reply
  37. Dear Leo,

    I’ve had my computer for 6 years and never ever once in all those years have I ever had usde any space at all on my D drive.

    Just about 3 weeks ago after I defragged which I usually do once every week and always have I noticed NOW my D Drive is filled up to 31 percent.

    My question is how did that happen?

    My C Drive is filled up to 32 percent but the C drive is the one that’s always been full over the 6 years with some sort of percentage.

    I’m wondering how do I find out what is on my D Drive for why just recently it had became full 0f 31 percent of what ever is on there. Is there a way to find out what is on my D Drive at all?

    and should I or could I delete the space percentage and make it go back to 0 like it was for many years? How would I be able to do this?

    Thank You very much for your time and consideration.

    I hope you are able to answer my few questions in my time ofneeded help!

    Sincerely,

    Carolyn

    You probably want this article: Where’s my disk space going?

    – Leo
    16-Jan-2009
    Reply
  38. This error plagued me through a reformatting, safe mode, and everything else I could think of. I went through everything on the list aside from repairing Windows.

    What finally worked: Do a search for “DirectX” and go under the log file. Scroll all the way down, and towards the end it will tell you what exact file is not being verified. Then, go to C drive, WINDOWS, System32, DirectX. Go to Tools, Folder Options, and View and show your hidden files. Go to websetup. Find the file that cannot be verified, as stated in the Log. MOVE it to an empty folder made on your desktop (right click, new, folder). Don’t delete anything in System!!! Just move it out of the folder, and try again. DirectX DL will automatically replace the lost file.

    I got another error. Turns out I had another bad file. I moved it to the other folder as well, and tried again. And it finally worked!!

    Reply
  39. Jenna, you are the bomb!!!! i’m been trying to install this for a least a week. your method worked the first time around Thanks and may God be with you!!!1

    Reply
  40. Found this somewhere.
    Download directx websetup here (March 2009) http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=2da43d38-db71-4c1b-bc6a-9b6652cd92a3

    1. navigate to \Windows\System32\directx\ or \Windows\SysWow64\directx
    if you have vista x64.
    2. Click on “organise” file menu, then “folder and search options” then
    in the “View” tab check “show hidden files and folders” and then “ok”
    3. websetup folder will be visible now. go in there and delete all
    contents.
    4. run “dxwebsetup” again.
    Works for me under Vista 64bit.

    Reply
  41. Thanks Jenna!!! Your method really worked and I had no trouble following your clear instructions for a newbie like me, although I had to delete 4 bad files before I am able to download DirectX 10. Thanks once again!

    Reply
  42. This worked great! Thanks Jenna

    This error plagued me through a reformatting, safe mode, and everything else I could think of. I went through everything on the list aside from repairing Windows.

    What finally worked: Do a search for “DirectX” and go under the log file. Scroll all the way down, and towards the end it will tell you what exact file is not being verified. Then, go to C drive, WINDOWS, System32, DirectX. Go to Tools, Folder Options, and View and show your hidden files. Go to websetup. Find the file that cannot be verified, as stated in the Log. MOVE it to an empty folder made on your desktop (right click, new, folder). Don’t delete anything in System!!! Just move it out of the folder, and try again. DirectX DL will automatically replace the lost file.

    I got another error. Turns out I had another bad file. I moved it to the other folder as well, and tried again. And it finally worked!!

    Posted by: Jenna at March 17, 2009 5:33 PM

    Reply
  43. you are agoddess jenna even for a noob like me i was able to perform the repair,would really like to show my appreciation by sending you a gift card you save me time and money,seriously,ive set up a temporary emai,elcapitan3395 on yahoo,its only fair that you be rewarded and to show my appreciation

    Reply
  44. Thanks to the Comment from “iggy”. That was exactly, what helped to fix the problem in just 2 Minutes (after trying to find a solution for a few days)…… Thanks a lot !

    Reply
  45. hey, the range of things you have here is amazing. but i have a problem with divx9 for gameing online. i was just wondering if you no a fix for it because these are all windows xp and im on windows 7 :S any possible solotions will be truely greatful. thank you. josh

    Reply
  46. How stupid is this, the reason mine was having this error is because of an empty directx folder in windows/system32. All i did was delete the folder and hey presto downloaded no problem lol

    Reply
  47. You Know How You said that it would be frustrating? well it is and ive tried the top solution and it still didnt work and then tried to turn the cryptographic service on and it still failed. so….can you help Puh-leeeese?!?!?!?!?

    Reply
  48. OMG Harley is right guys! the original comment:
    How stupid is this, the reason mine was having this error is because of an empty directx folder in windows/system32. All i did was delete the folder and hey presto downloaded no problem lol
    IT WORKS, JUST DO IT AND SKIP ALL THIS BS

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.