打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
INF安装信息文件2

.INF文件格式和作用如下所示:

 

 

;示例01 寒夜孤星 usbvm31b.inf华尔特F18型摄像头驱动

;Installation File (.inf) for USB PC Camera
;zxy add coinstaller 2004/6/17
[Version]
Signature="$CHICAGO$"
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%SoftMfg%
DriverVer=11/26/2003, 4.2.1126.72
CatalogFile=usbvm31b.cat

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%HwMfg%=VM,NT

[DestinationDirs]
DefaultDestDir=11
VM.APP.CopyFiles = 10
VM.XPAPP.CopyFiles = 10
VM.STI.CopyFiles = 11
VM.CustomPrp.CopyFiles = 11
VM.TWAIN.CopyFiles = 10, twain_32\VM301b
VM.XPTWAIN.CopyFiles = 10, twain_32\VM301b
VM.USBDCam.Files.Ext = 10, System32\Drivers
VM.Config.CopyFiles = 10, inf
CoInstallers.CopyFiles= 11
[VM]
%USB\VID_0AC8&PID_0302.DeviceDesc%=VM.USBDCam302,USB\VID_0AC8&PID_301B
%USB\VID_0AC8&PID_0302.DeviceDesc%=VM.USBDCam302,USB\VID_0AC8&PID_305B
[VM.NT]
%USB\VID_0AC8&PID_0302.DeviceDesc%=VM.USBDCam302.XP,USB\VID_0AC8&PID_301B
%USB\VID_0AC8&PID_0302.DeviceDesc%=VM.USBDCam302.XP,USB\VID_0AC8&PID_305B

;****************************************

[VM.USBDCam302]
Include=ks.inf, kscaptur.inf, ksfilter.inf, Config.set
Needs=KS.Registration,KSCAPTUR.Registration, VM.HWConfig 
SubClass=StillImage
DeviceType=2
DeviceSubType=0x0302
Capabilities=1
Events=VM.STI.Events
DeviceData=VM.STI.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
AddReg=VM.USBDCam.AddReg, VM.CustomPrp.AddReg,  VM.STI.AddReg, VM.TWAIN.AddReg
CopyFiles=VM.USBDCam.Files.Ext, VM.CustomPrp.CopyFiles, VM.STI.CopyFiles, VM.APP.CopyFiles, VM.TWAIN.CopyFiles, VM.Config.CopyFiles

[VM.USBDCam302.NT]
Include=ks.inf, kscaptur.inf, ksfilter.inf, Config.set  
Needs=KS.Registration,KSCAPTUR.Registration.NT, VM.HWConfig  
SubClass=StillImage
DeviceType=2
DeviceSubType=0x0302
Capabilities=1 
Events=VM.STI.Events
DeviceData=VM.STI.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
AddReg=VM.USBDCam.AddReg, VM.CustomPrp.AddReg,  VM.STI.AddReg,  VM.TWAIN.AddReg
CopyFiles=VM.USBDCam.Files.Ext, VM.CustomPrp.CopyFiles, VM.STI.CopyFiles, VM.APP.CopyFiles, VM.TWAIN.CopyFiles, VM.Config.CopyFiles

[VM.USBDCam302.XP]
Include=ks.inf, kscaptur.inf, Config.set
Needs=KS.Registration,KSCAPTUR.Registration.NT, VM.HWConfig
AddReg=VM.USBDCam.AddReg, VM.CustomPrp.AddReg, VM.WIA.AddReg,  VM.TWAIN.AddReg
CopyFiles=VM.USBDCam.Files.Ext, VM.CustomPrp.CopyFiles, VM.STI.CopyFiles, VM.XPAPP.CopyFiles, VM.XPTWAIN.CopyFiles, VM.Config.CopyFiles
SubClass=StillImage
DeviceType=3
DeviceSubType=0x0302
Capabilities=0x00000031
;Capabilities=0x00000001
PortSelect=No
;Events=VM.STI.Events
DeviceData=VM.WIA.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
;LogConfig = VM.XP.NEEDDREBOOT
;Reboot

;**********************************************
[VM.USBDCam302.XP.CoInstallers]
CopyFiles=CoInstallers.CopyFiles
AddReg=CoInstallers.AddReg
;**********************************************
[CoInstallers.AddReg]
HKR,,CoInstallers32,0x00010000,"RunSetup.dll, CoRunExecuteFile"

[CoInstallers.CopyFiles]
RunSetup.dll,,,0x10
;****************************************************

[VM.USBDCam.AddReg]
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbVM31b.sys
;HKR,,PageOutWhenUnopened,3,00
;HKR,,PowerDownWhenUnopened,3,00

[VM.CustomPrp.AddReg]
HKCR,CLSID\%GUID_VMCustomPropertySets%,,,%VMCustomPropertySets%
HKCR,CLSID\%GUID_VMCustomPropertySets%\InprocServer32,,,VM31bPrp.Ax
HKCR,CLSID\%GUID_VMCustomPropertySets%\InprocServer32,ThreadingModel,,Both

