现在的位置: 首页 > 综合 > 正文

绿色插件制作(超级简单)

2014年03月24日 ⁄ 综合 ⁄ 共 1488字 ⁄ 字号 评论关闭
简单插件的例子:
最简单的插件就是绿色软件的插件,只要将所需文件复制到指定文件夹中即可.你可以按我的方法,先建一个files文件夹,将文件都复制进去。

这样编辑插件.
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="ResHacker"
Enable=1
[WinntDirectories]
a="Programs/ResHacker",2
[SourceDisksFiles]
files/*.*=a
怎样添加硬件驱动,例子:
; PE Builder v3 plug-in INF file
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="*** Driver"
Enable=1
[SourceDisksFiles]
***.inf=20,,1
***.dll=4,,1
***.cat=2,,1
***.sys=2,,1
也就是说sys文件一般放在system32/中,dll文件一般放在system32/drivers/中,inf文件放在inf/中,cat一般也放在system32/中,你可以在用驱动精灵提取时注意各文件在你系统中的位置,然后按照系统中的位置添加,不过一般就是以上几个目录.
2=system32
4=system32/drivers
20=inf
可以参见PE自带的硬件驱动来编写自己的.例如:
; PE Builder v3 plug-in INF file
; http://www.nu2.nu/pebuilder/
; Created by Bart Lagerweij
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="NIC: Intel PRO 100/1000 Adapter drivers"
Help="nic_intelpro.htm"
Enable=0
Version=2.0.0
[SourceDisksFiles]
; Directory id';s:
; 2=system32
; 4=system32/drivers
; 20=inf
; e100
files/pro100/ws03xp32/e100b325.inf=20,,1
files/pro100/ws03xp32/e100b325.sys=4,,1
files/pro100/ws03xp32/e100b325.din=2,,1
files/pro100/ws03xp32/e100bmsg.dll=2,,1
files/pro100/ws03xp32/intelnic.dll=2,,1
files/pro100/ws03xp32/e100b325.cat=2,,1
files/pro100/ws03xp32/PROUnstl.exe=2,,1
; e1000
files/pro1000/ws03xp32/e1000325.inf=20,,1
files/pro1000/ws03xp32/e1000325.sys=4,,1
files/pro1000/ws03xp32/e1000325.din=2,,1
files/pro1000/ws03xp32/e1000msg.dll=2,,1
files/pro1000/ws03xp32/intelnic.dll=2,,1
files/pro1000/ws03xp32/e1000325.cat=2,,1
files/pro1000/ws03xp32/PROUnstl.exe=2,,1
 
================  End ================

抱歉!评论已关闭.