|
装过驱动的,不会重复,也不会覆盖,本工具自带的驱动 只针对没安装驱动的系统
安装卸载.exe ------>pecmd脚本
代码:
- #!PECMD
- FIND $%1=--cmd,
- {
- MSTR &&cmd=<2->%*
- %&cmd%
- EXIT FILE
- }
- FIND $"%1"="--sysver",
- {
- ENVI &&sysver=
- FIND $0=%&::bX64%, ENVI &&sysver=32! ENVI &&sysver=64
- SITE "%temp%\tmp.cmd",-H-A-R-S
- PUTF -dd -len=0 "%temp%\tmp.cmd",0,zero
- WRIT "%temp%\tmp.cmd",$0,set "ver=%&sysver%"
- SITE "%temp%\tmp.cmd",+H+A+R+S
- EXIT FILE
- }
- FIND $"%1"="--SearchFile",
- {
- ENVI &&FILE=
- BROW &&FILE,d:\install.wim,请选择 WIM 文件,WIM 文件|*.wim|所有文件|*.*|
- SITE "%temp%\tmp.cmd",-H-A-R-S
- PUTF -dd -len=0 "%temp%\tmp.cmd",0,zero
- WRIT "%temp%\tmp.cmd",$0,set "wimfile=%&FILE%"
- SITE "%temp%\tmp.cmd",+H+A+R+S
- EXIT FILE
- }
- FIND $"%1"="--SearchDir",
- {
- ENVI &&DIR=
- BROW &&DIR,*%CurDir%\,请选择一个文件夹
- SITE "%temp%\tmp.cmd",-H-A-R-S
- PUTF -dd -len=0 "%temp%\tmp.cmd",0,zero
- WRIT "%temp%\tmp.cmd",$0,set "wimdir=%&DIR%"
- SITE "%temp%\tmp.cmd",+H+A+R+S
- EXIT FILE
- }
- FIND $"%1"="",!
- {
- FIND $"%1"="/s",EXIT BLOCK
- LOAD %*
- EXIT FILE
- }
- _SUB Reboot,W170H130,提示,
- IMAG IMAG2,L5T6W48H43,shell32.dll#120,
- LABE ,L63T6W100H50,\n驱动已经安装,\n\n是否重启生效?
- ITEM ,L95T65W50H25,取消,KILL \,
- ITEM ,L20T65W50H25,确定,TEAM KILL \|SHUT -force R,
- ENVI T0=5
- TIME t1,1000,call TimeOut %~1
- call TimeOut %~1
- _END
- _SUB TimeOut
- ENVI @this=提示 %T0%
- CALC T0=%T0% - 1
- IFEX $%T0%<0,@ TEAM ENVI @t1=0|KILL \
- _END
- ENVI &&WIM=
- REGI $HKCR\Drive\shell\WIM.captureto\,&&WIM
- FIND $"%&WIM%"="",CALL install %*!CALL uninstall %*
- ENVI @@DeskTopFresh=1
- _SUB install
- FIND $0=%&::bX64%, ENVI &&imagex=%CurDir%\imagex32.exe! ENVI &&imagex=%CurDir%\imagex64.exe
- IFEX "%CurDir%\Mount.cmd",! TEAM MESS 找不到 Mount.cmd @错误#OK*5000|EXIT _SUB
- IFEX "%&imagex%",! TEAM MESS 找不到 Imagex.exe @错误#OK*5000|EXIT _SUB
- exec* &&ver=!CMD /C VER
- sed &&ver=0,[^0-9], ,%&ver%
- MSTR &&v1,&&v2,&&v3=<1*>%&ver%
- //MESS %&v1%,%&v2%,%&v3%
- IFEX $%&v1%=6,
- {
- REGI $HKCR\*\shell\wimmore1\MUIVerb=Imagex 右键菜单一
- REGI $HKCR\*\shell\wimmore1\SubCommands=WIM.apply;WIM.applyto;WIM.mount;WIM.mountto;WIM.mountrw;WIM.mountrwto;WIM.unmount;WIM.unmountrw;WIM.unmountall;WIM.unmountallc;WIM.split;WIM.splitto;WIM.export;WIM.exportto;WIM.exportwim
- REGI $HKCR\*\shell\wimmore1\icon="%&imagex%"
- REGI $HKCR\*\shell\wimmore2\MUIVerb=Imagex 右键菜单二
- REGI $HKCR\*\shell\wimmore2\SubCommands=WIM.ref;WIM.refto;WIM.refwim;WIM.refwimto;WIM.info;WIM.all;WIM.rename;WIM.dir;WIM.del;WIM.remount;WIM.recleanup
- REGI $HKCR\*\shell\wimmore2\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.apply\=解包 WIM 映像
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.apply\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.apply\command\="%CurDir%\Mount.cmd" /apply "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.applyto\=解包 WIM 映像到...
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.applyto\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.applyto\command\="%CurDir%\Mount.cmd" /applyto "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mount\=挂载 WIM (只读)
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mount\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mount\command\="%CurDir%\Mount.cmd" /mount "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountto\=挂载 WIM (只读)到...
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountto\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountto\command\="%CurDir%\Mount.cmd" /mountto "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountrw\=挂载 WIM (可写)
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountrw\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountrw\command\="%CurDir%\Mount.cmd" /mountrw "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountrwto\=挂载 WIM (可写)到...
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountrwto\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountrwto\command\="%CurDir%\Mount.cmd" /mountrwto "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmount\=卸载 WIM 映像
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmount\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmount\command\="%CurDir%\Mount.cmd" "/unmount" "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountrw\=卸载并保存 WIM 映像
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountrw\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountrw\command\="%CurDir%\Mount.cmd" "/unmount /commit" "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountall\=卸载 WIM 映像(全部)
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountall\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountall\command\="%CurDir%\Mount.cmd" /unmountall "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountallc\=卸载并保存 WIM 映像(全部)
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountallc\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountallc\command\="%CurDir%\Mount.cmd" /unmountallc "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.split\=分割 WIM 映像
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.split\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.split\command\="%CurDir%\Mount.cmd" /split "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.splitto\=分割 WIM 映像到...
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.splitto\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.splitto\command\="%CurDir%\Mount.cmd" /splitto "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.ref\=解包 SWM
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.ref\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.ref\command\="%CurDir%\Mount.cmd" /ref "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refto\=解包 SWM 到...
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refto\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refto\command\="%CurDir%\Mount.cmd" /refto "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refwim\=合并 SWM
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refwim\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refwim\command\="%CurDir%\Mount.cmd" /refwim "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refwimto\=合并 SWM 到...
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refwimto\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refwimto\command\="%CurDir%\Mount.cmd" /refwimto "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.export\=导出 WIM 子映像
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.export\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.export\command\="%CurDir%\Mount.cmd" /export "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.exportto\=导出 WIM 子映像到...
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.exportto\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.exportto\command\="%CurDir%\Mount.cmd" /exportto "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.exportwim\=导入到另一个 WIM
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.exportwim\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.exportwim\command\="%CurDir%\Mount.cmd" /exportwim "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.del\=删除 WIM 子映像
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.del\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.del\command\="%CurDir%\Mount.cmd" /delete "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.rename\=重命名 WIM 子映像
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.rename\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.rename\command\="%CurDir%\Mount.cmd" /rename "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.dir\=WIM 内部文件列表
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.dir\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.dir\command\="%CurDir%\Mount.cmd" /dir "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.info\=查看 WIM 映像信息
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.info\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.info\command\="%CurDir%\Mount.cmd" /info "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.all\=查看 WIM 挂载列表
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.all\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.all\command\="%CurDir%\Mount.cmd" all "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.remount\=重映射挂载路径
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.remount\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.remount\command\="%CurDir%\Mount.cmd" /remount "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.recleanup\=清理失败记录
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.recleanup\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.recleanup\command\="%CurDir%\Mount.cmd" "/cleanup" "%%1"
- REGI $HKCR\Directory\shell\wimmore\MUIVerb=Imagex 右键菜单
- REGI $HKCR\Directory\shell\wimmore\SubCommands=WIM.capture;WIM.captureto;WIM.append;WIM.unmount;WIM.unmountrw;WIM.unmountall;WIM.unmountallc;WIM.all;WIM.commit;WIM.commitapp;WIM.remount;WIM.recleanup
- REGI $HKCR\Directory\shell\wimmore\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.capture\=打包 WIM 文件
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.capture\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.capture\command\="%CurDir%\Mount.cmd" /capture "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.captureto\=打包 WIM 文件到...
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.captureto\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.captureto\command\="%CurDir%\Mount.cmd" /captureto "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.append\=增量备份到 WIM
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.append\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.append\command\="%CurDir%\Mount.cmd" /append "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.commit\=保存 WIM 更改(不卸载)
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.commit\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.commit\command\="%CurDir%\Mount.cmd" /commit "%%1"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.commitapp\=保存 WIM 更改(增量,不卸载)
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.commitapp\icon="%&imagex%"
- REGI $HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.commitapp\command\="%CurDir%\Mount.cmd" "/commit /append" "%%1"
- }!
- {
- REGI $HKCR\*\shell\WIM.apply\=WIM解包
- REGI $HKCR\*\shell\WIM.apply\command\="%CurDir%\Mount.cmd" /apply "%%1"
- REGI $HKCR\*\shell\WIM.applyto\=WIM解包到...
- REGI $HKCR\*\shell\WIM.applyto\command\="%CurDir%\Mount.cmd" /applyto "%%1"
- REGI $HKCR\*\shell\WIM.mount\=WIM挂载(只读)
- REGI $HKCR\*\shell\WIM.mount\command\="%CurDir%\Mount.cmd" /mount "%%1"
- REGI $HKCR\*\shell\WIM.mountto\=WIM挂载(只读)到...
- REGI $HKCR\*\shell\WIM.mountto\command\="%CurDir%\Mount.cmd" /mountto "%%1"
- REGI $HKCR\*\shell\WIM.mountrw\=WIM挂载(可写)
- REGI $HKCR\*\shell\WIM.mountrw\command\="%CurDir%\Mount.cmd" /mountrw "%%1"
- REGI $HKCR\*\shell\WIM.mountrwto\=WIM挂载(可写)到...
- REGI $HKCR\*\shell\WIM.mountrwto\command\="%CurDir%\Mount.cmd" /mountrwto "%%1"
- REGI $HKCR\*\shell\WIM.unmount\=WIM卸载
- REGI $HKCR\*\shell\WIM.unmount\command\="%CurDir%\Mount.cmd" "/unmount" "%%1"
- REGI $HKCR\*\shell\WIM.unmountrw\=WIM卸载并保存
- REGI $HKCR\*\shell\WIM.unmountrw\command\="%CurDir%\Mount.cmd" "/unmount /commit" "%%1"
- REGI $HKCR\*\shell\WIM.unmountall\=WIM卸载(全部)
- REGI $HKCR\*\shell\WIM.unmountall\command\="%CurDir%\Mount.cmd" /unmountall "%%1"
- REGI $HKCR\*\shell\WIM.unmountallc\=WIM卸载并保存(全部)
- REGI $HKCR\*\shell\WIM.unmountallc\command\="%CurDir%\Mount.cmd" /unmountallc "%%1"
- REGI $HKCR\*\shell\WIM.split\=WIM映像分割
- REGI $HKCR\*\shell\WIM.split\command\="%CurDir%\Mount.cmd" /split "%%1"
- REGI $HKCR\*\shell\WIM.splitto\=WIM映像分割到...
- REGI $HKCR\*\shell\WIM.splitto\command\="%CurDir%\Mount.cmd" /splitto "%%1"
- REGI $HKCR\*\shell\WIM.ref\=SWM解包
- REGI $HKCR\*\shell\WIM.ref\command\="%CurDir%\Mount.cmd" /ref "%%1"
- REGI $HKCR\*\shell\WIM.refto\=SWM解包到...
- REGI $HKCR\*\shell\WIM.refto\command\="%CurDir%\Mount.cmd" /refto "%%1"
- REGI $HKCR\*\shell\WIM.refwim\=SWM合并
- REGI $HKCR\*\shell\WIM.refwim\command\="%CurDir%\Mount.cmd" /refwim "%%1"
- REGI $HKCR\*\shell\WIM.refwimto\=SWM合并到...
- REGI $HKCR\*\shell\WIM.refwimto\command\="%CurDir%\Mount.cmd" /refwimto "%%1"
- REGI $HKCR\*\shell\WIM.export\=导出WIM子映像
- REGI $HKCR\*\shell\WIM.export\command\="%CurDir%\Mount.cmd" /export "%%1"
- REGI $HKCR\*\shell\WIM.exportto\=导出WIM子映像到...
- REGI $HKCR\*\shell\WIM.exportto\command\="%CurDir%\Mount.cmd" /exportto "%%1"
- REGI $HKCR\*\shell\WIM.exportwim\=导入到另一个WIM
- REGI $HKCR\*\shell\WIM.exportwim\command\="%CurDir%\Mount.cmd" /exportwim "%%1"
- REGI $HKCR\*\shell\WIM.del\=WIM子映像删除
- REGI $HKCR\*\shell\WIM.del\command\="%CurDir%\Mount.cmd" /delete "%%1"
- REGI $HKCR\*\shell\WIM.rename\=WIM子映像重命名
- REGI $HKCR\*\shell\WIM.rename\command\="%CurDir%\Mount.cmd" /rename "%%1"
- REGI $HKCR\*\shell\WIM.dir\=WIM内部文件列表
- REGI $HKCR\*\shell\WIM.dir\command\="%CurDir%\Mount.cmd" /dir "%%1"
- REGI $HKCR\*\shell\WIM.info\=WIM信息查看
- REGI $HKCR\*\shell\WIM.info\command\="%CurDir%\Mount.cmd" /info "%%1"
- REGI $HKCR\*\shell\WIM.all\=WIM挂载列表
- REGI $HKCR\*\shell\WIM.all\command\="%CurDir%\Mount.cmd" all "%%1"
- REGI $HKCR\*\shell\WIM.remount\=重映射挂载路径
- REGI $HKCR\*\shell\WIM.remount\command\="%CurDir%\Mount.cmd" /remount "%%1"
- REGI $HKCR\*\shell\WIM.recleanup\=清理失败记录
- REGI $HKCR\*\shell\WIM.recleanup\command\="%CurDir%\Mount.cmd" "/cleanup" "%%1"
- REGI $HKCR\Directory\shell\WIM.capture\=WIM打包
- REGI $HKCR\Directory\shell\WIM.capture\command\="%CurDir%\Mount.cmd" /capture "%%1"
- REGI $HKCR\Directory\shell\WIM.captureto\=WIM打包到...
- REGI $HKCR\Directory\shell\WIM.captureto\command\="%CurDir%\Mount.cmd" /captureto "%%1"
- REGI $HKCR\Directory\shell\WIM.append\=增量备份到WIM
- REGI $HKCR\Directory\shell\WIM.append\command\="%CurDir%\Mount.cmd" /append "%%1"
- REGI $HKCR\Directory\shell\WIM.unmount\=WIM卸载
- REGI $HKCR\Directory\shell\WIM.unmount\command\="%CurDir%\Mount.cmd" "/unmount" "%%1"
- REGI $HKCR\Directory\shell\WIM.unmountrw\=WIM卸载并保存
- REGI $HKCR\Directory\shell\WIM.unmountrw\command\="%CurDir%\Mount.cmd" "/unmount /commit" "%%1"
- REGI $HKCR\Directory\shell\WIM.unmountall\=WIM卸载(全部)
- REGI $HKCR\Directory\shell\WIM.unmountall\command\="%CurDir%\Mount.cmd" /unmountall "%%1"
- REGI $HKCR\Directory\shell\WIM.unmountallc\=WIM卸载并保存(全部)
- REGI $HKCR\Directory\shell\WIM.unmountallc\command\="%CurDir%\Mount.cmd" /unmountallc "%%1"
- REGI $HKCR\Directory\shell\WIM.commit\=WIM保存更改(不卸载)
- REGI $HKCR\Directory\shell\WIM.commit\command\="%CurDir%\Mount.cmd" /commit "%%1"
- REGI $HKCR\Directory\shell\WIM.commitapp\=WIM保存更改(增量,不卸载)
- REGI $HKCR\Directory\shell\WIM.commitapp\command\="%CurDir%\Mount.cmd" "/commit /append" "%%1"
- REGI $HKCR\Directory\shell\WIM.remount\=重映射挂载路径
- REGI $HKCR\Directory\shell\WIM.remount\command\="%CurDir%\Mount.cmd" /remount "%%1"
- REGI $HKCR\Directory\shell\WIM.recleanup\=清理失败记录
- REGI $HKCR\Directory\shell\WIM.recleanup\command\="%CurDir%\Mount.cmd" "/cleanup" "%%1"
- }
- //删除WimTool的“资源管理器外壳执行扩展”,否则右键菜单会弹出WimTool界面,无法打开本程序
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellExecuteHooks\{E54C78A6-CD12-4F6C-92DE-E31A38B328D5}\!
- REGI $HKCR\Drive\shell\WIM.captureto\=备份到 WIM
- REGI $HKCR\Drive\shell\WIM.captureto\icon="%&imagex%"
- REGI $HKCR\Drive\shell\WIM.captureto\command\="%CurDir%\Mount.cmd" /captureto "%%1"
- REGI $HKCR\Drive\shell\WIM.append\=备份到 WIM(增量)
- REGI $HKCR\Drive\shell\WIM.append\icon="%&imagex%"
- REGI $HKCR\Drive\shell\WIM.append\command\="%CurDir%\Mount.cmd" /append "%%1"
- ENVI &&tmpwim=
- REGI $HKCR\Drive\shell\WIM.captureto\,&&tmpwim
- FIND $""="%&tmpwim%",TEAM MESS 请以管理员身份运行!@错误#OK*3000|EXIT FILE
- "LINK %SendTo%\WIM 打包,%CurDir%\Mount.cmd,/capture,%&imagex%"
- "LINK %SendTo%\WIM 打包到...,%CurDir%\Mount.cmd,/captureto,%&imagex%"
- "LINK %SendTo%\增量备份到 WIM,%CurDir%\Mount.cmd,/append,%&imagex%"
- "LINK %SendTo%\WIM 解包,%CurDir%\Mount.cmd,/apply,%&imagex%"
- "LINK %SendTo%\WIM 解包到...,%CurDir%\Mount.cmd,/applyto,%&imagex%"
- "LINK %SendTo%\WIM 挂载(只读),%CurDir%\Mount.cmd,/mount,%&imagex%"
- "LINK %SendTo%\WIM 挂载(只读)到...,%CurDir%\Mount.cmd,/mountto,%&imagex%"
- "LINK %SendTo%\WIM 挂载(可写),%CurDir%\Mount.cmd,/mountrw,%&imagex%"
- "LINK %SendTo%\WIM 挂载(可写)到...,%CurDir%\Mount.cmd,/mountrwto,%&imagex%"
- "LINK %SendTo%\WIM 卸载,%CurDir%\Mount.cmd,/unmount,%&imagex%"
- LINK "%SendTo%\WIM 卸载并保存","%CurDir%\Mount.cmd","/unmount /commit",%&imagex%
- "LINK %SendTo%\WIM 卸载(全部),%CurDir%\Mount.cmd,/unmountall,%&imagex%"
- "LINK %SendTo%\WIM 卸载并保存(全部),%CurDir%\Mount.cmd,/unmountallc,%&imagex%"
- "LINK %SendTo%\WIM 映像分割,%CurDir%\Mount.cmd,/split,%&imagex%"
- "LINK %SendTo%\WIM 映像分割到...,%CurDir%\Mount.cmd,/splitto,%&imagex%"
- "LINK %SendTo%\SWM 解包,%CurDir%\Mount.cmd,/ref,%&imagex%"
- "LINK %SendTo%\SWM 解包到...,%CurDir%\Mount.cmd,/refto,%&imagex%"
- "LINK %SendTo%\SWM 合并,%CurDir%\Mount.cmd,/refwim,%&imagex%"
- "LINK %SendTo%\SWM 合并到...,%CurDir%\Mount.cmd,/refwimto,%&imagex%"
- "LINK %SendTo%\导出 WIM 子映像,%CurDir%\Mount.cmd,/export,%&imagex%"
- "LINK %SendTo%\导出 WIM 子映像到...,%CurDir%\Mount.cmd,/exportto,%&imagex%"
- "LINK %SendTo%\导入到另一个 WIM,%CurDir%\Mount.cmd,/exportwim,%&imagex%"
- "LINK %SendTo%\WIM 子映像删除,%CurDir%\Mount.cmd,/delete,%&imagex%"
- "LINK %SendTo%\WIM 子映像重命名,%CurDir%\Mount.cmd,/rename,%&imagex%"
- "LINK %SendTo%\WIM 内部文件列表,%CurDir%\Mount.cmd,/dir,%&imagex%"
- "LINK %SendTo%\WIM 映像信息,%CurDir%\Mount.cmd,/info,%&imagex%"
- "LINK %SendTo%\重映射挂载路径,%CurDir%\Mount.cmd,/remount,%&imagex%"
- "LINK %SendTo%\清理失败记录,%CurDir%\Mount.cmd,/cleanup,%&imagex%"
- "LINK %SendTo%\保存更改(不卸载),%CurDir%\Mount.cmd,/commit,%&imagex%"
- LINK "%SendTo%\保存更改(增量,不卸载)","%CurDir%\Mount.cmd","/commit /append",%&imagex%
- FIND $"/S"="%~1",!MESS ImageX_6.2 命令行工具 安装成功! @提示#OK*5000
- _END
- _SUB uninstall
- REGI HKCR\*\shell\wimmore1\!
- REGI HKCR\*\shell\wimmore2\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.append\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.apply\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.applyto\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mount\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountto\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountrw\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.mountrwto\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmount\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountrw\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountall\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.unmountallc\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.info\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.all\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.rename\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.export\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.exportto\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.exportwim\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.dir\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.del\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.split\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.splitto\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.ref\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refto\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refwim\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.refwimto\!
- REGI HKCR\Directory\shell\wimmore\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.capture\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.captureto\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.commit\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.commitapp\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.remount\!
- REGI HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WIM.recleanup\!
- REGI HKCR\*\shell\WIM.apply\!
- REGI HKCR\*\shell\WIM.applyto\!
- REGI HKCR\*\shell\WIM.mount\!
- REGI HKCR\*\shell\WIM.mountto\!
- REGI HKCR\*\shell\WIM.mountrw\!
- REGI HKCR\*\shell\WIM.mountrwto\!
- REGI HKCR\*\shell\WIM.unmount\!
- REGI HKCR\*\shell\WIM.unmountrw\!
- REGI HKCR\*\shell\WIM.unmountall\!
- REGI HKCR\*\shell\WIM.unmountallc\!
- REGI HKCR\*\shell\WIM.info\!
- REGI HKCR\*\shell\WIM.all\!
- REGI HKCR\*\shell\WIM.rename\!
- REGI HKCR\*\shell\WIM.export\!
- REGI HKCR\*\shell\WIM.exportto\!
- REGI HKCR\*\shell\WIM.exportwim\!
- REGI HKCR\*\shell\WIM.dir\!
- REGI HKCR\*\shell\WIM.del\!
- REGI HKCR\*\shell\WIM.split\!
- REGI HKCR\*\shell\WIM.splitto\!
- REGI HKCR\*\shell\WIM.ref\!
- REGI HKCR\*\shell\WIM.refto\!
- REGI HKCR\*\shell\WIM.refwim\!
- REGI HKCR\*\shell\WIM.refwimto\!
- REGI HKCR\*\shell\WIM.remount\!
- REGI HKCR\*\shell\WIM.recleanup\!
- REGI HKCR\Directory\shell\WIM.capture\!
- REGI HKCR\Directory\shell\WIM.captureto\!
- REGI HKCR\Directory\shell\WIM.append\!
- REGI HKCR\Directory\shell\WIM.unmount\!
- REGI HKCR\Directory\shell\WIM.unmountrw\!
- REGI HKCR\Directory\shell\WIM.unmountall\!
- REGI HKCR\Directory\shell\WIM.unmountallc\!
- REGI HKCR\Directory\shell\WIM.commit\!
- REGI HKCR\Directory\shell\WIM.commitapp\!
- REGI HKCR\Directory\shell\WIM.remount\!
- REGI HKCR\Directory\shell\WIM.recleanup\!
- REGI HKCR\Drive\shell\WIM.captureto\!
- REGI HKCR\Drive\shell\WIM.append\!
- ENVI &&tmpwim=
- REGI $HKCR\Drive\shell\WIM.captureto\,&&tmpwim
- FIND $""="%&tmpwim%",!TEAM MESS 请以管理员身份运行!@错误#OK*3000|EXIT FILE
- FILE --force "%SendTo%\WIM 打包.lnk"
- FILE --force "%SendTo%\WIM 打包到....lnk"
- FILE --force "%SendTo%\增量备份到 WIM.lnk"
- FILE --force "%SendTo%\WIM 解包.lnk"
- FILE --force "%SendTo%\WIM 解包到....lnk"
- FILE --force "%SendTo%\WIM 挂载(只读).lnk"
- FILE --force "%SendTo%\WIM 挂载(只读)到....lnk"
- FILE --force "%SendTo%\WIM 挂载(可写).lnk"
- FILE --force "%SendTo%\WIM 挂载(可写)到....lnk"
- FILE --force "%SendTo%\WIM 卸载.lnk"
- FILE --force "%SendTo%\WIM 卸载并保存.lnk"
- FILE --force "%SendTo%\WIM 卸载(全部).lnk"
- FILE --force "%SendTo%\WIM 卸载并保存(全部).lnk"
- FILE --force "%SendTo%\WIM 映像分割.lnk"
- FILE --force "%SendTo%\WIM 映像分割到....lnk"
- FILE --force "%SendTo%\SWM 解包.lnk"
- FILE --force "%SendTo%\SWM 解包到....lnk"
- FILE --force "%SendTo%\SWM 合并.lnk"
- FILE --force "%SendTo%\SWM 合并到....lnk"
- FILE --force "%SendTo%\导出 WIM 子映像.lnk"
- FILE --force "%SendTo%\导出 WIM 子映像到....lnk"
- FILE --force "%SendTo%\导入到另一个 WIM.lnk"
- FILE --force "%SendTo%\WIM 子映像删除.lnk"
- FILE --force "%SendTo%\WIM 子映像重命名.lnk"
- FILE --force "%SendTo%\WIM 内部文件列表.lnk"
- FILE --force "%SendTo%\WIM 映像信息.lnk"
- FILE --force "%SendTo%\重映射挂载路径.lnk"
- FILE --force "%SendTo%\清理失败记录.lnk"
- FILE --force "%SendTo%\保存更改(不卸载).lnk"
- FILE --force "%SendTo%\保存更改(增量,不卸载).lnk"
- FIND $"/S"="%~1",!MESS ImageX_6.2 命令行工具 卸载成功! @提示#OK*5000
- _END
复制代码 |
|