[转帖]为Windows XP/2003 PE加入WimFltr组件,使其支持挂载WIM文件
2021-5-12 1353

注意,本贴仅适用于WindowsPE内核为1.X,即Windows XP PE、Windows 2003 PE。

这里添加的WimFltr版本为6.0,文件需要从早期的Windows 7镜像中提取。

 

在现行PE中增加挂接WIM文件的支持相当简单,无需修改TXTSETUP.SIF文件、也无需.INF文件,只需在注册表文件(SETUPREG.HIV,导入名为pe)

增加两项服务,分别向SYSTEM32目录、DRIVERS目录复制两个文件即可,下面是WimFltr组件的文件列表:

I386
   |
   +---SYSTEM32
          |
          +-----WIMGAPI.DLL
          |
          +-----FLTLIB.DLL
          |
          +-----DRIVERS
                  |
                  +-----WIMFLTR.SYS
                  |
                  +-----WIMFSF.SYS

注册表文件:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\FltMgr]
"Description"="File System Filter Manager Driver"
"DisplayName"="FltMgr"
"ErrorControl"=dword:00000001
"Group"="FSFilter Infrastructure"
"ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\
72,00,69,00,76,00,65,00,72,00,73,00,5c,00,66,00,6c,00,74,00,6d,00,67,00,72,\
00,2e,00,73,00,79,00,73,00,00,00
"Start"=dword:00000000
"Type"=dword:00000002
"Tag"=dword:00000001
"AttachWhenLoaded"=dword:00000001

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Enum\Root\LEGACY_FLTMGR]
"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Enum\Root\LEGACY_FLTMGR\0000]
"Service"="FltMgr"
"Legacy"=dword:00000001
"ConfigFlags"=dword:00000000
"Class"="LegacyDriver"
"ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
"DeviceDesc"="FltMgr"

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFltr]
"Type"=dword:00000002
"Start"=dword:00000003
"ErrorControl"=dword:00000001
"Tag"=dword:00000004
"ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
52,00,49,00,56,00,45,00,52,00,53,00,5c,00,77,00,69,00,6d,00,66,00,6c,00,74,\
00,72,00,2e,00,73,00,79,00,73,00,00,00
"DisplayName"="WimFltr"
"Group"="FSFilter Compression"
"DependOnService"=hex(7):46,00,6c,00,74,00,4d,00,67,00,72,00,00,00,00,00
"DependOnGroup"=hex(7):00,00
"Description"="Windows Image Mini-Filter Driver"
"DebugFlags"=dword:00000001

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFltr\Instances]
"DefaultInstance"="WimFltr Instance"

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFltr\Instances\WimFltr Instance]
"Altitude"="170500"
"Flags"=dword:00000000

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFltr\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\
00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\
00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFsf]
"DisplayName"="Windows Imaging File System Filter Driver"
"Group"="FSFilter Compression"
"ErrorControl"=dword:00000001
"Start"=dword:00000000
"Type"=dword:00000002
"DependOnService"=hex(7):46,00,6c,00,74,00,4d,00,67,00,72,00,00,00,00,00
"ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
72,00,69,00,76,00,65,00,72,00,73,00,5c,00,77,00,69,00,6d,00,66,00,73,00,66,\
00,2e,00,73,00,79,00,73,00,00,00
"Tag"=dword:00000001
"DependOnGroup"=hex(7):00,00
"Description"="Windows Imaging File System Filter Driver"

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFsf\Instances]
"DefaultInstance"="Wimfsf Instance"

[HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\WimFsf\Instances\Wimfsf Instance]
"Altitude"="161000"
"Flags"=dword:00000000
收藏
点赞
道具卡
分享
官方QQ群:872611894(群密码:pecmd.net)
最新回复 (0)
返回