|
Prev: Unidrv WHQL
Next: 32-bit HANDLE in 64-bit driver
From: bart on 28 Apr 2008 04:20 Hi, I am working on the automation of the driver install for a USB connected device. I don't have any experience with driver install, and hope that I can get some help from this forum. The device connects with USB and only has a .inf file. The driver itself is usbscan.sys. Currently when the device is connected a 'new hardware device detected' wizards pops up. To install it, we now have to follow a manual process. In the manual process I get a warning that the driver is not signed. I would like to automate this with a installer. I think that DPInst is the tool I could use for this. See below the data of the .inf file. I have tried the DPInst with the legacy mode argument (/lm) and then is says that the driver is installed, but it does not appear in the hardware manager. I am testing the installation on a Windows XP machine. Am I doing the right thing?, any help would be greatly appreciated, Bart [Version] Signature="$CHICAGO$" Class=Image ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be*****} provider=%MfgName% LayoutFile=layout.inf [Manufacturer] %MfgName%=****** [******] %USB\VID_066F&PID_****&Rev_0001&MI_00.DeviceDesc% = BULKUSB.Dev, USB \VID_066F&PID_****&Rev_0001&MI_00 [PreCopySection] HKR,,NoSetupUI,,1 [DestinationDirs] BULKUSB.Files.Inf = 10,INF [BULKUSB.Dev] Include = sti.inf Needs = STI.USBSection CopyFiles = BULKUSB.Files.Inf AddReg = BULKUSB.AddReg [BULKUSB.Dev.NT] Include = sti.inf Needs = STI.USBSection CopyFiles=BULKUSB.Files.Inf AddReg=BULKUSB.AddReg [BULKUSB.Dev.NT.Services] Include=sti.inf Needs=STI.USBSection.Services [BULKUSB.AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,usbscan.sys HKLM,"System\Currentcontrolset\Services\BulkUsb \Parameters","MaximumTransferSize",0x10001,4096 HKLM,"System\Currentcontrolset\Services\BulkUsb \Parameters","DebugLevel",0x10001,2 [BULKUSB.Files.Inf] driver2kXpvista.inf ;---------------------------------------------------------------; [Strings] MSFT="******" MfgName="*****" USB\VID_066F&PID_****&Rev_0001&MI_00.DeviceDesc="******" BULKUSB.SvcDesc="******"
From: bart on 28 Apr 2008 06:18 I read that virtual drivers cannot not be installed using DPInst? So, is the driver that I am installing a virtual driver?, and if so, how to automate the installation of this driver? I get following error. No drivers installed. No devices found that match driver(s) contained in 'C:\WINDOWS\system32\DRVSTORE\driver2kxpv_8E2CB28C1BD1B25F8C B8FBBD59B54B1775C6946E\driver2kxpvista.inf'. C:\Program Files\Driver Installation Tools 2.01\DPInst\English-US \x86>DPInst.exe /lm /c INFO: Option set: dumping log info to console. INFO: Current working directory: 'C:\Program Files\Driver Installation Tools 2.01\DPInst\English-US\x86' INFO: Running on path 'C:\Program Files\Driver Installation Tools 2.01\DPInst\English-US\x86' INFO: No valid 'dpinst.xml' file provided. INFO: Install option set: legacy mode on. INFO: Found driver package: 'C:\Program Files\Driver Installation Tools 2.01\DPInst\English-US\x86\driver2kxpvista.inf'. INFO: Preinstalling 'c:\program files\driver installation tools 2.01\dpinst\english-us\x86\driver2kxpvista.inf' ... INFO: ENTER: DriverPackagePreinstallW SUCCESS:c:\program files\driver installation tools 2.01\dpinst\english- us\x86\driver2kxpvista.inf is preinstalled. INFO: RETURN: DriverPackagePreinstallW (0xB7) INFO: ENTER: DriverPackageGetPathW SUCCESS:Found driver store entry. INFO: RETURN: DriverPackageGetPathW (0x0) INFO: ENTER: DriverPackageInstallW INFO: Installing INF file "C:\WINDOWS\system32\DRVSTORE \driver2kxpv_8E2CB28C1BD1B25F8CB8FBBD59B54B1775C6946E \driver2kxpvista.inf" of Type 6. INFO: Looking for Model Section [*****]... INFO: No matching devices found in INF "C:\WINDOWS\system32\DRVSTORE \driver2kxpv_8E2CB28C1BD1B25F8CB8FBBD59B54B1775C6946E \driver2kxpvista.in f" on the Machine. INFO: No drivers installed. No devices found that match driver(s) contained in 'C:\WINDOWS\system32\DRVSTORE \driver2kxpv_8E2CB28C1BD1B25F8C B8FBBD59B54B1775C6946E\driver2kxpvista.inf'. SUCCESS:Installation completed with code 0xE000020B. INFO: RETURN: DriverPackageInstallW (0xE000020B) INFO: No matching device was found for 'c:\program files\driver installation tools 2.01\dpinst\english-us\x86\driver2kxpvista.inf'. Driver will be installed when plugged in. INFO: Returning with code 0x100
From: chris.aseltine on 29 Apr 2008 09:17 On Apr 28, 3:20 am, bart <bart.burkha...(a)gmail.com> wrote: > Currently when the device is connected a 'new hardware device > detected' wizards pops up. To install it, we now have to follow a > manual process. In the manual process I get a warning that the driver > is not signed. > > I would like to automate this with a installer. You won't be able to make the hardware wizard or the driver signing warning disappear without going through WHQL. > I have tried the DPInst with the legacy mode argument (/lm) and then > is says that the driver is installed, but it does not appear in the > hardware manager. I am testing the installation on a Windows XP > machine. You're confusing driver installation and device installation. You say you installed your driver -- fine, but why would anything appear in *Device* Manager unless you really plugged in your device?
|
Pages: 1 Prev: Unidrv WHQL Next: 32-bit HANDLE in 64-bit driver |