前面已经介绍了如何添加程序,以及桌面图标的配置。现在介绍一下开始菜单的配置,大同小异,其实完全没有必要进行配置,但是为了教程的完整性,这里还是简要的介绍一下。开始菜单是对bs_start.ini这个文件进行配置。
1.现在介绍一下主要的含义:
ParentItem:上级文件夹名称,没有上级文件夹则为root
Caption:显示的名称
MenuId:菜单ID,可任意命名
ExeName:程序的具体路径和文件名称;
IconName:程序显示图标文件的所在位置和文件名称;
IconNumber:选择图标文件中的哪个图标;
ExeDir:程序所在的默认路径
ShowState=NORMAL:双击图标时程序显示的窗口的状态(最大化、最小化、默认)
例如(没有上级菜单):
<-ItemBegin->
ShowInAutorun=YES
EnableInAutorun=YES
ParentItem=root
Caption=运行
MenuId=Run…
ExeName=@Run
IconNumber=137
<-ItemEnd->
<-ItemBegin->
ShowInAutorun=YES
EnableInAutorun=YES
ParentItem=root
Caption=注销
MenuId=Exit
ExeName=@Exit
IconNumber=139
<-ItemEnd->
<-ItemBegin->
ShowInAutorun=NO
EnableInAutorun=NO
ParentItem=root
Caption=关机
MenuId=Shitdown
ExeName=@Shutdown
IconNumber=138
<-ItemEnd->
例如(有上级菜单System):
<-ItemBegin->
ShowInAutorun=YES
EnableInAutorun=YES
ParentItem=System
Caption=记事本
ExeName=%windir%\system32\notepad.exe
IconName=%windir%\system32\notepad.exe
ExeDir=%windir%\system32\
ShowState=NORMAL
<-ItemEnd->
2.创建一个winpeshl.ini文件,里面的内容如下:
[LaunchApp]
AppPath=%systemdrive%\Programs\BsExplorer\Explorer.exe
3.准备一张bmp格式的图片(1024X768),作为桌面背景。
至此桌面环境的配置已经完毕,接下来我会简单的讲一下需要明白的“命令”,然后就开始进入“实战”。
评论前必须登录!
立即登录 注册