本帖最后由 luochcd 于 2023-12-17 15:47 编辑
直接集成到 *.wim 中:
1、将 awealloc.sys、imdisk.sys 放到 Windows\System32\drivers 中;
2、将 imdisk.cpl、imdisk.exe、imdsksvc.exe 放到 Windows\System32 中;
3、将以下文本生成一个注册表文件,并离线导入到 SOFTWARE 和 SYSTEM 注册表配置单元中;
4、重新打包可。
附:文本
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\_SYSTEM\ControlSet001\Services\ImDisk]
"Type"=dword:00000001
"Start"=dword:00000002
"ErrorControl"=dword:00000000
"ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,5c,00,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,69,00,6d,00,64,00,69,00,73,00,6b,00,\
2e,00,73,00,79,00,73,00,00,00
"DisplayName"="ImDisk Virtual Disk Driver"
"Description"="Disk emulation driver"
[HKEY_LOCAL_MACHINE\_SYSTEM\ControlSet001\Services\ImDskSvc]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000000
"ImagePath"=hex(2):58,00,3a,00,5c,00,77,00,69,00,6e,00,64,00,6f,00,77,00,73,00,\
5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6d,00,64,\
00,73,00,6b,00,73,00,76,00,63,00,2e,00,65,00,78,00,65,00,00,00
"DisplayName"="ImDisk Virtual Disk Driver Helper"
"ObjectName"="LocalSystem"
"Description"="Helper service for ImDisk Virtual Disk Driver."
[HKEY_LOCAL_MACHINE\_SYSTEM\ControlSet001\Services\AWEAlloc]
"Type"=dword:00000001
"Start"=dword:00000002
"ErrorControl"=dword:00000000
"ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,5c,00,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,61,00,77,00,65,00,61,00,6c,00,6c,00,\
6f,00,63,00,2e,00,73,00,79,00,73,00,00,00
"DisplayName"="AWE Memory Allocation Driver"
"Description"="Driver for physical memory allocation through AWE"
[HKEY_LOCAL_MACHINE\_SOFTWARE\Classes\*\shell\ImDiskMountFile]
@="装载到 ImDisk 虚拟磁盘"
"Icon"="ImDisk.cpl,0"
[HKEY_LOCAL_MACHINE\_SOFTWARE\Classes\*\shell\ImDiskMountFile\command]
@="rundll32.exe imdisk.cpl,RunDLL_MountFile %L"
[HKEY_LOCAL_MACHINE\_SOFTWARE\Classes\AppID\{5364ED0E-493F-4B16-9DBF-AE486CF22660}]
@="Virtual Disk Service Loader"
[HKEY_LOCAL_MACHINE\_SOFTWARE\Classes\CLSID\{9C38ED61-D565-4728-AEEE-C80952F0ECDE}]
@="Virtual Disk Service Loader"
"AppID"="{5364ED0E-493F-4B16-9DBF-AE486CF22660}"
[HKEY_LOCAL_MACHINE\_SOFTWARE\Classes\CLSID\{9C38ED61-D565-4728-AEEE-C80952F0ECDE}\LocalServer32]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,64,00,\
73,00,6c,00,64,00,72,00,2e,00,65,00,78,00,65,00,00,00
|