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?

6
  • "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
    Commented Feb 27, 2017 at 14:35
  • They are in the list, of course.
    – user425154
    Commented Feb 27, 2017 at 14:56
  • If you know they are part of the image, then why are you asking, if they are part of your image?
    – Ramhound
    Commented Feb 27, 2017 at 15:05
  • how have you removed/tried to remove them? Commented Feb 27, 2017 at 15:35
  • 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).
    – user425154
    Commented Feb 27, 2017 at 16:07

1 Answer 1

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.

10
  • 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.
    – user425154
    Commented Feb 28, 2017 at 17:44
  • 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...
    – user425154
    Commented Feb 28, 2017 at 18:15
  • use this to extract the packages: 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. Commented Mar 1, 2017 at 16:30
  • 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...
    – user425154
    Commented Mar 1, 2017 at 20:40
  • register to MDL forum to see the download link Commented Mar 2, 2017 at 5:32

You must log in to answer this question.