|
本帖最后由 hzican 于 2018-4-21 17:39 编辑
2018.04.21,两年后有更新system32目录的精简列表。
Win7 - 32位 手工极限精简后文件列表(Nano Client)
2016.04.22 更新:Windows目录的精简
1、使用原版ISO文件 cn_windows_7_ultimate_with_sp1_x86_dvd_618763.iso 或者 cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.iso手工精简,不知道这两个版本有什么区别? 下载地址参考:http://msdn.itellyou.cn
2、使用dism或者wimlib从install.wim导出第五个版本的安装镜像文件, wimlib下载地址参考: http://wimlib.net
3、关闭默认启用的功能:- md z:\0
- dism /ScratchDir:z:\temp /Mount-Wim /WimFile:z:\0.wim /Index:1 /MountDir:z:\0
- dism /ScratchDir:z:\temp /Image:z:\0 /Disable-Feature /FeatureName:"WindowsGadgetPlatform" /FeatureName:"InboxGames" /FeatureName:"More Games" /FeatureName:"Solitaire" /FeatureName:"SpiderSolitaire" /FeatureName:"Hearts" /FeatureName:"FreeCell" /FeatureName:"Minesweeper" /FeatureName:"PurblePlace" /FeatureName:"Chess" /FeatureName:"Shanghai" /FeatureName:"Internet Games" /FeatureName:"Internet Checkers" /FeatureName:"Internet Backgammon" /FeatureName:"Internet Spades" /FeatureName:"MediaPlayback" /FeatureName:"WindowsMediaPlayer" /FeatureName:"MediaCenter" /FeatureName:"OpticalMediaDisc" /FeatureName:"NetFx3" /FeatureName:"TabletPCOC" /FeatureName:"Printing-Foundation-Features" /FeatureName:"Printing-Foundation-InternetPrinting-Client" /FeatureName:"FaxServicesClientPackage" /FeatureName:"MSRDC-Infrastructure" /FeatureName:"Printing-XPSServices-Features" /FeatureName:"Internet-Explorer-Optional-x86" /FeatureName:"Xps-Foundation-Xps-Viewer" /FeatureName:"SearchEngine-Client-Package"
- dism /ScratchDir:z:\temp /Unmount-Wim /MountDir:z:\0 /Commit
复制代码
4、开始用wimlib删除目录:- wimlib-imagex update z:\0.wim < z:\w_rd.txt
复制代码
w_rd.txt内容格式如下,后面会附上文件给懒人下载:- delete --recursive "\$Recycle.Bin"
- delete --recursive "\Documents and Settings"
- delete --recursive "\PerfLogs"
- delete --recursive "\Windows\AppCompat"
复制代码
最后\Windows下面一级为13个目录:- \Windows\AppPatch
- \Windows\Branding
- \Windows\Fonts
- \Windows\Globalization
- \Windows\inf
- \Windows\L2Schemas
- \Windows\Resources
- \Windows\servicing
- \Windows\Setup
- \Windows\System32
- \Windows\Web
- \Windows\winsxs
- \Windows\zh-CN
复制代码
\Windows\winsxs下面一级为7个目录:- \Windows\winsxs\Catalogs
- \Windows\winsxs\Manifests
- \Windows\winsxs\x86_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17514_none_0b66cb34258c936f
- \Windows\winsxs\x86_microsoft.windows.c..-controls.resources_6595b64144ccf1df_6.0.7600.16385_zh-cn_b7a33d2d3f47b7fb
- \Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af
- \Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2
- \Windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.17514_none_72d18a4386696c80
复制代码
其中\Windows\winsxs\Catalogs精简为空目录,\Windows\winsxs\Manifests下面精简到10个文件:- \Windows\winsxs\Manifests\x86_microsoft-windows-shell-setup_31bf3856ad364e35_6.1.7601.17514_none_d4623c9747e247a7.manifest
- \Windows\winsxs\Manifests\x86_microsoft-windows-winre-recoveryagent_31bf3856ad364e35_6.1.7601.17514_none_bcd407cfce259313.manifest
- \Windows\winsxs\Manifests\x86_microsoft.windows.c..-controls.resources_6595b64144ccf1df_5.82.7600.16385_zh-cn_6189e316803d96d4.manifest
- \Windows\winsxs\Manifests\x86_microsoft.windows.c..-controls.resources_6595b64144ccf1df_6.0.7600.16385_zh-cn_b7a33d2d3f47b7fb.manifest
- \Windows\winsxs\Manifests\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af.manifest
- \Windows\winsxs\Manifests\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2.manifest
- \Windows\winsxs\Manifests\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.17514_none_72d18a4386696c80.manifest
- \Windows\winsxs\Manifests\x86_microsoft.windows.i..utomation.proxystub_6595b64144ccf1df_1.0.7600.16385_none_9d148a8db8d32238.manifest
- \Windows\winsxs\Manifests\x86_microsoft.windows.isolationautomation_6595b64144ccf1df_1.0.0.0_none_35d357a66c38ade4.manifest
- \Windows\winsxs\Manifests\x86_microsoft.windows.systemcompatible_6595b64144ccf1df_6.0.7600.16385_none_49adccbde8169a03.manifest
复制代码
\Windows\System32下面一级为11个目录:- \Windows\System32\catroot
- \Windows\System32\CodeIntegrity
- \Windows\System32\config
- \Windows\System32\drivers
- \Windows\System32\DriverStore
- \Windows\System32\oobe
- \Windows\System32\Setup
- \Windows\System32\SMI
- \Windows\System32\spp
- \Windows\System32\wbem
- \Windows\System32\zh-CN
复制代码
5、开始用wimlib删除文件,目前进度还没有完成system32的文件精简:- wimlib-imagex update z:\0.wim < z:\w_del.txt
复制代码
w_del.txt内容格式如下:- delete "\autoexec.bat"
- delete "\config.sys"
- delete "\Windows\bfsvc.exe"
复制代码
6、修改system、software、components,增加无人应答文件 unattend.xml:
- wimlib-imagex update z:\0.wim < z:\w_upd.txt
复制代码
w_upd.txt内容格式如下:- add unattend.xml \Windows\Panther\unattend.xml
- add components \Windows\System32\config\components
- add software \Windows\System32\config\software
- add system \Windows\System32\config\system
复制代码
7、真正清除删除的文件和目录- wimlib-imagex optimize z:\0.wim --recompress
复制代码
这是初步精简,后面会继续公布最新进展。
附上附件
Z.7z
(180.84 KB, 下载次数: 176)
|
评分
-
查看全部评分
|