|
今天晚上媳妇加班看稿子,开着灯我也睡不着。
于是就想去查下txtsetup.oem的资料
百度了半天google了半天。竟然没有任何中文资料,无奈google到微软老家的txtsetup.oem format信息。
呵呵,学习了下,与大家一起分享。
- txtsetup.oem 文件格式
- [Disks]
- diskN="描述",tangfile,目录
- ;N指定识别磁盘的关键
- ;windows使用说明以提示用户插入磁盘
- ;tangfile 通过文件名判断是否插入正确的磁盘。
- ;文件所在磁盘的路径,必须是完整路径
- 例子:
- disk1 = "OEM SCSI driver disk 1",\disk1.tag,\
- disk2 = "OEM SCSI driver disk 2",\disk2.tag,\
- --------------------------------------------------------------
- [defaults]
- component = ID
- ;component 指定这个文件所支持的硬件组件。其值必须是computer or scsi 之一
- ;ID 对应一个字符串,用于标示默认选项,可以为空。
- 例子:
- SCSI = OEMSCSI
- [SCSI] ;(这就是HWComponent节)
- OEMSCSI = "OEM Fast SCSI Controller"
- OEMSCSI = "OEM Fast SCSI Controller 2"
- ------------------------------------------------------------------
- [HwComponent]
- ID = 说明
- ;[HwComponent]本节的名称必须是computer 或 scsi 之一
- ;ID 指定一个字符串,在本节中必须是唯一的,标示的选项。
- 例如:
- [scsi]
- OEMSCSI = "OEM Fast SCSI Controller"
- ------------------------------------------------------------------
- [Files.HwComponent.ID]
- filetype = diskN,filename[,DriverKey]
- ;[Files.HwComponent.ID] 本节名称的格式,由以上定义组成。
- 例如:[Files.SCSI.OEMSCSI] 其中HwComponent 由[defaults]定义为SCSI,ID由[SCSI]详细说明。
- filetype:标示文件类型,其值是如下之一:
- driver Windows copies the file to %systemroot%\system32\drivers.
- dll Windows copies the file to %systemroot%\system32.
- hal Windows copies the file to % systemroot%\system32\hal.dll
- inf The file is copied to % systemroot%\system32
- catalog 目录,指定设备的目录文件 不要求任何组件,例如catalog = d1, mydriver.cat .
- detect 有效的计算机组件(仅适用于x86)。如果指定,取代了标准的x86硬件识别 。Windows拷贝文件到 c :\ ntdetect.com。通草不指定。
- diskN [disks]节指定的值。
- filename文件名,不包括路径 ,文件名需要符合8.3格式,如果追加路径请在[disks]节增加。
- DriverKey创建注册表服务树。此值的组件名称必须是SCSI,如果存在该字段,则[Config.DriverKey]需要设置
- 例子:intel的
- [Files.scsi.iaAHCI_7RDH]
- driver = disk1, iaStor.sys, iaStor
- inf = disk1, iaAHCI.inf
- catalog = disk1, iaAHCI.cat
- [Files.scsi.iaAHCI_7MMDH]
- driver = disk1, iaStor.sys, iaStor
- inf = disk1, iaAHCI.inf
- catalog = disk1, iaAHCI.cat
- ---------------------------------------------------------------------------------
- [Config.DriverKey]
- 本节名称由[Files.HwComponent.ID]节DriverKey指定。
- 格式 value = subkey_name,value_name,value_type,value
- 例子:NVIDIA
- [Files.scsi.BUSDRV]
- driver = d1,nvgts.sys,BUSDRV
- [Config.BUSDRV]
- value = parameters\PnpInterface,5,REG_DWORD,1
- ----------------------------------------------------------------------------------
- [HardwareIds.scsi.ID]
- 本节名称:ID由 HwComponent中详细说明。
- 例如:
- [scsi]
- OEMSCSI = "OEM Fast SCSI Controller"
- [HardwareIds.scsi.oemscsi]
- ID =“PCI \ VEN_9004&DEV_8111”,“oemscsi”
- ----------------------------------------------------------------
- 后记:
- txtsetup.oem 读懂这个代码,先读懂ID,ID在[SCSI]节中指定,计算机识别[HardwareIds.scsi.ID]ID对应的硬件ID获取[Files.HwComponent.ID]的文件存在说明地方,以及复制到什么地方。
复制代码 |
|