Chuyu-Team / Dism-Multi-language

Dism++ Multi-language Support & BUG Report
MIT License
15.03k stars 1.02k forks source link

could dism++ add /Cleanup-Image function? #296

Closed KevinDaiVIP closed 6 years ago

KevinDaiVIP commented 6 years ago

I always use the following command. DISM /online /Cleanup-Image /StartComponentCleanup /ResetBase

Now, very time, must close Dism++ first and run the command in cmd window. Then re-open Dism++ to do further processes. Could you consider to add /Cleanup-Image, /StartComponentCleanup, /ResetBase function? Thank you very much.

verdy-p commented 6 years ago

Cleanup image is already performed by DISM (this is waht gives you over 15GB of backups or previous components to be cleaned after each installation of a new Windows 10 build, and this is not just for "Windows.old", but really within the new installation as these components were initially kept before staring a version migration after first boot). In DISM this is done with options related to the Component Store (winSxS). Note that "StartComponentCleanup" may cause some problems with the impossibility to uninstall system patches (you'll have to wait then for a newer version of affected components from Windows Update) or some programs uininstallers will fail to revert a component to a backward version that was kept in archive, but was from the standard release branch, instead of a QFE fix from Microsoft which is not always supported by Microsoft but made for specific applications. I tried /Cleanup-Image, /StartComponentCleanup after performing all DISM++ cleanups and this does not save so much storage (a few megabytes, mostly within temporary folders and in DISM.log or CBS.log, but this operation also adds some used storage for new logs, so there's actually no benefit at all). It's just simpler to run again the cleanup in DISM++ after a second boot (once component migration has been done, as well as when the user's preferences have been migrated) to clean about 1-2GB

verdy-p commented 6 years ago

Also "ResetBase" is dangereous: it could disconnect your existing installation from a know stable branch from which a Windows build version upgrade is possible.

KevinDaiVIP commented 6 years ago

Hi Verdy-P,

Thanks for you replay and those cautions you mentioned. I'm a golden image engineer, familiar with those information. I always to update lots of install.wim, winre.wim and boot.wim to the newest cumulative update. If I don't clean up the mount point, cannot save wim file to mini size even export to a new one. So I'm very happy dism++ could add these function.

mingkuang-Chuyu commented 6 years ago

Dism++ support this function. In Dism ++ it's called Replaced WinSxS assemblies. By the way, this feature is supported only by Dism++, MS Dism ignores the /ResetBase parameter in Windows 10.