形如:
[install-section-name] |
[install-section-name.nt] |
[install-section-name.ntx86] |
[install-section-name.ntia64] | (Windows XP and later versions of Windows)
[install-section-name.ntamd64] (Windows XP and later versions of Windows)
[DriverVer=mm/dd/yyyy[,x.y.v.z] ]
[CopyFiles=@filename | file-list-section[,file-list-section] ...]
[CopyINF=filename1.inf[,filename2.inf]...] (Windows XP and later versions of Windows)
[AddReg=add-registry-section[,add-registry-section]...]
[AddProperty=add-registry-section[,add-registry-section]...] (Windows Vista and later versions of Windows)
[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]...] (Windows Vista and later versions of Windows)
[FeatureScore=featurescore]... (Windows Vista and later versions of Windows)
[BitReg=bit-registry-section[,bit-registry-section]...]
[LogConfig=log-config-section[,log-config-section]...]
[ProfileItems=profile-items-section[,profile-items-section]...] (Microsoft Windows 2000 and later versions of Windows)
[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]...]... ((Windows XP and later versions of Windows)
描述:每个DDInstall Section包含一个可选项DriverVer指令,引用若干个INF文件的其他命名区域(additional named sections )。但最常用的时CopyFiles和AddReg几项。
DriverVer=mm/dd/yyyy[,x.y.v.z]
mm/dd/yyyy 指定日期, x.y.v.z 指定版本号。具体请看:INF DriverVer Directive
CopyFiles=@filename | file-list-section[,file-list-section] ...
这条指定可能有两个作用,一种是指定一个命名文件复制到目的目录下;另一种是在INF文件中指定一个命名区域( INF-writer-defined sections ),该命名区域里列出了要复制到目的目录的所有文件列表。
CopyINF=filename1.inf[,filename2.inf]...
Vista和其以后的Windows系列才有该项,标识要被复制到目标目录的文件。
AddReg=add-registry-section[,add-registry-section]...
该项的功能就是想系统注册表中添加一项,详情请看:INF AddReg Directive
AddProperty=add-registry-section[,add-registry-section]...
该项应用若干个INF Sections,这些Sections包含修改某个设备实例属性的指令。详情请看:INF AddProperty directive 。
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功能相反,是删除系统注册表中对应项。详情请看: INF DelReg Directive
DelProperty=add-registry-section[,add-registry-section]...
该项与前面的AddProperty功能相反。是引用若干个INF Sections,这些Sections实现删除设备实例的
属性功能。
其他项暂时略过,以后有机会再补上。
[DefaultInstall] |
[DefaultInstall.nt] |
[DefaultInstall.ntx86] |
[DefaultInstall.ntia64] | (Windows XP and later versions of Windows)
[DefaultInstall.ntamd64] (Windows XP and later versions of Windows)
[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]...] ...
描述:这个DefaultInstall Section只有在用户右键安装时才调用该域。
其所有的参数说明与INF DDInstall Section类似。