[ PE 制作 ] 3、为原生 WinPE 3.0 集成桌面环境和常用软件
- 格式:pdf
- 大小:337.73 KB
- 文档页数:9
3.为原生WinPE 3.0集成桌面环境和常用软件本文接前天的文章,继续定制和完善我们自己的WINPE 3.0——增加桌面环境和软件包,本文演示使用BsExplorer作为桌面环境的制作方法,顺便集成三个常用软件Diskgenius、Ghost和WinRar,如需集成其它软件只需要参照本文的方法,举一反三,耐心定制和测试一下即可完成,天缘全文测试通过。
前两篇文章:入门宝典:打造干净清爽的原生WINPE 3.0和共同学习:WINPE 3.0工具包介绍及制作准备,已经讲过WINPE的制作基础过程,按照这两篇文章可以完成命令行WINPE制作。
本文的定制内容操作都是在Dism加载之后(上篇文章的第3步)和dism提交之前(上篇文章的第5步)进行,其它操作步骤与上篇文章相同,或使用下文的WINPE 3.0制作批处理。
如果对Dism加载、卸载和制作ISO不清楚,请参考前面两篇文章。
一、为WINPE 3.0增加桌面环境和常用软件1、通过copype和dism命令来制作的WINPE,默认是只有命令行模式的,所以要增加桌面环境还真的不是件简单的事情,这里有两个思路:A、把WINDOWS 7的默认explorer移到WINPE环境中,由于时间关系,天缘只是粗略测试了一下,大概要增加26M左右的系统文件,包括动态链接库配置文件等等,目前还有问题暂不介绍。
B、使用第三方的兼容explorer,比如老外开发的BsExplorer (实际是1.7版本也有说是2.0版本,反正在WINPE3.0上可用),点击本站下载,本文先以这个软件为例讲解,稍后关于Windows 7自带explorer及WINRE环境制作WINPE等问题,我会再发文章。
2、将BsExplorer下载后,解压到D:\mywinpe\mount目录下(前接上篇文章的第三步),解压完成后如下图:其中Tools目录结构如下图,天缘只是示例放加入Diskgenius、Ghost和WinRar软件包,资源管理器可以使用A43,只需要解压到这里即可,要保证双击可运行。
经典收藏:DiskGenius下载及使用注意事项经典收藏:备份和恢复分区必备工具Ghost v11.0推荐下载:WinRAR V3.9官方简、繁体中文(x86/x64)下载二、配置BsExplorer启动环境上面已经把桌面环境和软件包拷贝到Tools目录,采用本文的集成方式,这些软件都要使用绿色版本的(这些小软件基本都有绿色版本)。
配置BsExplorer环境也很简单,只需要配置BsExplorer目录下几个ini格式文件即可,该目录结构如下图:下面说一下上图中几个需要配置的文件:bs_desktop.ini、bs_qlaunch.ini、bs_shell.ini和bs_start.ini文件,如果你的目录结构跟天缘相同,bs_shell也不用管,只需要配其它三个即可(桌面、快速启动栏和开始菜单)。
1、bs_desktop.ini文件bs_desktop.ini是用来配置桌面图标显示,下面示例增加ghost图标到桌面左上角,其它图标只需要按照顺序向下增加即可。
<-ItemBegin->ItemX=20ItemY=20Caption=GhostExeName=%SystemDrive%Tools\Ghost\ghost32.exeIconName=%SystemDrive%Tools\Ghost\ghost32.exeIconNumber=0ExeDir=%SystemDrive%Tools\GhostCmdParam=ShowState=NORMAL<-ItemEnd-><-ItemBegin->ItemX=20ItemY=100Caption=WinRaRExeName=%SystemDrive%Tools\WinRaR\WinRaR.exeIconName=%SystemDrive%Tools\WinRaR\WinRaR.exeIconNumber=0ExeDir=%SystemDrive%Tools\WinRaRCmdParam=ShowState=NORMAL<-ItemEnd->这些格式都是原作者的一个约定(下同),大家只需知道如何使用即可,其中ItemX和ItemY是图标排列坐标,以80为单位,比如第一个是ItemX=20,ItemY=20,下一个就是ItemX=20,ItemY=100,再下一个就是ItemX=20,ItemY=180,这样就是垂直排列,大家测试一下即可看到效果。
另外我们只需要设置Caption(提示信息,相当于快捷方式名)、ExeName(对应的可执行文件名)、IconName(图标名)、ExeDir(该程序的默认目录),其中IconNumber是如果使用系统图标时的编号(从0开始计数,只有未设置IconName时,IconNumber才有效,如果要使用系统图标,请打开上图中的bs_menuimg.bmp文件,然后查看你要的图标在第多少位置,然后填写该值到IcunNumber即可)。
2、bs_qlaunch.ini文件bs_qlaunch.ini文件是用来配置快速启动栏图标,示例配置如下:<-ItemBegin->Caption=Show desktopExeName=@ShowDesktopIconNumber=20<-ItemEnd-><-ItemBegin->Caption=GHOSTExeName=%SystemDrive%Tools\Ghost\ghost32.exeIconName=%SystemDrive%Tools\Ghost\ghost32.exeIconNumber=0ExeDir=%SystemDrive%Tools\GhostShowState=NORMAL<-ItemEnd->3、bs_shell.ini文件bs_shell.ini文件好像也只explorer的执行脚本。
从里头的字面意思主要涉及登录设置和桌面设置等,比如颜色,显示提示文件等,一般不用改写。
(如果你的目录配置跟天缘不同,这里也需要替换Tools字符串成自己的目录名)4、bs_start.ini文件bs_start.ini文件是用来配置开始菜单显示,顺序是从上到下,显示也是从上到下,天缘把最常用的几个设置都给列出来。
<-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=rootCaption=程序MenuId=Programs<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=ProgramsCaption=DiskgeniusExeName=%SystemDrive%Tools\DiskGenius\DiskGenius.exeIconName=%SystemDrive%Tools\DiskGenius\DiskGenius.exeExeDir=%SystemDrive%Tools\DiskGeniusShowState=NORMAL<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=ProgramsCaption=注册表编辑器ExeName=%windir%regedit.exeIconNumber=116ExeDir=%windir%ShowState=NORMAL<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=ProgramsCaption=记事本ExeName=%windir%system32\notepad.exe IconName=%windir%system32\notepad.exe ExeDir=%windir%system32ShowState=NORMAL<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=ProgramsCaption=计算器ExeName=%windir%system32\calc.exeIconName=%windir%system32\calc.exeExeDir=%windir%system32ShowState=NORMAL<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=ProgramsCaption=画图ExeName=%windir%system32\mspaint.exe IconName=%windir%system32\mspaint.exe ExeDir=%windir%system32ShowState=NORMAL<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=rootCaption=设置MenuId=Setting<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=SettingCaption=屏幕显示与分辨率MenuId=Resolution<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=ResolutionCaption=Color 8bitMenuId=Res8<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=rootCaption=-<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=rootCaption=任务管理器ExeName=%SystemDrive%windows\system32\taskmgr.exe IconName=%SystemDrive%windows\system32\taskmgr.exe ExeDir=%SystemDrive%windows\system32ShowState=NORMAL<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=rootCaption=命令行MenuId=CMD lineExeName=@CMDlineIconNumber=136<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=rootCaption=运行...MenuId=Run...ExeName=@RunIconNumber=137<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=rootCaption=-<-ItemEnd-><-ItemBegin->ShowInAutorun=YESEnableInAutorun=YESParentItem=rootCaption=注销MenuId=ExitExeName=@ExitIconNumber=139<-ItemEnd-><-ItemBegin->ShowInAutorun=NOEnableInAutorun=NOParentItem=rootCaption=关闭计算机...MenuId=ShitdownExeName=@ShutdownIconNumber=138<-ItemEnd->特别说明:上述配置文件里有Tools目录标示,所以如果你的工具目录(mount下刚刚拷贝过去的那个)跟天缘设置的不同,那么需要把这五个文件里头的Tools替换成你自己的目录,目的就是让explorer等找到你的工具。