HKLM,System\CurrentControlSet\Control\MediaInterfaces\%GUID_VMCustomPropertySets%,,,%VMCustomPropertySets%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%GUID_VMCustomPropertySets%,IID,1,5A,7C,75,9C,95,8D,3c,45,82,84,90,6A,68,DC,53,FA

HKCR,CLSID\%CLSID_VMCustomPropertyPage%,,,%VMCustomPropertyPage%
HKCR,CLSID\%CLSID_VMCustomPropertyPage%\InprocServer32,,,VM31bPrp.Ax
HKCR,CLSID\%CLSID_VMCustomPropertyPage%\InprocServer32,ThreadingModel,,Both

HKCR,CLSID\%CLSID_VMBackDoorPropertyPage%,,,%VMBackDoorPropertyPage%
HKCR,CLSID\%CLSID_VMBackDoorPropertyPage%\InprocServer32,,,VM31bPrp.Ax
HKCR,CLSID\%CLSID_VMBackDoorPropertyPage%\InprocServer32,ThreadingModel,,Both

HKLM,System\CurrentControlSet\Control\MediaSets\%GUID_VMCustomPropertySets%\PropertyPages\%CLSID_VMCustomPropertyPage%,,,%VMCustomPropertyPage%
;Add or remove backdoor from the registry:
;HKLM,System\CurrentControlSet\Control\MediaSets\%GUID_VMCustomPropertySets%\PropertyPages\%CLSID_VMBackDoorPropertyPage%,,,%VMBackDoorPropertyPage%

[VM.STI.AddReg]
HKR,,USDClass,,"{80989FCE-A58A-4902-B5C8-37410E34023F}"
HKCR,CLSID\{80989FCE-A58A-4902-B5C8-37410E34023F} ,,,%STI_DEVICE_NAME%
HKCR,CLSID\{80989FCE-A58A-4902-B5C8-37410E34023F}\InProcServer32,,,%11%\VM31bSTI.dll
HKCR,CLSID\{80989FCE-A58A-4902-B5C8-37410E34023F}\InProcServer32,ThreadingModel,,"Both"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\StillImage\Registered Applications",%VIDEOAPP%,,"%10%\amcap.exe /StiDevice:%1 /StiEvent:%2"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\StillImage\Registered Applications",%STILLAPP%,,"%10%\StillCap.exe /StiDevice:%1 /StiEvent:%2"

[VM.WIA.AddReg]
HKR,,USDClass,,"{0527d1d0-88c2-11d2-82c7-00c04f8ec183}"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Run","BigDogPath",,"%10%\VM_STI.EXE %USB\VID_0AC8&PID_0302.DeviceDesc%"
HKLM,"Software\ZSMC\USBCAMERA\BigDogPath",Snapshot1,,"%10%\amcap.exe"
HKLM,"Software\ZSMC\USBCAMERA\BigDogPath",Snapshot2,,"%10%\VMCap.exe"

[VM.STI.DeviceData]
TwainDS=%USB\VID_0AC8&PID_0302.TWAINDSName%
SpecialInfo="VM"

[VM.WIA.DeviceData]
Server=local
UI DLL=sti.dll
UI Class ID={5d8ef5a3-ac13-11d2-a093-00c04f72dc3c}
TwainDS=%USB\VID_0AC8&PID_0302.TWAINDSName%
SpecialInfo="VM"

[VM.STI.Events]
; These are events that the device issues to trigger application
; launching.
Snapshot=%SNAPSHOT%,{E76F3027-CA52-468e-B06E-2F32E2F6B59E},*
Snapshot2=%SNAPSHOT2%,{E76F3028-CA52-468e-B06E-2F32E2F6B59E},%STILLAPP%

[VM.TWAIN.AddReg]
HKLM,%TWAINSetting%,DeviceName,,%USB\VID_0AC8&PID_0302.DeviceDesc%
HKLM,%TWAINSetting%,DSName,,%USB\VID_0AC8&PID_0302.TWAINDSName%
HKLM,%TWAINSetting%,OEM,,%USB\VID_0AC8&PID_0302.TWAINOEMPath%

[VM.XP.NEEDDREBOOT]
;ConfigPriority = REBOOT

