I've a driver named silabser.sys. I've two different versions of it. My requirement is to install w1.x1.y1.z1 on WinXP and w1.x2.y2.z2 on Win7. My Inf file looks like this:
[Version]
Signature="$WINDOWS NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%Provider%
DriverVer=12/10/2012,6.6.1.0
CatalogFile=slabvcp_ncr.cat}
[Manufacturer]
%MfgName%=SiLabs, NTamd64
.....
[SourceDisksNames.x86]
1=%Disk_Description%,"silabser.sys",,\x86
[SourceDisksNames.amd64]
1=%Disk_Description%,"silabser.sys",,\x64
Is it possible to achieve this through inf file?
As you can see the DriverVer is hardcoded in the [Version] section.
How do I tell the OS to load different version of the driver for Win7?