areyong
驱动牛犊
驱动牛犊
  • 注册日期2002-06-09
  • 最后登录2018-05-29
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望10点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
  • 社区居民
阅读:4098回复:0

求救:把已知的INF文件转换成TXTSETUP.OEM

楼主#
更多 发布于:2005-05-08 12:13
如何已知的INF文件转换成TXTSETUP.OEM
我一直没有找到TXTSETUP.OEM文件格式的详细资料,也没有买到或者下载到《WINDOWS 2000驱动程序开发大全》一书(它里面有详细说明),特请各位大侠帮助:
我的邮箱: nullren@zj.com

已知的INF文件内容如下:
(是个虚拟SCSI设备,这个INF是在WINDOWS下可以正常安装.我需要把它改成可以在安装操作系统时按F6来安装.)
; bnsm_client.inf
; BXP Client SCSI Miniport Virtual Adapter device
; (c) Copyright 2002 Venturcom, Inc.

[Version]
Signature=\"$Windows NT$\"
Provider=%VCI%
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}

[DestinationDirs]
bnsm_Files=12
bnsm_CoInstaller_Files=11

; Driver information

[Manufacturer]
%VCI%=bnsm_Device

[bnsm_Device]
%VCI_DeviceDesc%=bnsm, BNSM, DETECTED\\BNSM

; General installation section

[bnsm]
CopyFiles=bnsm_Files,bnsm_CoInstaller_Files
AddReg=bnsm_CoInstaller_AddReg
LogConfig=bnsm_LogConfig
Include=bnsmdf_client.inf
Needs=bnsmdf

[bnsm_Files]
bnsm.sys

[bnsm_LogConfig]
ConfigPriority=NORMAL
IoConfig=1@100-FFFF

; Device coinstaller installation section

[bnsm.CoInstallers]
CopyFiles = bnsm_CoInstaller_Files
AddReg = bnsm_CoInstaller_AddReg

[bnsm_CoInstaller_AddReg]
HKR, , CoInstallers32, %REG_MULTI_SZ%, \"BNCoInstaller.dll, BNSM_CoInstall\"

; Disk class coinstaller installation section

[bnsm_CoInstaller_Files]
BNCoInstaller.dll

[bnsm_CoInstaller_AddReg]
HKLM, System\\CurrentControlSet\\Control\\CoDeviceInstallers, {4D36E967-E325-11CE-BFC1-08002BE10318}, 0x00010008, \"BNCoInstaller.dll, BNSMDF_CoInstall\"

; Service Installation

[bnsm.Services]
AddService = bnsm, 0x00000002, bnsm_ServiceInstall

[bnsm_ServiceInstall]
DisplayName = %bnsm_ServiceDesc%
ServiceType = 1
StartType = 1
ErrorControl = 1
LoadOrderGroup = BXP
ServiceBinary = %12%\\bnsm.sys
AddReg = bnsm_ServiceInstall_AddReg

[bnsm_ServiceInstall_AddReg]
HKR, \"\", \"Tag\", %REG_DWORD%, 0x00000003
HKR, \"Parameters\\PnpInterface\", \"1\", %REG_DWORD%, 0x00000001
HKR, \"Parameters\\Device\", \"DriverParameter\", %REG_SZ%, %bnsm_DriverParameterValue%


; Source file information

[SourceDisksNames]
1 = %DiskId1%,,,\"\"

[SourceDisksFiles]
bnsm.sys = 1,,

; Strings section

[Strings]

REG_SZ = 0x00000000
REG_MULTI_SZ = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001

VCI = \"Venturcom, Inc.\"
VCI_DeviceDesc = \"BXP SCSI Miniport Virtual Adapter\"

DiskId1 = \"Venturcom, Inc. BXP Installation Media\"

bnsm_ServiceDesc = \"BXP SCSI Miniport Driver\"
bnsm_DriverParameterValue = \"01\"

我需要把它转换生成TXTSETUP.OEM

另:以上的INF中有一句Include=bnsmdf_client.inf,我也把这个INF的内容贴出来:


; bnsmdf_client.INF
; BXP Client SCSI Miniport Disk Filter device.
; (c) Copyright 2002 Venturcom, Inc.

[Version]
Signature =\"$WINDOWS NT$\"
Provider = %VCI%
Class = DiskDrive
ClassGuid = {4D36E967-E325-11CE-BFC1-08002BE10318}

[DestinationDirs]
bnsmdf_Files = 12

; Driver information

[Manufacturer]
%VCI% = bnsmdf_Device

[bnsmdf_Device]
%VCI_DeviceDesc% = bnsmdf, %bnsmdf_HWID%,

; General installation section

[bnsmdf]
CopyFiles = bnsmdf_Files

[bnsmdf_Files]
bnsmdf.sys
bnistack.sys

[bnsmdf.HW]
AddReg=bnsmdf_HW_Addreg

[bnsmdf_HW_Addreg]
HKR, \"\", \"LowerFilters\", %REG_MULTI_SZ%, \"bnsmdf\"
HKR, \"\", \"FriendlyName\", %REG_SZ%, %VCI_DeviceDesc%

; Service Installation

[bnsmdf.Services]
AddService = disk,0x000001FA,disk_ServiceInstall
AddService = bnsmdf,,bnsmdf_ServiceInstall
AddService = bnistack,,bnistack_ServiceInstall

[disk_ServiceInstall]
DisplayName = %disk_ServiceDesc%
ServiceType = 1
StartType = 0
ErrorControl = 1
ServiceBinary = %12%\\disk.sys
LoadOrderGroup = SCSI Class

[bnsmdf_ServiceInstall]
DisplayName = %bnsmdf_ServiceDesc%
ServiceType = 1
StartType = 0
ErrorControl = 1
ServiceBinary = %12%\\bnsmdf.sys
LoadOrderGroup = BXP
AddReg = bnsmdf_ServiceInstall_AddReg

[bnsmdf_ServiceInstall_AddReg]
HKR, \"\", \"Tag\", %REG_DWORD%, 0x00000001

[bnistack_ServiceInstall]
DisplayName = %bnistack_ServiceDesc%
ServiceType = 1
StartType = 0
ErrorControl = 1
ServiceBinary = %12%\\bnistack.sys
LoadOrderGroup = BXP
AddReg = bnistack_ServiceInstall_AddReg

[bnistack_ServiceInstall_AddReg]
HKR, \"\", \"Tag\", %REG_DWORD%, 0x00000002
;
; Strings section
;
[Strings]

REG_SZ = 0x00000000
REG_MULTI_SZ = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001

VCI = \"Venturcom, Inc.\"
VCI_DeviceDesc = \"BXP Virtual Disk\"

disk_ServiceDesc = \"Disk Driver\"
bnsmdf_ServiceDesc = \"BXP SCSI Miniport Disk Filter Driver\"
bnistack_ServiceDesc = \"BXP Network Stack Interface Driver\"

bnsmdf_HWID = SCSI\\DiskBNVendorBNVirtualSCSIHBA0001
游客

返回顶部