INF DDInstall Section

本文详细介绍了INF文件中的DDInstallSection和DefaultInstallSection的结构及各项指令的含义,包括CopyFiles、AddReg等常用指令,帮助读者理解设备驱动安装过程。

INFDDInstallSection

形如:

[install-section-name]|

[install-section-name.nt]|

[install-section-name.ntx86]|

[install-section-name.ntia64]|(WindowsXPandlaterversionsofWindows)

[install-section-name.ntamd64](WindowsXPandlaterversionsofWindows)

[DriverVer=mm/dd/yyyy[,x.y.v.z]]

[CopyFiles=@filename|file-list-section[,file-list-section]...]

[CopyINF=filename1.inf[,filename2.inf]...](WindowsXPandlaterversionsofWindows)

[AddReg=add-registry-section[,add-registry-section]...]

[AddProperty=add-registry-section[,add-registry-section]...](WindowsVistaandlaterversionsofWindows)

[Include=filename1.inf[,filename2.inf]...]

[Needs=inf-section-name[,inf-section-name]...]

[Delfiles=file-list-section[,file-list-section]...]

[Renfiles=file-list-section[,file-list-section]...]

[DelReg=del-registry-section[,del-registry-section]...]

[DelProperty=add-registry-section[,add-registry-section]...](WindowsVistaandlaterversionsofWindows)

[FeatureScore=featurescore]...(WindowsVistaandlaterversionsofWindows)

[BitReg=bit-registry-section[,bit-registry-section]...]

[LogConfig=log-config-section[,log-config-section]...]

[ProfileItems=profile-items-section[,profile-items-section]...](MicrosoftWindows2000andlaterversionsofWindows)

[UpdateInis=update-ini-section[,update-ini-section]...]

[UpdateIniFields=update-inifields-section[,update-inifields-section]...]

[Ini2Reg=ini-to-registry-section[,ini-to-registry-section]...]

[RegisterDlls=register-dll-section[,register-dll-section]...]

[UnregisterDlls=unregister-dll-section[,unregister-dll-section]...]

[ExcludeID=device-identification-string[,device-identification-string]...]...((WindowsXPandlaterversionsofWindows)

描述:每个DDInstallSection包含一个可选项DriverVer指令,引用若干个INF文件的其他命名区域(additionalnamedsections)。但最常用的时CopyFilesAddReg几项。


DriverVer=mm/dd/yyyy[,x.y.v.z]

mm/dd/yyyy指定日期,x.y.v.z指定版本号。具体请看:INFDriverVerDirective


CopyFiles=@filename|file-list-section[,file-list-section]...

这条指定可能有两个作用,一种是指定一个命名文件复制到目的目录下;另一种是在INF文件中指定一个命名区域(INF-writer-definedsections),该命名区域里列出了要复制到目的目录的所有文件列表。


CopyINF=filename1.inf[,filename2.inf]...

Vista和其以后的Windows系列才有该项,标识要被复制到目标目录的文件。


AddReg=add-registry-section[,add-registry-section]...

该项的功能就是想系统注册表中添加一项,详情请看:INFAddRegDirective


AddProperty=add-registry-section[,add-registry-section]...

该项应用若干个INFSections,这些Sections包含修改某个设备实例属性的指令。详情请看:INFAddPropertydirective


Include=filename1.inf[,filename2.inf]...

该项引用了一些inf文件,这些被引用的inf文件是安装设备或驱动过程中需要的系统inf文件


Needs=inf-section-name[,inf-section-name]...

该项引用了Include项的列出的INF中需要的Section名。


Delfiles=file-list-section[,file-list-section]...

该项列出了INF中的Section,这些Section中列出了要删除的目标文件。


Renfiles=file-list-section[,file-list-section]...

该项列出了INF中的Section,这些Sections中列出要重命名的目标文件。


DelReg=del-registry-section[,del-registry-section]...

该项与前面的AddReg功能相反,是删除系统注册表中对应项。详情请看:INFDelRegDirective


DelProperty=add-registry-section[,add-registry-section]...

该项与前面的AddProperty功能相反。是引用若干个INFSections,这些Sections实现删除设备实例的

属性功能。


其他项暂时略过,以后有机会再补上。



INFDefaultInstallSection

[DefaultInstall]|

[DefaultInstall.nt]|

[DefaultInstall.ntx86]|

[DefaultInstall.ntia64]|(WindowsXPandlaterversionsofWindows)

[DefaultInstall.ntamd64](WindowsXPandlaterversionsofWindows)

[CopyFiles=@filename|file-list-section[,file-list-section]...]

[CopyINF=filename1.inf[,filename2.inf]...]

[AddReg=add-registry-section[,add-registry-section]...]

[Include=filename1.inf[,filename2.inf]...]

[Needs=inf-section-name[,inf-section-name]...]

[Delfiles=file-list-section[,file-list-section]...]

[Renfiles=file-list-section[,file-list-section]...]

[DelReg=del-registry-section[,del-registry-section]...]

[BitReg=bit-registry-section[,bit-registry-section]...]

[ProfileItems=profile-items-section[,profile-items-section]...]

[UpdateInis=update-ini-section[,update-ini-section]...]

[UpdateIniFields=update-inifields-section[,update-inifields-section]...]

[Ini2Reg=ini-to-registry-section[,ini-to-registry-section]...]

[RegisterDlls=register-dll-section[,register-dll-section]...]

[UnregisterDlls=unregister-dll-section[,unregister-dll-section]...]...


描述:这个DefaultInstallSection只有在用户右键安装时才调用该域。

其所有的参数说明与INFDDInstallSection类似。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值