Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: ??? when using Dism, HOW to prevent overbloating of the .wim file???

09 Jan 2018   #1
7point5

windows
 
 
??? when using Dism, HOW to prevent overbloating of the .wim file???

k so that's a common problem & yet the web fails to provide a good answer, so I'll try here:

when using dism to slipstream msu updates (especially into install.wim) the wim file tends to get bloated far beyond what would be expected

googling the problem has failed to turn up consistent solutions, some say you must unmount the image then remount, others propose different dism commands (but don't specify when to run them)

so my question is simple, when disming a wim file - especially when many msu files are involved in the updating of the wim - how the f can I avoid bloating & make sure the final .wim is as small as possible? (without using any artificial compression of the wim file I mean. I also want an iso that installs as fast as possible)

do I have to unmount & remount the wim everytime I add a package? or run a special cleanup command after each package is added?

or instead is there 1 simple command I can run only after all the msu files been added, before committing the wim?



ps. don't try google, I did & it's useless for this specific problem


My System SpecsSystem Spec
.
09 Jan 2018   #2
torchwood

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
 
 

Hi 7.5

My understanding is that it does need to be mounted.

All windows updates are compressed so yes they need to be expanded.

NOTE 3rd party extraction tools - ie 7Zip etc SHOULD NOT BE USED, possibly why your experiencing bloating

not entirely sure what you want to achieve, as updates are now cumulative , - and therefor HUGE

usefull reading
System Preparation Tool - Use to Customize Windows - Windows 7 Help Forums

Roy
My System SpecsSystem Spec
09 Jan 2018   #3
7point5

windows
 
 

Quote   Quote: Originally Posted by torchwood View Post
Hi 7.5

My understanding is that it does need to be mounted.

All windows updates are compressed so yes they need to be expanded.

NOTE 3rd party extraction tools - ie 7Zip etc SHOULD NOT BE USED, possibly why your experiencing bloating
? I don't use 3rd party tools where d'you get that?

I only use dism (from a win7 recovery environment)

I start with the usual Dism /Mount-WIM /WimFile *** command
then Dism /Image: *** /Add-Package
then Dism /Unmount-WIM /MountDir *** /Commit

and in the end the update wim file is a LOT bigger than the original (more than it should be)

so what commands must be added to make the resulting wim more compact?

Quote:
not entirely sure what you want to achieve, as updates are now cumulative
I know but there's a yuge problem:

the "convenience rollup" omits several important updates that came before the rollup (while including useless/harmful ones eg. telemetry)

so it's necessary to include many other updates before the rollup. starting with the KB3020369 service stack update which they didn't even include in the rollup despite its vital importance
My System SpecsSystem Spec
.

09 Jan 2018   #4
torchwood

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
 
 

Hi 7.5,

In answer to this and your other thread as well

Very few people here, me included, delved further inside the the actual inards of updates.
I know how thier made up.

You could try over at Sysnative Forum.

I only mentioned the 3rd party tools as a possible reason.

Roy

Latest version iso i know of

Noticias - ISO Media Installation for Windows 7 SP1 x64 English/Spanish June 2016 Slipstreamed with NVMe, USB 3.0 y 3.1, Thunderbolt support and all updates until June 2016
My System SpecsSystem Spec
09 Jan 2018   #5
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

You can export the image using maximum compression to a new wimfile. Gimagex or dism++ are simple to use
My System SpecsSystem Spec
09 Jan 2018   #6
7point5

windows
 
 

actually what I ment was, without even using compression : I read that dism creates some sort of "redundant" files every time a msu package is added to a wim - my question was how to "clean up" the wim of ALL unnecessary files created by the dism update procedure -using dism itself, not 3rd party apps
My System SpecsSystem Spec
10 Jan 2018   #7
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Use cab files instead.
My System SpecsSystem Spec
10 Jan 2018   #8
7point5

windows
 
 

? the cab files are the main file inside the msu file right? it almost as big as the msu file itself

so what the difference if I extract & use the cab file instead??? both msu & cab are same size
My System SpecsSystem Spec
10 Jan 2018   #9
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Differ engine uses express cabs. Dism++ will do it for you.

Dism++
My System SpecsSystem Spec
Reply

 ??? when using Dism, HOW to prevent overbloating of the .wim file???




Thread Tools




Similar help and support threads
Thread Forum
Open File - Security Warning : Allow or Prevent to Unblock File
Allow or Prevent to Unblock a File to Stop the "Open File - Security Warning" Prompt This will show you how to allow or prevent all users from being able to stop the Open File - Security Warning prompt by removing the unblock button and Always ask before opening this file check box for a...
Tutorials
DISM error 87 "DISM /online ""command not recognized""
Hey, So im trying to clean up my PC, FRESH install w/current updates followed @BRINK guide to DISM and keep getting this error
Performance & Maintenance
How do I prevent CD/DVD drive access on every file operation?
I'm new to the forum - thanks for having me here ;) About a week ago I started noticing that the CD/DVD drive on my laptop was being accessed on just about every file open, save or browse operation. Please forgive me if I'm not using the right terminology. For example, if I save an image from a...
Hardware & Devices
Any way to prevent notepad or Emacs from making file associations?
I have an ongoing problem with using Emacs on a Win7 machine. When I edit a .bat file and save the file, Emacs updates the registry with an association to 'open' .bat files with the Emacs editor. Batch files then fail to run properly, as they get open with Emacs rather then simply being run by a...
General Discussion
How to prevent a file from being deleted?
Hey, i have an internet filter which cannot be bypassed unless a certain file is deleted...so is there a way to prevent this file from being deleted?
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:13.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App