Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > DriverPackageInstall returns ERROR_NO_SUCH_DEVINST

Reply
Thread Tools Display Modes

DriverPackageInstall returns ERROR_NO_SUCH_DEVINST

 
 
Ashish K Hanwadikar
Guest
Posts: n/a

 
      09-04-2009
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\v mscsi.inf" 0
DIFxAPI Sampe Program
INFO: Option "/i"
INFO: Input file
"C:\WINDOWS\system32\DRVSTORE\vmscsi_1F0D7AE8E9721 3B3F8A4DB9AB5
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_1F0D7AE8E97213B3F8A4DB9AB5FB989AA28 52327\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\vmscs i.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_1F0D7AE8E9721 3B3F8A4DB9AB5FB989AA285
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.



 
Reply With Quote
 
 
 
 
Jonathan Chang - MSFT
Guest
Posts: n/a

 
      09-07-2009
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\v mscsi.inf" 0
> DIFxAPI Sampe Program
> INFO: Option "/i"
> INFO: Input file
> "C:\WINDOWS\system32\DRVSTORE\vmscsi_1F0D7AE8E9721 3B3F8A4DB9AB5
> 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_1F0D7AE8E97213B3F8A4DB9AB5FB989AA28 52327\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\vmscs i.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_1F0D7AE8E9721 3B3F8A4DB9AB5FB989AA285
> 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.
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: DriverPackageInstall and IM Driver Pavel A. Windows Vista Drivers 2 01-16-2010 08:19 AM
Task scheduler returns an error : the task image is corrupt ortamp Jean-David Windows Vista Performance 2 05-03-2008 02:02 PM
BSOD returns! deltrey Windows Vista Performance 7 08-02-2007 10:18 PM
GetAvailableVidMem() returns DDERR_NODIRECTDRAWHW Vikram Windows Vista Hardware 0 03-23-2007 11:49 AM
DIFx: DriverPackageInstall for non-PnP devices? Dieter Pfeuffer Windows Vista Drivers 2 11-16-2006 07:52 AM