|
原帖由 dos时代菜鸟 于 2008-10-12 21:38 发表
公用的dll 都放在 pe_sys.isz \common 里面,同时修改 common里面的 dlls.txt 把dll文件名写入 dlls.txt ,看看能不能行。
谢谢楼主!!!!我已经成功了,是这样改的。
我是在find_wim里增加了两个文件:IconShEx.dll和WimReg_ADD.CMD。
在wim.ini里增加了一句:EXEC @WimReg_ADD.CMD
开始一直不成功是WimReg_ADD.CMD里有一个注册表项没修改:[HKEY_CLASSES_ROOT\CLSID\{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}\InprocServer32]
@="z:\\PE_SYS\\find_wim\\iconshex.dll"
其它的没动,不知道哪些有用,哪些是无用的。现附上,能否帮忙修改一下????
REGEDIT4
;cls&@echo off&&goto :start
[HKEY_CLASSES_ROOT\CLSID\{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}]
@="IconShlExt Class"
[HKEY_CLASSES_ROOT\CLSID\{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}\InprocServer32]
@="z:\\PE_SYS\\find_wim\\iconshex.dll"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT\CLSID\{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}\ProgID]
@="IconShEx.IconShlExt.1"
[HKEY_CLASSES_ROOT\CLSID\{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}\Programmable]
[HKEY_CLASSES_ROOT\CLSID\{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}\TypeLib]
@="{8D0C998B-5209-44C8-B5D8-5930081FBE89}"
[HKEY_CLASSES_ROOT\CLSID\{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}\VersionIndependentProgID]
@="IconShEx.IconShlExt"
[HKEY_CLASSES_ROOT\IconShEx.IconShlExt]
@="IconShlExt Class"
[HKEY_CLASSES_ROOT\IconShEx.IconShlExt\CLSID]
@="{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}"
[HKEY_CLASSES_ROOT\IconShEx.IconShlExt\CurVer]
@="IconShEx.IconShlExt.1"
[HKEY_CLASSES_ROOT\IconShEx.IconShlExt.1]
@="IconShlExt Class"
[HKEY_CLASSES_ROOT\IconShEx.IconShlExt.1\CLSID]
@="{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}"
[HKEY_CLASSES_ROOT\Windows Image\ShellEx\IconHandler]
@="{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}"
:start
cd /d "%~dp0"
::call wimnt.exe /REG /mp B:\WimTools /tp %temp% (这句被我注释掉了,find_wim.cmd里有)
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WimNT.exe" /ve /d "\"%~dp0wimnt.exe\"" /f
::为WIM文件添加图标扩展支持
regedit /s "%~f0"
REG ADD "HKCR\CLSID\{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}\InprocServer32" /ve /d "\"%~dp0iconshex.dll\"" /f
::为WIM文件添加拖放支持
for /f "usebackq tokens=1* delims==" %%i in (`assoc .wim`) do (
reg ADD "HKCR\%%j\ShellEx\DropHandler" /ve /d "{86C86720-42A0-1069-A2E8-08002B30309D}" /f
)
::修改WIMNT的注册,以方便拖放程序
::if exist wimnt.exe (
::新版的不需要这些.
:: reg add "HKEY_CLASSES_ROOT\Windows Image\shell\OPEN\command" /ve /d "\"%~dp0wimnt.exe\" /M \"%%1\" /p %%*" /f
::)
for %%a in (.txt,.cmd,.wim,.bat) do (
for /f "usebackq tokens=1* delims==" %%i in (`assoc %%a`) do (
reg ADD "HKCR\%%j\ShellEx\IconHandler" /ve /d "{CD6A03CB-47BD-4175-8620-718AF3D7C2AD}" /f
)
)
[ 本帖最后由 xiao75918 于 2008-10-13 12:22 编辑 ] |
|