I really appreciate your assistance. I made some change in the inf file and the error was there is gone.
But now I got a new error: "Windows found driver software for your device but encountered an error while attempting to install it. "
And it says: “Driver is not intended for this platform”
Below is the inf file after change:
;/*++
;
;Copyright (c) Microsoft Corporation. All rights reserved.
;
; THIS CODE AND INFORMATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY
; KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
; PURPOSE.
;
;Module Name:
;
; OSRUSBFX2.INF
;
;Abstract:
; Installation inf for OSR USB-FX2 Learning Kit
;
;–*/
[Version]
Signature=“$WINDOWS NT$”
Class=USB
ClassGuid={36FC9E60-C465-11CF-8056-444553540000}
Provider=%MSFT%
DriverVer=06/26/2015,15.18.28.401
CatalogFile=KmdfSamples.cat
[SourceDisksNames]
1=%OSRUSBFX2_Install%,
[SourceDisksFiles]
OSRUSBFX2.sys = 1
; ================= Class section =====================
[ClassInstall32]
Addreg=SampleClassReg
[SampleClassReg]
HKR,0,%ClassName%
HKR,Icon,-5
[DestinationDirs]
OSRUSBFX2.Files.Ext = 10,System32\Drivers
[ControlFlags]
ExcludeFromSelect = *
; ================= Device section =====================
[Manufacturer]
%MfgName%=Microsoft,NT,NTx86,NTamd64
; For Win2K
[Microsoft.NT]
%VID_04B4&PID_1003.DeviceDesc%=osrusbfx2, USB\VID_04b4&PID_1003
;%Switch.DeviceDesc%=Switch.Dev, {AE18AA60-7F6A-11d4-97DD-00010229B959}\OsrUsbFxRawPdo
[Microsoft.NTx86]
%VID_04B4&PID_1003.DeviceDesc%=osrusbfx2, USB\VID_04b4&PID_1003
;%Switch.DeviceDesc%=Switch.Dev, {AE18AA60-7F6A-11d4-97DD-00010229B959}\OsrUsbFxRawPdo
[Microsoft.NTamd64]
%VID_04B4&PID_1003.DeviceDesc%=osrusbfx2, USB\VID_04b4&PID_1003
;%Switch.DeviceDesc%=Switch.Dev, {AE18AA60-7F6A-11d4-97DD-00010229B959}\OsrUsbFxRawPdo
[osrusbfx2.NT]
CopyFiles=osrusbfx2.Files.Ext
AddReg=osrusbfx2.AddReg
[osrusbfx2.NT.HW]
AddReg=osrusbfx2.AddReg.Guid
[Switch.Dev.NT.Services]
AddService = , %SPSVCINST_ASSOCSERVICE%,
[osrusbfx2.NT.Services]
AddService = osrusbfx2, %SPSVCINST_ASSOCSERVICE%, osrusbfx2.AddService
[osrusbfx2.NTx86]
CopyFiles=osrusbfx2.Files.Ext
AddReg=osrusbfx2.AddReg
[osrusbfx2.NTx86.HW]
AddReg=osrusbfx2.AddReg.Guid
[osrusbfx2.NTx86.Services]
Addservice = osrusbfx2,2,osrusbfx2.AddService
[osrusbfx2.NTamd64]
CopyFiles=osrusbfx2.Files.Ext
AddReg=osrusbfx2.AddReg
[osrusbfx2.NTamd64.HW]
AddReg=osrusbfx2.AddReg.Guid
[osrusbfx2.NTamd64.Services]
Addservice = osrusbfx2,2,osrusbfx2.AddService
[osrusbfx2.AddReg]
; Deprecating - do not use in new apps to identify a osrusbfx2 driver
HKR,DevLoader,*ntkern
HKR,NTMPDriver,osrusbfx2.sys
; You may optionally include a check for DriverBase in your application to check for a osrusbfx2 driver
HKR,DriverBase,osrusbfx2.sys
HKR,“Parameters”,“MaximumTransferSize”,0x10001,4096
HKR,“Parameters”,“DebugLevel”,0x10001,2
HKR,FriendlyName,%osrusbfx2_Description%
[osrusbfx2.AddService]
DisplayName = %osrusbfx2.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\osrusbfx2.sys
AddReg = osrusbfx2.AddReg
LoadOrderGroup = Base
[osrusbfx2.Files.Ext]
osrusbfx2.sys
[osrusbfx2.AddReg.Guid]
HKR,DriverGUID,%osrusbfx2.GUID%
;HKR,DriverPowerPolicySetup,%ENABLE_DRIVER_POWER_POLICY%
[SourceDisksNames]
1=%Disk_Description%,
[SourceDisksFiles]
osrusbfx2.sys = 1
[DestinationDirs]
DefaultDestDir = 12
;-------------- WDF Coinstaller installation
[DestinationDirs]
CoInstaller_CopyFiles = 11
[OSRUSBFX2.NTamd64.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles
[CYUSB3.NTx86.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles
[CoInstaller_CopyFiles]
WdfCoInstaller01011.dll
[SourceDisksFiles]
WdfCoInstaller01011.dll=1 ; make sure the number matches with SourceDisksNames
[CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000, “WdfCoInstaller01011.dll,WdfCoInstaller”
[OSRUSBFX2.NTamd64.Wdf]
KmdfService = OSRUSBFX2, OSRUSBFX2_wdfsect
[OSRUSBFX2.NTx86.Wdf]
KmdfService = OSRUSBFX2, OSRUSBFX2_wdfsect
[osrusbfx2_wdfsect]
KmdfLibraryVersion = 1.11
;---------------------------------------------------------------;
[Strings]
MSFT=“Microsoft”
MfgName=“OSR”
Disk_Description=“OSRUSBFX2 Installation Disk”
OSRUSBFX2_Install = “Commtech USB Driver Installation Disk”
USB\VID_04b4&PID_1003.DeviceDesc=“WDF Sample Driver for OSR USB-FX2 Learning Kit”
osrusbfx2.SvcDesc=“WDF Sample Driver for OSR USB-FX2 Learning Kit”
ClassName = “Sample Device”
Switch.DeviceDesc = “OsrUsbFX2 RawPdo For Switch”
SPSVCINST_ASSOCSERVICE= 0x00000002
VID_04B4&PID_1003.DeviceDesc=“Commtech USB to Serial Device”
osrusbfx2.GUID=“{AE18AA60-7F6A-11d4-97DD-00010229B959}”