|
本帖最后由 slore 于 2017-10-30 20:39 编辑
不知道你什么语言的程序,boot.wim能用的话,估计是C++的。
那么先精简winsxs,cat能少100MB,然后考虑精简Font字体。
system32下面的dll按大小排序,删除一批测试吧。
最少的话,boot.wim是70MB左右,不过自己的C++程序能运行,notepad都打不开。
CatRoot:
KEEP_ITEMS.txt(其余全删除)
- Windows\System32\CatRoot
- ={F750E6C3-38EE-11D1-85E5-00C04FC295EE}
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-Common-Drivers-drivers-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-Common-Drivers-ds-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-Common-Drivers-Package-windows-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-Common-Drivers-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-Foundation-Group-ds-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-Foundation-Group-minkernel-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-WinPE-SKU-Foundation-base-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-WinPE-SKU-Foundation-drivers-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-WinPE-SKU-Foundation-ds-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-WinPE-SKU-Foundation-minkernel-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-WinPE-SKU-Foundation-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-WinPE-SKU-Foundation-termsrv-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Microsoft-Windows-WinPE-SKU-Foundation-windows-Package~*~%PE_ARCH_PREFIX%~~*.cat
- {F750E6C3-38EE-11D1-85E5-00C04FC295EE}\nt5.cat
复制代码
WinSxs:
KeepItems.txt
- Windows\WinSxS
- ;%PE_ARCH_PREFIX%_microsoft-windows-advancedtaskmanager_*_*_none_*
- ;%PE_ARCH_PREFIX%_microsoft-windows-a..skmanager.resources_*_*_%PB_PE_LANG%_*
- %PE_ARCH_PREFIX%_microsoft-windows-servicingstack_*_*_none_*
- =Manifests
- Manifests\%PE_ARCH_PREFIX%_microsoft.windows.systemcompatible_*_*_none_*.manifest
- Manifests\%PE_ARCH_PREFIX%_microsoft.windows.fusion_components_all_*_*_none_*.manifest
- ;below "+Manifests" keyword
- ;not only the directory and also the Manifests file will be added
- +Manifests
- %PE_ARCH_PREFIX%_microsoft.windows.common-controls_*_*_none_*
- %PE_ARCH_PREFIX%_microsoft.windows.gdiplus.systemcopy_*_*_none_*
- %PE_ARCH_PREFIX%_microsoft.windows.gdiplus_*_*_none_*
- %PE_ARCH_PREFIX%_microsoft.windows.isolationautomation_*_none_*
- %PE_ARCH_PREFIX%_microsoft.windows.i..utomation.proxystub_*_none_*
- %PE_ARCH_PREFIX%_microsoft.windows.c..-controls.resources_*_%PB_PE_LANG%_*
复制代码
Last.bat
- rem just keep drvstore.dll
- set MS_SS=
- for /f "delims=" %%i in ('dir /b X:\Windows\WinSxS\%PE_ARCH_PREFIX%_microsoft-windows-servicingstack_*_*_none_*') do (
- set MS_SS=%%i
- )
- if "x%MS_SS%"=="x" goto :EOF
- move /Y X:\Windows\WinSxS\%MS_SS%\drvstore.dll X:\Windows\WinSxS\
- del /Q X:\Windows\WinSxS\%MS_SS%\*.*
- move /Y X:\Windows\WinSxS\drvstore.dll X:\Windows\WinSxS\%MS_SS%\
- set MS_SS=
复制代码 |
评分
-
查看全部评分
|