Prev: Problem attaching WinDbg to target after WDK7600 upgrade
Next: Pre-install driver (usbser.sys)?
From: Ashish K Hanwadikar on 4 Sep 2009 15:07 Hi, I am trying to pre-install driver service (without physical hardware being connected) using DriverPackageInstall. When called without the flag, DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT, DriverPackageInstall is not supposed return ERROR_NO_SUCH_DEVINST (See here, http://msdn.microsoft.com/en-us/library/ms790275.aspx). However, it does as seen the output below. Is this bug in DriverPackageInstall or is my understanding of its behavior incorrect? Thanks in advance, Ashish Hanwadikar C:\Documents and Settings\Administrator>difxcmd /i "C:\WINDOWS\system32\DRVSTORE \vmscsi_1F0D7AE8E97213B3F8A4DB9AB5FB989AA2852327\vmscsi.inf" 0 DIFxAPI Sampe Program INFO: Option "/i" INFO: Input file "C:\WINDOWS\system32\DRVSTORE\vmscsi_1F0D7AE8E97213B3F8A4DB9AB5 FB989AA2852327\vmscsi.inf" INFO: Flags 0x0 (0) TEST: installing driver package. LOG Event: 1, ENTER: DriverPackageInstallW LOG Event: 1, vmscsi.inf: checking signature with catalog 'C:\WINDOWS\system32\D RVSTORE\vmscsi_1F0D7AE8E97213B3F8A4DB9AB5FB989AA2852327\vmscsi.cat' ... LOG Event: 1, Driver package 'vmscsi.inf' is WHQL signed. LOG Event: 1, Installing INF file 'C:\WINDOWS\system32\DRVSTORE\vmscsi_1F0D7AE8E 97213B3F8A4DB9AB5FB989AA2852327\vmscsi.inf' of Type 6. LOG Event: 1, Looking for Model Section [VMware.Mfg]... LOG Event: 1, No matching devices found in INF "C:\WINDOWS\system32\DRVSTORE\vms csi_1F0D7AE8E97213B3F8A4DB9AB5FB989AA2852327\vmscsi.inf" on the Machine. LOG Event: 1, No drivers installed. No devices found that match driver(s) contai ned in 'C:\WINDOWS\system32\DRVSTORE\vmscsi_1F0D7AE8E97213B3F8A4DB9AB5FB989AA285 2327\vmscsi.inf'. LOG Event: 0, Installation completed with code 0xE000020B. LOG Event: 1, RETURN: DriverPackageInstallW (0xE000020B) INFO: There aren't any live devnodes with the DeviceId contained in the INF.
From: Jonathan Chang - MSFT on 7 Sep 2009 06:03 It's not a bug of DriverPackageInstall() and you're reading the document wrong. DriverPackageInstall() will first install your driver package to the driver store, THEN try to install the driver. If it does not find matching device present in the system, it will return ERROR_NO_SUCH_DEVINST, unless DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT is specified (since it will not try to install the driver in this case). "Ashish K Hanwadikar" wrote: > Hi, > I am trying to pre-install driver service (without physical hardware > being connected) using DriverPackageInstall. When called without the flag, > DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT, DriverPackageInstall is not supposed > return ERROR_NO_SUCH_DEVINST (See here, > http://msdn.microsoft.com/en-us/library/ms790275.aspx). However, it does as > seen the output below. Is this bug in DriverPackageInstall or is my > understanding of its behavior incorrect? > > Thanks in advance, > Ashish Hanwadikar > > C:\Documents and Settings\Administrator>difxcmd /i > "C:\WINDOWS\system32\DRVSTORE > \vmscsi_1F0D7AE8E97213B3F8A4DB9AB5FB989AA2852327\vmscsi.inf" 0 > DIFxAPI Sampe Program > INFO: Option "/i" > INFO: Input file > "C:\WINDOWS\system32\DRVSTORE\vmscsi_1F0D7AE8E97213B3F8A4DB9AB5 > FB989AA2852327\vmscsi.inf" > INFO: Flags 0x0 (0) > > TEST: installing driver package. > LOG Event: 1, ENTER: DriverPackageInstallW > LOG Event: 1, vmscsi.inf: checking signature with catalog > 'C:\WINDOWS\system32\D > RVSTORE\vmscsi_1F0D7AE8E97213B3F8A4DB9AB5FB989AA2852327\vmscsi.cat' ... > LOG Event: 1, Driver package 'vmscsi.inf' is WHQL signed. > LOG Event: 1, Installing INF file > 'C:\WINDOWS\system32\DRVSTORE\vmscsi_1F0D7AE8E > 97213B3F8A4DB9AB5FB989AA2852327\vmscsi.inf' of Type 6. > LOG Event: 1, Looking for Model Section [VMware.Mfg]... > LOG Event: 1, No matching devices found in INF > "C:\WINDOWS\system32\DRVSTORE\vms > csi_1F0D7AE8E97213B3F8A4DB9AB5FB989AA2852327\vmscsi.inf" on the Machine. > LOG Event: 1, No drivers installed. No devices found that match driver(s) > contai > ned in > 'C:\WINDOWS\system32\DRVSTORE\vmscsi_1F0D7AE8E97213B3F8A4DB9AB5FB989AA285 > 2327\vmscsi.inf'. > LOG Event: 0, Installation completed with code 0xE000020B. > LOG Event: 1, RETURN: DriverPackageInstallW (0xE000020B) > INFO: There aren't any live devnodes with the DeviceId contained in the INF. > > > >
|
Pages: 1 Prev: Problem attaching WinDbg to target after WDK7600 upgrade Next: Pre-install driver (usbser.sys)? |