|
本帖最后由 tools241 于 2019-10-4 19:38 编辑
10PE 增 "是否载入外置工具" 选项 +XP14种输入法+Firefox+Chrome+
影片剪辑+WordReader+救回误删档+标楷体+卡拉OK+千千静听+百度音乐+...
** 本文纯供研究之用, 若未经PE原作者同意, 请勿提供修改前或修改后的PE载点连结.
** PE作者特别在 pecmd.ini 中宣告了 RAMD ImDisk,L512,NTFS,Y:,ImDisk
, 利用 ImDisk.exe 建立大小为512M的虚拟磁碟 Y: , 可用来 "载入外置工具", 亦可存放 "自行添加的工具".
一.有兴趣者可实测下列10PE :
bear1alex1大所发表的 [原创] (2016-06-24)Windows 10 PE X86(10586)繁体中文(可UEFI启动)
==> http://nonameteam.cc/thread-2989-1-1.html
** bear1alex1大所发表的 10586PEx86繁体,
本范例为添加3Firefox/3Chrome/6WordReader/...等(开头带数字的)工具后桌面如下图(点图放大) :
bear1alex1大所发表的 [原创] (2015-12-20)Windows 10 LTS PE X64(10240) 繁体中文(可UEFI启动)
==> http://bbs.wuyou.net/forum.php?mod=viewthread&tid=372692
http://nonameteam.cc/thread-2720-1-1.html
bear1alex1大所发表的 (2016-09-05)Windows 10X64 14393 PE 繁体中文(可UEFI启动)
==> http://bbs.wuyou.net/forum.php?mod=viewthread&tid=380488
http://nonameteam.cc/thread-3185-1-1.html
sun00721大所发表的 [分享] Win10PEx64-20160520 X64(10586版 及 10240版)
==> http://nonameteam.cc/thread-2740-1-1.html
** sun00721大所发表的 10586PEx64繁体,
本范例为添加 3Firefox/3Chrome/6WordReader/...等(开头带数字的)工具后桌面如下图(点图放大) :
注: 10PE (x86,x64) 与软体的相容性比较: 似乎 10586版及14393版 比 10240版为优.
如果将8.1PEx86的 PartAssist 提取出来压成 seltool\PartAssist.7z, 可供 10PE 共用.
二.修改的步骤:
1.将 *BOOT.WIM 解压缩
2.在 *BOOT.WIM 添加 7z.EXE, 7z.DLL, Addon_10PE_1st.CMD, Addon_10PE_2nd.CMD, 桌面清单(按Window_z).LNK
3.修改 Windows\system32\PECMD.INI
4.以WimTool.EXE 选最大压缩, 重新压制 *BOOT.WIM
三.修改 Windows\system32\PECMD.INI :
...
// 下1行加在 "TEXT ...虚拟磁碟并载入外置工具..." 之后:
MESS 若未做选择在5秒内会自动关闭此视窗.\n若载入全部工具则会多花一些时间\n是否载入全部工具 #YN *5000 $N
...
// 下2行加在 RAMD ImDisk,L512,NTFS,Y:,ImDisk 之后
Find $%YESNO%=YES , EXEC !=X:\Addon_10PE_1st.CMD YES
Find $%YESNO%=NO , EXEC !=X:\Addon_10PE_1st.CMD
// 若回答Y才会载入外置工具: 下列在 _END 前的各行在开头都增加 Find $%YESNO%=YES ,
Find $%YESNO%=YES , FORX ...
Find $%YESNO%=YES , FORX ...
...
_END
...
...
// 以下各行加在 PECMD.INI 之文末
// 在 seltool\Addon_10PE_1st.BAT 请自行设定 Firefox/Chrome/影片剪辑/PotPlayer 分别要放在 X: 或 Y:
// 如果 参数1 为 YES, 表示 Y: 空间较少, 最好上列4工具全部存到 X:
EXEC =!X:\PotPlayer\setup.cmd
LINK !%DESKTOP%\PotPlayer,X:\PotPlayer\PotPlayerMini.exe
EXEC =!Y:\PotPlayer\setup.cmd
LINK !%DESKTOP%\PotPlayer,Y:\PotPlayer\PotPlayerMini.exe
FILE "X:\Firefox\APP\Firefox_PE_X.LNK=>%Desktop%\3Firefox异空版.LNK"
FILE "Y:\Firefox\APP\Firefox_PE_Y.LNK=>%Desktop%\3Firefox异空版.LNK"
FILE "X:\GoogleChrome\Data\GoogleChrome_PE_X.LNK=>%Desktop%\3GoogleChrome异空版.LNK"
FILE "Y:\GoogleChrome\Data\GoogleChrome_PE_Y.LNK=>%Desktop%\3GoogleChrome异空版.LNK"
LINK !%DESKTOP%\8Avidemux影片剪辑(XP不相容),X:\Avidemux\Avidemux.exe
LINK !%DESKTOP%\8Avidemux影片剪辑(XP不相容),Y:\Avidemux\Avidemux.exe
...
...
LINK !%DESKTOP%\8碎片文件整理,Y:\Addon\WinContig\WinContig.exe
LINK !%DESKTOP%\8磁碟重组,Y:\Addon\Defraggler\Defraggler.exe
LINK !%DESKTOP%\9磁碟重组,Y:\Addon\SmartDefrag\SmartDefrag.exe
LINK !%DESKTOP%\9驱动备份,Y:\Addon\SmartDriverBackup\SmartDriverBackup.exe
EXEC =!REGEDIT /S "Y:\Addon\NTPClock\NTPClock.REG"
LINK !%DESKTOP%\0网路校时 ,Y:\Addon\NTPClock\NTPClock.exe
EXEC =!REGEDIT /S "Y:\Addon\hclock\HamsinClock.REG"
EXEC =!REGEDIT /S "X:\HamsinClock_w.reg"
LINK !%DESKTOP%\1时钟 ,Y:\Addon\hclock\HamsinClock.exe
EXEC =!REGEDIT /S "Y:\Addon\ADMon\ADMon.REG"
LINK !%DESKTOP%\2视频广告过滤,Y:\Addon\ADMon\ADMon.exe
LINK !%DESKTOP%\9随身碟病毒免疫器,Y:\Addon\usb_anti_virus\usb_anti_virus.exe
EXEC =!Y:\Addon\Recuva\outtool.cmd
LINK !%DESKTOP%\9救回误删档,Y:\Addon\Recuva\Recuva.exe
EXEC !=Y:\Addon\XNVIEW\outtool.CMD
LINK !%DESKTOP%\9XNVIEW看图,Y:\Addon\XNVIEW\XNVIEW.exe
EXEC =!Y:\Addon\WinAmp_LRC\outtool.cmd
LINK !%DESKTOP%\8MP3卡拉OK异空版,Y:\Addon\WinAmp_LRC\WinAmp_LRC.exe
LINK !%DESKTOP%\8MP3Gain音量调整器,Y:\Addon\WinAmp_LRC\MP3Gain音量调整器\MP3Gain_portable.exe
LINK !%DESKTOP%\8自制动态歌词LRC_Editor,Y:\Addon\WinAmp_LRC\自制动态歌词LRC_Editor\自制动态歌词LRC_Editor.exe
LINK !%DESKTOP%\8Mp3Profile清单产生器,Y:\Addon\WinAmp_LRC\Mp3Profile清单产生器\Mp3Profile.exe
LINK !%DESKTOP%\8音乐转档精灵,Y:\Addon\MediaEncoder\MediaConvert.exe
LINK !%DESKTOP%\8WAV音档剪辑,Y:\Addon\CTWAVE\CTWAVE32.EXE
LINK !%DESKTOP%\9WinSCP(Ftp工具),Y:\Addon\WinSCP\WinSCP.exe
...
...
...
// "10PE" 平板模式按 [Window+D] 若无法进入桌面, 可改按 [Window+z] 出现桌面清单
LINK !%Desktop%\桌面清单(按Window_z),X:\桌面清单(按Window_z).LNK
HOTK Win+z, X:\桌面清单(按Window_z).LNK
; // "10PE" 的桌面若未显示 "资源回收筒" 可自行添加; 若已显示或不是10PE则请在下一行的开头加入 //
// LINK !%DESKTOP%\资源回收筒(Win_g),X:\$RECYCLE.BIN\S-1-5-18
; // "10PE" 设 [window+g] 进 "资源回收筒" ;若不是10PE则请在下列2行的开头加入 //
LINK X:\资源回收筒, "X:\$RECYCLE.BIN\S-1-5-18"
HOTK Win+g, X:\资源回收筒.LNK
// LINK !%Desktop%\进桌面后请执行一次,X:\Addon_10PE_2nd.CMD
LOAD Y:\Addon_10PE.ini
______________________________________________________________________________________
四.编辑 Addon_10PE_1st.CMD :
echo off
set z7=X:\7z.exe
for %%i in ( C D E F G H I J K L M N O P Q R S T U V W ) do if exist %%i:\seltool set sel=%%i:\seltool
copy /Y %sel%\Addon_10PE_1st.BAT X:\Addon_10PE_1st.BAT >nul 2>nul
if exist X:\Addon_10PE_1st.BAT X:\Addon_10PE_1st.BAT %1
五.编辑 Addon_10PE_2nd.CMD :
PECMD.EXE LOAD Y:\Addon_10PE.ini
六.编辑 seltool\Addon_10PE_1st.BAT :
REM 在 Addon_10PE_1st.BAT 可依第一个参数是否为 YES 来决定要载入那些 "另外添加" 的工具:
set Myt=Y:\
REM 7z.EXE 及 7z.DLL 须并存, 若资料夹含空格则set z7 后的双引号不可省
set z7="X:\7z.exe"
if not exist Y:\Addon md Y:\Addon
REM 让档案总管 显示副档名 & 显示隐藏的项目
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 1 /f
for %%i in ( C D E F G H I J K L M N O P Q R S T U V W ) do if exist %%i:\seltool set sel=%%i:\seltool
REM 为加快启动速度, 在10PE 有些工具不添加
if not "%1"=="YES" set unused=_
REM if not "%1"=="YES" goto skip1
if exist X:\Windows\Fonts\Fonts goto skip1
REM 微软正黑体 Windows\Fonts\msjh.ttc 改压成 selboot\Fonts.msjh.ttc微软正黑体.7z
REM 标楷体:从XP或 PE_tools(简繁PE通用工具包).7z 找来kaiu.ttf压成 selboot\Fonts.kaiu.ttf标楷体.7z
md X:\Windows\Fonts\Fonts 2>nul >nul
copy /Y %sel%\Fonts.*.7z X:\Windows\Fonts\Fonts 2>nul >nul
if exist "X:\Windows\Fonts\Fonts\*.7z" for %%f in (X:\Windows\Fonts\Fonts\*.7z) do %z7% x "%%f" -r -y -aos -oX:\Windows\Fonts\Fonts
if exist X:\Windows\Fonts\Fonts\*.7z PECMD.EXE FONT X:\Windows\Fonts\Fonts
del /Q X:\Windows\Fonts\Fonts\*.7z 2>nul
:skip1
set sys=system32
if exist %windir%\sysWOW64 set sys=sysWOW64
REM dbgcore.dll (百度云管家会用到) ; avifil32.dll, zh-TW\avifil32.dll.mui (360云会用到) - 取自 PE_tools(简繁PE通用工具包).7z
for %%f in (dbgcore.dll) do if not exist %windir%\%sys%\%%f copy %sel%\10PE\sys\%%f %windir%\%sys%\%%f 2>nul >nul
set os=x86
if exist X:\Windows\SysWOW64 set os=x64
if not exist Y:\Addon_10PE.ini copy %sel%\Addon_10PE_%os%.ini Y:\Addon_10PE.ini 2>nul >nul
...
...
...
REM Firefox 的寻档顺序为 ?:\seltool\Firefox(64)*.7z , ?:\seltool\Firefox(免安装*,32位元*,简繁*通用).rar , ?:\outtool\wimmod\Firefox.WIM
REM Chrome 的寻档顺序为 ?:\seltool\Google(64)Chrome*.* , ?:\seltool\Google(32)Chrome*.*
set Fx_XY=Y
if "%1"=="YES" set Fx_XY=X
if exist X:\Windows\SysWOW64 if not exist %Fx_XY%:\Firefox for %%f in (%sel%\Firefox?64?*.7z) do %z7% x "%%f" -y -aos -o%Fx_XY%:\ 2>nul
for /d %%f in (%Fx_XY%:\Firefox*) do move "%%f" %Fx_XY%:\Firefox >nul 2>nul
if not exist %Fx_XY%:\Firefox for %%f in (%sel%\Firefox*.rar) do %z7% x "%%f" -y -aos -o%Fx_XY%:\ 2>nul
...
...
REM 工具 *.7z 可存到 seltool\ 之下
FOR %%d IN (
Addon\PartAssist%unused%
Addon\XNVIEW
) DO for /f "tokens=1,2 delims=\" %%i in ("%%d") do if not exist %Myt%\%%d for %%f in (%sel%\%%j*.7z) do %z7% x "%%f" -y -aos -o%Myt%\%%i
REM 资料夹改名为不含中文
FOR %%d IN (
Addon\PartAssist
Addon\XNVIEW
) DO for /f "tokens=1,2 delims=\" %%i in ("%%d") do for /d %%f in (%Myt%\%%d*) do move "%%f" %Myt%\%%d >nul 2>nul
REM PotPlayer
set PP_XY=Y
if "%1"=="YES" set PP_XY=X
if not exist %PP_XY%:\PotPlayer for %%f in (%sel%\PotPlayer*.7z) do %z7% x "%%f" -y -aos -o%PP_XY%:\ 2>nul
for /d %%f in (%PP_XY%:\PotPlayer*) do move "%%f" %PP_XY%:\PotPlayer >nul 2>nul
set Fx=?
for %%i in ( C D E F G H I J K L M N O P Q R S T U V W ) do if exist %%i:\outtool\wimmod set Fx=%%i:\outtool\wimmod
if "%Fx%"=="?" goto skip
REM 10PE与NoName XPE共用下列工具 , 当选择不载入外置工具( 参数1为 YES )则 %unused% 的值为 _ , 表示不载入某些另外添加的工具.
if not exist %Fx_XY%:\Firefox for %%f in (%Fx%\Firefox.WIM) do %z7% x "%%f" -y -aos -o%Fx_XY%:\Firefox 2>nul
if not exist %PP_XY%:\PotPlayer for %%f in (%Fx%\PotPlayer1.6.WIM) do %z7% x "%%f" -y -aos -o%PP_XY%:\PotPlayer 2>nul
FOR %%d IN (
Addon\64bit-Checker
Addon\ADMon
Addon\CTWAVE%unused%
Addon\Defraggler
Addon\FreeUPX%unused%
Addon\hclock
Addon\HE6
Addon\Inp_Pen
Addon\Input
Addon\MediaEncoder%unused%
Addon\NTPClock
Addon\PDFX
Addon\Recuva
Addon\SmartDriverBackup%unused%
Addon\TTPlayer4%unused%
Addon\TTPlayer7%unused%
Addon\UltraISO
Addon\UNLOCKER
Addon\usb_anti_virus
Addon\VeraCrypt
Addon\WinContig
Addon\Wimtool
Addon\WinAmp_LRC
Addon\WinSCP%unused%
Addon\WinRAR
Addon\WordReader
Addon\yong_
) DO for /f "tokens=1,2 delims=\" %%i in ("%%d") do if not exist %Myt%\%%d for %%f in (%Fx%\%%j*.WIM) do %z7% x "%%f" -y -aos -o%Myt%\%%d
:skip
...
...
REM PotPlayer 可改设定为 "单个即选即播" & (按[Ctrl+F])设定硬体加速
copy /y %sel%\PotPlayerMini_w.ini %PP_XY%:\PotPlayer\PotPlayerMini.ini 2>nul >nul
REM copy /y %sel%\PotPlayerMini64_w.ini %PP_XY%:\PotPlayer\PotPlayerMini64.ini 2>nul >nul
REM 时钟执行后在数字钟上按右键选[New Event], 便可设定 "(once某日/daily每日)定时提醒",
REM 设好后请将 [HKEY_CURRENT_USER\Software\Hamsin] 汇出至 seltool\HamsinClock_w.reg
if exist %sel%\HamsinClock_w.reg copy /y %sel%\HamsinClock_w.reg X:\HamsinClock_w.reg 2>nul >nul
另请参考 下列文中的 Addon.BAT :
8.1(RamOS)PE.ISO缩减93M+手写+XP14种输入法+yong小小输入法10种+Firefox51+Chrome54+
影片剪辑+WordReader+标楷体+卡拉OK+千千静听+百度音乐+... ==>
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=375136
http://nonameteam.cc/thread-2389-1-1.html
七.编辑 seltool\Addon_10PE_x??.ini , :
请参考 上列文中的 Addon_x86.ini :
八.桌面清单(按Window_z).LNK 取自 PE_tools(简繁PE通用工具包).7z :
简/繁 PE 通用工具包PE_Tools (Unlocker,64bit-Checker,7-Zip,PDFX,WordReader,WimTool,Recuva[救回误删档],
BOOTICE,手写+XP14种输入法+yong小小输入法10种,VeraCrypt加密,Defraggler磁碟重组,WinContig碎片文件整理)
可再添加Firefox,Chrome,影片剪辑 ==>
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=375264
http://nonameteam.cc/thread-2887-1-1.html
九.10PE补档取自 PE_tools(简繁PE通用工具包).7z :
seltool\10PE\sys\dbgcore.dll (百度云管家会用到),
seltool\10PE\sys\avifil32.dll, seltool\10PE\sys\zh-??\avifil32.dll.mui (360云会用到).
注: 若10PE有缺少上列档案, 在 Addon_10PE_1st.BAT 会进行补档. 360云将转型.
_____ 请参考以下6个回覆的内容 ______ |
评分
-
查看全部评分
|