DISM Error: 0x800f0805

1

I was removing some packages in offline mode from Windows 7 HomePremium X64 image and I received this error on some of them.

DISM v6.1.7600.16385
Error: 0x800f0805
The specified package is not valid windows package.

Examples:

Microsoft-Windows-Shell-MultiplayerInboxGames-Package~31bf3856ad3
64e35~amd64~en-US~6.1.7601.17514

Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364
e35~amd64~en-US~8.0.7601.17514

Microsoft-Windows-MediaCenter-Package~31bf3856ad364e35~amd64~en-U
S~6.1.7601.17514

Does it mean that they're not in the image?

user425154

Posted 2017-02-27T13:21:40.677

Reputation:

"Does it mean that they're not in the image?" - You would have to run the command that lists the packages contain on the image. We can't answer your question without that information. – Ramhound – 2017-02-27T14:35:49.063

They are in the list, of course. – None – 2017-02-27T14:56:01.153

If you know they are part of the image, then why are you asking, if they are part of your image? – Ramhound – 2017-02-27T15:05:31.313

how have you removed/tried to remove them? – magicandre1981 – 2017-02-27T15:35:44.460

Hey guys, when I open a thread here I expect to receive smart answers or I would open the thread on Technet... Why do I ask if these packages are in the wim file? Because Microsoft tells me that they are not valid (I don't know what they mean). – None – 2017-02-27T16:07:53.960

How do I remove them? DISM! – None – 2017-02-27T16:08:22.373

Answers

0

You can't remove them directly. There is some work in the registry required to make them visible to DISM. There is already a tool which does it for you.

It is called install_wim_tweak.exe.

Open a cmd.exe as admin and run install_wim_tweak.exe /o /l to dump all available packages into the Packages.txt. Open it to see the name of all packages and run install_wim_tweak.exe /o /c Microsoft-Windows-InternetExplorer-Optional-Package /r to kill IE.

magicandre1981

Posted 2017-02-27T13:21:40.677

Reputation: 86 560

Ah, at last we understand each other. Thanks. I used that tool only to see the packages list, then I switched to DISM (useless tool)... another Microsoft epic fail. – None – 2017-02-28T17:44:45.327

Hey Andre, I almost forgot... sometimes it's not easy to understand what these packages are. Do you know if there's some Microsoft reference documentation? I can't find detailed info... – None – 2017-02-28T18:15:42.903

use this to extract the packages: http://superuser.com/a/1171910/174557 and in the CAB you see the files, now check the properties of the files, to see what the files do. now you see what the package does. now you can also create a backup and import it later back if you deleted an package that you need later again.

– magicandre1981 – 2017-03-01T16:30:05.847

Beautiful, but I read that verbose post and I don't see any link to download. If you can upload that tool it would be nice... – None – 2017-03-01T20:40:47.067

register to MDL forum to see the download link – magicandre1981 – 2017-03-02T05:32:21.033

I know it, but there's nothing to download... – None – 2017-03-02T12:34:07.970

I shared the file: http://www74.zippyshare.com/v/WL5IczN5/file.html

– magicandre1981 – 2017-03-02T14:50:06.027

Hey andre, does it work?... this software I mean... install_wim_tweak.exe. It says all the packages were correctly removed (offline mount), but the image size doesn't change and when I install the system they are all there... I'm just a bit ????? – None – 2017-03-16T17:56:15.180

Also, I downloaded the latest available version (1.4.8 for netfx 4.6.1). – None – 2017-03-16T17:57:20.750

rebuild the WIM by exporting the edition to a new WIM – magicandre1981 – 2017-03-17T15:43:31.700