Drive Path in INF

Hi All,
This time, I have another questain…

For my USB funciton driver installation, I am using
the SetupCopyOEMInf() function. This function is
success and a .PNF file is generated in INF dirctory.
I also copied the .SYS file to DRIVERS directory.
Now when I plug the USB adapter, the found new
hardware comes up and ask for the path of the .SYS
file.

In INF file, how I can specify that the driver is
located in DRIVERS directory.?
I installed my device on first port by giving the
driver path. Now when I plug the device in second
port, the Found New hardware is again asking for the
driver path. Is this due to any problem in the INF
file??

I am listing my INF file… Please help…
Thanks in adavance
Suja

[Version]
Signature=“$CHICAGO$” ; Represents all Windows OSs
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider=%NAME%
DriverVer=13/12/2000,1.0.0.0

; Driver information
; ------------------
[Manufacturer]
%Mfg%=DeviceList

[DeviceList]
“My USB Adapter”=Install, USB\VID_0CC24&PID_0100

[Install.NT] ; Installation script for Windows 2000
CopyFiles=FilesToCopy
AddReg=UpDateRegistry

[FilesToCopy]
MYDRIVER.sys ,0x40

[ClassInstall32]
AddReg=UpDateRegistry

[UpDateRegistry]
HKR,MYDRIVER
HKR,Icon,-5
HKR,DevLoader,*ntkern
HKR,NTMPDriver, MYDRIVER.sys

[ControlFlags]
ExcludeFromSelect = * ; Remove all devices listed in
this INF file
; from the display shown to the end user (a PNP
device shouldn’t
; be manually loaded).

[PreCopySection]
HKR,NoSetupUI,1

; Defining MYDRIVER Service
; ---------------------------
[Install.NT.Services]
Addservice=MYDRIVER, 0x00000002, Service_Info

[Service_Info]
ServiceType = 1 ;
SERVICE_KERNEL_DRIVER
StartType = 3 ;
SERVICE_DEMAND_START
ErrorControl = 1 ;
SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\MYDRIVER.sys

; Source file information
; -----------------------
[SourceDisksFiles]
MYDRIVER.sys=1 ;

[SourceDisksNames]
1="Insert the installation media ",

[DestinationDirs]
DefaultDestDir=10, System32\Drivers

[Strings]
TSH=“MY TEST DRIVER.”
Mfg=“XYZ Lmtd”


Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

keep your driver and inf files in the same directory.

Thanks,
Raphel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of SUJA JAMES
Sent: Tuesday, June 01, 2004 7:05 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Drive Path in INF

Hi All,
This time, I have another questain…

For my USB funciton driver installation, I am using
the SetupCopyOEMInf() function. This function is
success and a .PNF file is generated in INF dirctory.
I also copied the .SYS file to DRIVERS directory.
Now when I plug the USB adapter, the found new
hardware comes up and ask for the path of the .SYS
file.

In INF file, how I can specify that the driver is
located in DRIVERS directory.?
I installed my device on first port by giving the
driver path. Now when I plug the device in second
port, the Found New hardware is again asking for the
driver path. Is this due to any problem in the INF
file??

I am listing my INF file… Please help…
Thanks in adavance
Suja

[Version]
Signature=“$CHICAGO$” ; Represents all Windows OSs
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider=%NAME%
DriverVer=13/12/2000,1.0.0.0

; Driver information
; ------------------
[Manufacturer]
%Mfg%=DeviceList

[DeviceList]
“My USB Adapter”=Install, USB\VID_0CC24&PID_0100

[Install.NT] ; Installation script for Windows 2000
CopyFiles=FilesToCopy
AddReg=UpDateRegistry

[FilesToCopy]
MYDRIVER.sys ,0x40

[ClassInstall32]
AddReg=UpDateRegistry

[UpDateRegistry]
HKR,MYDRIVER
HKR,Icon,-5
HKR,DevLoader,*ntkern
HKR,NTMPDriver, MYDRIVER.sys

[ControlFlags]
ExcludeFromSelect = * ; Remove all devices listed in
this INF file
; from the display shown to the end user (a PNP
device shouldn’t
; be manually loaded).

[PreCopySection]
HKR,NoSetupUI,1

; Defining MYDRIVER Service
; ---------------------------
[Install.NT.Services]
Addservice=MYDRIVER, 0x00000002, Service_Info

[Service_Info]
ServiceType = 1 ;
SERVICE_KERNEL_DRIVER
StartType = 3 ;
SERVICE_DEMAND_START
ErrorControl = 1 ;
SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\MYDRIVER.sys

; Source file information
; -----------------------
[SourceDisksFiles]
MYDRIVER.sys=1 ;

[SourceDisksNames]
1="Insert the installation media ",

[DestinationDirs]
DefaultDestDir=10, System32\Drivers

[Strings]
TSH=“MY TEST DRIVER.”
Mfg=“XYZ Lmtd”


Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com