1.
用UltraISO打开下载来的PE.ISO,提取引导文件为pe.bif。
2.
提取WINPE.IS_,解压缩得到winpe.iso,用UltraISO打开winpe.iso加载pe.bif为引导文件,把PE.ISO里面wxpe目录下NTDETECT.COM、SETUPLDR.BIN添加到winpe.iso的wxpe目录下,想加载引导为中文的复制BOOTFONT.BIN到winpe.iso光盘根目录。
3. 解压缩TXTSETUP.SI_得到TXTSETUP.SIF,补齐:里面[SourceDisksFiles]中SYSTEM32及SYSTEM32\DRIVERS目录中的文件.也可只加入下面六个文件,能启动,但可能一些功能会不大正常。
c_936.nls=100,,,,,,,2,0,0,,1,2
kdcom.dll=100,,,,,,,2,0,0,,1,2
ntdll.dll=100,,,,,,,2,0,0,,1,2
ntoskrnl.exe=100,,,,,,,2,0,0,,1,2
setupreg.hiv=100,,,,,,,2,0,0,,1,2
vgaoem.fon=100,,,,,,,2,0,0,,1,2
4.
添加“外置程序”目录到光盘根目录。如有需要做相应修改。
有空写了个批处理,放在WXPE下运行,能得到TXTSETUP.SIF中要补齐的SYSTEM32下全部文件,并且在WXPE下生成一个1.TXT文件,自己复制加进TXTSETUP.SIF里面[SourceDisksFiles]下就行
PUSHD %~dp0\system32
set TP=100,,,,,,,2,0,0,,1,2
set VP=1,,,,,,,1,0,0
ECHO explorer.exe="%VP%">>%~dp0\1.txt
ECHO regedit.exe="%VP%">>%~dp0\1.txt
FOR /F %%i In ('DIR *.* /B /A-D') DO ECHO %%i="%TP%">>%~dp0\1.txt
for /f "delims=" %%i in ('dir /s/b %~dp0\1.txt') do (
for /f "delims=" %%a in ('type "%%~fi"') do (
set "foo=%%a"
call,set foo=%%foo:DL_=DLL%%
call,echo/%%foo%%>>"%%~fi._"
)
move "%%~fi._" "%%~fi"
)
for /f "delims=" %%i in ('dir /s/b %~dp0\1.txt') do (
for /f "delims=" %%a in ('type "%%~fi"') do (
set "foo=%%a"
call,set foo=%%foo:EX_=EXE%%
call,echo/%%foo%%>>"%%~fi._"
)
move "%%~fi._" "%%~fi"
)
for /f "delims=" %%i in ('dir /s/b %~dp0\1.txt') do (
for /f "delims=" %%a in ('type "%%~fi"') do (
set "foo=%%a"
call,set foo=%%foo:NL_=NLS%%
call,echo/%%foo%%>>"%%~fi._"
)
move "%%~fi._" "%%~fi"
)
for /f "delims=" %%i in ('dir /s/b %~dp0\1.txt') do (
for /f "delims=" %%a in ('type "%%~fi"') do (
set "foo=%%a"
call,set foo=%%foo:FO_=FON%%
call,echo/%%foo%%>>"%%~fi._"
)
move "%%~fi._" "%%~fi"
)
for /f "delims=" %%i in ('dir /s/b %~dp0\1.txt') do (
for /f "delims=" %%a in ('type "%%~fi"') do (
set "foo=%%a"
call,set foo=%%foo:HI_=HIV%%
call,echo/%%foo%%>>"%%~fi._"
)
move "%%~fi._" "%%~fi"
)
EXIT
[ 本帖最后由 潮退潮生 于 2011-7-3 01:50 编辑 ] |