DriverPackageInstall returns ERROR_NO_SUCH_DEVINST

Discussion in 'Windows Vista Drivers' started by Ashish K Hanwadikar, Sep 4, 2009.

  1. 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.
     
    Ashish K Hanwadikar, Sep 4, 2009
    #1
    1. Advertising

  2. 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.
    >
    >
    >
    >
     
    Jonathan Chang - MSFT, Sep 7, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vikram

    GetAvailableVidMem() returns DDERR_NODIRECTDRAWHW

    Vikram, Mar 23, 2007, in forum: Windows Vista Hardware
    Replies:
    0
    Views:
    347
    Vikram
    Mar 23, 2007
  2. Jean-David

    Task scheduler returns an error : the task image is corrupt ortamp

    Jean-David, Oct 17, 2006, in forum: Windows Vista Performance
    Replies:
    2
    Views:
    797
    vista_man
    May 3, 2008
  3. deltrey

    BSOD returns!

    deltrey, Jul 30, 2007, in forum: Windows Vista Performance
    Replies:
    7
    Views:
    348
    deltrey
    Aug 2, 2007
  4. Dieter Pfeuffer

    DIFx: DriverPackageInstall for non-PnP devices?

    Dieter Pfeuffer, Nov 14, 2006, in forum: Windows Vista Drivers
    Replies:
    2
    Views:
    1,123
    Dieter Pfeuffer
    Nov 16, 2006
  5. Pavel A.

    Re: DriverPackageInstall and IM Driver

    Pavel A., Jan 5, 2010, in forum: Windows Vista Drivers
    Replies:
    2
    Views:
    561
    Anand Choubey
    Jan 16, 2010
Loading...

Share This Page