;****************************************************
[VM.USBDCam302.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,VM.USBDCam302.Interface

[VM.USBDCam302.NT.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,VM.USBDCam302.Interface

[VM.USBDCam302.XP.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,VM.USBDCam302.Interface

[VM.USBDCam302.Interface]
AddReg=VM.USBDCam302.Intf.AddReg
[VM.USBDCam302.Intf.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%USB\VID_0AC8&PID_0302.DeviceDesc%
HKR,PageAliases,"{71F96464-78F3-11d0-A18C-00A0C9118956}",1,51,7C,75,9C, 95,8D, 3C,45, 0x82, 0x84, 0x90, 0x6A, 0x68, 0xDC, 0x53, 0xFA
HKR,PinFactory\1\Interfaces\%GUID_VMCustomPropertySets%,,,
HKR,,ExtensionDLL,,%VM.ExtensionDLL%

[VM.USBDCam302.NT.Services]
AddService = ZSMC302,0x00000002,VM.USBDCam302.ServiceInstall

[VM.USBDCam302.XP.Services]
AddService = ZSMC302,0x00000002,VM.USBDCam302.ServiceInstall

[VM.USBDCam302.ServiceInstall]
DisplayName   = %USB\VID_0AC8&PID_0302.DeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\System32\Drivers\usbVM31b.sys

;******************************************************

[VM.USBDCam.Files.Ext]
usbVM31b.sys

[VM.CustomPrp.CopyFiles]
VM31bPrp.Ax

[VM.APP.CopyFiles]
amcap.exe
StillCap.exe

[VM.XPAPP.CopyFiles]
amcap.exe
VM_STI.EXE,,,COPYFLG_FORCE_FILE_IN_USE
VMCap.exe

[VM.STI.CopyFiles]
VM31bSTI.dll

[VM.TWAIN.CopyFiles]
VM31bTWN.DS

[VM.XPTWAIN.CopyFiles]
VM31bTXP.DS

[VM.Config.CopyFiles]
config.set

[SourceDisksNames]
1 = %SRCDISKNAME%,,,

[SourceDisksFiles]
usbVM31b.sys = 1
VM31bPrp.Ax = 1
VM31bSTI.dll = 1
VM31bTWN.DS = 1
VM31bTXP.DS = 1
amcap.exe = 1
StillCap.exe = 1
VMCap.exe = 1
VM_STI.EXE = 1
config.set = 1
RunSetup.dll=1
[Strings]
;----------------
; Non-Localizable
;----------------

ProxyVCap.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
SERVICE_KERNEL_DRIVER=1
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1
VM.ExtensionDLL = "VM31bPrp.Ax"

;----------------
; Localizable
;----------------
SRCDISKNAME = "USB PC CAMERA DISK"

SoftMfg="VM"
HwMfg="VM"

USB\VID_0AC8&PID_0302.DeviceDesc = "VIMICRO USB PC Camera"

VMCustomPropertySets="VM Custom Property Sets"
VMCustomPropertyPage="VM Custom Property Page"
VMBackDoorPropertyPage="VM Back Door Property Page"


TWAINSetting = "Software\ZSMC\USBCAMERA\ZC0301\TWAIN"
USB\VID_0AC8&PID_0302.TWAINDSName = "VIMICRO USB PC Camera"
USB\VID_0AC8&PID_0302.TWAINOEMPath = "VM301b"

GUID_VMCustomPropertySets="{9C757C5A-8D95-453c-8284-906A68DC53FA}"
CLSID_VMCustomPropertyPage="{9C757C51-8D95-453c-8284-906A68DC53FA}"
CLSID_VMBackDoorPropertyPage="{9C757C52-8D95-453c-8284-906A68DC53FA}"

SNAPSHOT  = "Startup Camera"
SNAPSHOT2 = "Capture Image"

VIDEOAPP = "MS Video Capture Application"
STILLAPP = "VM Still Capture Application"
STI_DEVICE_NAME = "VM STI USB"

 

 

㈠、[Version] 节:包含对此 .INF 文件的简短描述与此 .INF文件支持的设备类型的信息。用于确认 .INF文件的基本版本信息。任何.INF文件都必须包括这个节。


  在示例01中,[Version] 节中的语句 Signature="$CHICAGO$"表明这个 .INF 文件可以用于windows 95以后的所有平台上,目前来说就是win98,winme,winnt4,win2k,winxp,win2k3。这种 .INF 文件比较多见。如果[Version]节中的签名条目是 Signature="$Windows 95$",表明这个 .INF 文件可以用于windows 95以后的Win9x平台上,目前来说就是win98,winme。如果[Version]节中的签名条目是 Signature="$WINDOWS NT$" ,表明这个 .INF 文件可以用于WindowsNT系列的平台上,包括winnt4,win2k,winxp,win2k3WIN9x系列的操作系统的Setup API将会拒绝执行这种类型的 .INF 文件。

  在示例01中,LayoutFile=Layout.inf, Layout1.inf, Layout2.inf ,这一行的语法为:LayoutFile=filename.inffilename.inf文件包含安装组件必需的安装布局信息(源盘和源文件),该行是可选的,如果没有提供布局信息文件,则在 .INF 文件内必须包含[SourceDisksNames][SourceDisksFiles]节(必须注意这一点)。 

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
蓝牙适配器(Bluetooth Radios) USB Device(黄色感叹号问题)
Windows下INF驱动安装文件内容分析
Inf文件语法及书写规范
inf文件书写格式详细资料
嵌入式桌面操作系统使用与制作攻略
扩展使用.INF文件-制作免安装的绿色软件
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服