driver install on 7

Hi all,

I have some Qs:

  1. on 7, drivers are installed with drvinst.exe which now looks for drivers on
    Microsoft servers. Somethimes I see a 1 minute pause between software bus
    installation and child installation - debugging drvinst shows a wait for
    WUDriverSearch function (don’t remember the exact name). Can this be confirmed
    or infirmed, that the network may be a bottleneck? I can see it about once a
    day. Nothing shows up in the kernel.

  2. the DrvStore repository could get corrupted and result in a denial of
    installation. Here’s a dpinst.exe output:

INFO: Preinstalling ‘c:\new\dis_irm.inf’ …
INFO: ENTER: DriverPackagePreinstallW
INFO: Driver package is already preinstalled ‘c:\new\dis_irm.inf’.
SUCCESS:c:\new\dis_irm.inf is preinstalled.
INFO: RETURN: DriverPackagePreinstallW (0xB7)
INFO: ENTER: DriverPackageGetPathW
INFO: RETURN: DriverPackageGetPathW (0x0)
INFO: ENTER: DriverPackageInstallW
INFO: Installing INF file ‘c:\new\dis_irm.inf’ (Plug and Play).
INFO: Could not open file
C:\Windows\System32\DriverStore\FileRepository\dis_irm.inf_amd64_neutral_e1e0365978b86bf4\di

s_irm.inf. (Error code 0xE0000100: The style of the INF is different than what
was requested.)
ERROR: PnP Install failed. (Error code 0x3EE: The volume for a file has been
externally altered so that the opened file
is no longer valid.)
INFO: Attempting to rollback …
INFO: No devices to rollback
INFO: RETURN: DriverPackageInstallW (0x3EE)
INFO: Returning with code 0x80010000

DriverPackagePreinstallW (http://bit.ly/f6KVlD) calls do not have the
DRIVER_PACKAGE_REPAIR flag turned on. The workaround I found was to use
WinDDK\7600.16385.1\src\setup\DIFxAPI\DIFxCmd\objchk_win7_amd64\amd64\DIFxCmd.exe

which allows for DRIVER_PACKAGE_REPAIR to be specified from the command line.

Regards,
Calin

Calin Iaru wrote:

Hi all,

  1. on 7, drivers are installed with drvinst.exe which now looks for
    drivers on Microsoft servers. Somethimes I see a 1 minute pause
    between software bus installation and child installation - debugging
    drvinst shows a wait for WUDriverSearch function (don’t remember the
    exact name). Can this be confirmed or infirmed, that the network may
    be a bottleneck? I can see it about once a day. Nothing shows up in
    the kernel.

If you have a slow network, then certainly the driver library search
will be slow.

  1. the DrvStore repository could get corrupted and result in a denial
    of installation. Here’s a dpinst.exe output:

    INFO: Installing INF file ‘c:\new\dis_irm.inf’ (Plug and Play).
    INFO: Could not open file
    C:\Windows\System32\DriverStore\FileRepository\dis_irm.inf_amd64_neutral_e1e0365978b86bf4\di
    s_irm.inf. (Error code 0xE0000100: The style of the INF is different
    than what was requested.)
    ERROR: PnP Install failed. (Error code 0x3EE: The volume for a file
    has been externally altered so that the opened file
    is no longer valid.)

This seems to imply that your INF file is faulty, not that the driver
store is corrupted. Do you have the correct NTamd64 decorations in your
INF file?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Hi Tim,

The inf was installed as usual - if the os did corrupt it, well, I don’t have
it anymore to look at it. In general, nothing gets inside FileRepository unless
it’s good. For instance, files cannot be deleted from there. I would speculate
that drvinst or svchost did something.

Why would it be a bad idea to supress WUDriverSearch with an extended
flag/API? Imagine a virtual bus driver which is not Authenticode and therefore
it and children won’t be found in WU/WHQL.

Regards,
Calin


From: Tim Roberts
To: Windows System Software Devs Interest List
Sent: Thu, January 27, 2011 7:54:59 PM
Subject: Re: [ntdev] driver install on 7

Calin Iaru wrote:
> Hi all,
>
>
> 1) on 7, drivers are installed with drvinst.exe which now looks for
> drivers on Microsoft servers. Somethimes I see a 1 minute pause
> between software bus installation and child installation - debugging
> drvinst shows a wait for WUDriverSearch function (don’t remember the
> exact name). Can this be confirmed or infirmed, that the network may
> be a bottleneck? I can see it about once a day. Nothing shows up in
> the kernel.

