Dear All,
Need your help in following scenario.
1.)We use hardware, that interact with .NET application through interface.
2.)First time when hardware get connected to computer using USB cable, it ask for driver.
3.) Hardware.inf need to browse for the driver.
4.) At this point hardware get detected in "Computer Management >Device Manager>Ports (Com & LPT)".
5.) Once detected application can interact with the hardware to store and retrieve data.
6.)done
In this scenario, driver need to be manually install on machine using one and only "Hardware.inf" file.
Question: How to create driver installation package using one and only "Hardware.inf" file?
So that installing the package will make entry of driver in "Computer Management >Device Manager>Ports (Com & LPT)" and when pluged in driver automatically get detected.
Below is Hardware.inf file.
------------------------------------------------------------
[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E555-E325-11CE-BFC1-08222BE12218}
Provider=%ProviderName%
DriverVer=10/15/2012,1.0.0.0
[MANUFACTURER]
%ProviderName%=DeviceList, NTx86, NTamd64
[DeviceList.NTx86]
%AtmelEVK1105CDC%=DriverInstall,USB\VID_1111&PID_2222
[DeviceList.NTamd64]
%AtmelEVK1105CDC%=DriverInstall,USB\VID_1111&PID_2222
[DriverInstall]
include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection
AddReg=LowerFilterAddReg,SerialPropPageAddReg
[DriverInstall.Services]
include = mdmcpq.inf
AddService = usbser, 0x00000002, LowerFilter_Service_Inst
; This adds the serial port property tab to the device properties dialog
[SerialPropPageAddReg]
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
[Strings]
ProviderName = "My Company"
AtmelEVK1105CDC = "My Company USB Serial Port"
-------------------------------------------------------------