If you have a slow network, then certainly the driver library search
will be slow.

> 2) the DrvStore repository could get corrupted and result in a denial
> of installation. Here’s a dpinst.exe output:
> …
> INFO: Installing INF file ‘c:\new\dis_irm.inf’ (Plug and Play).
> INFO: Could not open file
>C:\Windows\System32\DriverStore\FileRepository\dis_irm.inf_amd64_neutral_e1e0365978b86bf4\di
>i
> s_irm.inf. (Error code 0xE0000100: The style of the INF is different
> than what was requested.)
> ERROR: PnP Install failed. (Error code 0x3EE: The volume for a file
> has been externally altered so that the opened file
> is no longer valid.)

This seems to imply that your INF file is faulty, not that the driver
store is corrupted. Do you have the correct NTamd64 decorations in your
INF file?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Hi Tim,

I got a new one today - the inf in the FileRepository has the same size as the original, the content is blanc. A crash occured during installation. The crash happened on an older driver, not on the one that was supposed to be installed. “difxcmd /p drivers.inf 1” did repair it.

Regards,
Calin

From: Tim Roberts
To: Windows System Software Devs Interest List
Sent: Thu, January 27, 2011 7:54:59 PM
Subject: Re: [ntdev] driver install on 7

> 2) the DrvStore repository could get corrupted and result in a denial
> of installation. Here’s a dpinst.exe output:
> …
> INFO: Installing INF file ‘c:\new\dis_irm.inf’ (Plug and Play).
> INFO: Could not open file
> C:\Windows\System32\DriverStore\FileRepository\dis_irm.inf_amd64_neutral_e1e0365978b86bf4\di
> s_irm.inf. (Error code 0xE0000100: The style of the INF is different
> than what was requested.)
> ERROR: PnP Install failed. (Error code 0x3EE: The volume for a file
> has been externally altered so that the opened file
> is no longer valid.)

This seems to imply that your INF file is faulty, not that the driver
store is corrupted. Do you have the correct NTamd64 decorations in your
INF file?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

I tried to submit this to connect.microsoft.com and i don’t get a product category that encompasses this. What’s wrong? I used to be able to do it.


From: Calin Iaru
To: Windows System Software Devs Interest List
Sent: Monday, February 14, 2011 12:49 PM
Subject: Re: [ntdev] driver install on 7

Hi Tim,

I got a new one today - the inf in the FileRepository has the same size as the original, the content is blanc. A crash occured during installation. The crash happened on an older driver, not on the one that was supposed to be installed. “difxcmd /p drivers.inf 1” did repair it.

Regards,
Calin

From: Tim Roberts
To: Windows System Software Devs Interest List
Sent: Thu, January 27, 2011 7:54:59 PM
Subject: Re: [ntdev] driver install on 7

> 2) the DrvStore repository could get corrupted and result in a denial
> of installation. Here’s a dpinst.exe output:
> …
> INFO: Installing INF file ‘c:\new\dis_irm.inf’ (Plug and Play).
> INFO: Could not open file
> C:\Windows\System32\DriverStore\FileRepository\dis_irm.inf_amd64_neutral_e1e0365978b86bf4\di
> s_irm.inf. (Error code 0xE0000100: The style of the INF is different
> than what was requested.)
> ERROR: PnP Install failed. (Error code 0x3EE: The volume for a file
> has been externally altered so that the opened file
> is no longer valid.)

This seems to imply that your INF file is faulty, not that the driver
store is corrupted. Do you have the correct NTamd64 decorations in your
INF file?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer