UpdateDriverForPLugAndPlayDevi-ces return true,fails to upgrade driver

Hi all,

we tried to upgrade the printer driver of an existing installation.

  1. UpdateDriverForPLugAndPlayDevices returns TRUE, but fails to upgrade
    the printer driver dll (language monitor) to the latest version provided
    (even with INSTALLFLAG_FORCE option) in Win2K. Both the driver versions
    are same, But INSTALLFLAG_FORCE is supposed to replace the existing
    driver dlls, right ?

  2. UpdateDriverForPLugAndPlayDevices returns TRUE in XP, but it needs a
    system restart(Manual restart) to copy the file successfully.

A workaround thought is to stop the spooler, copy the file and start the
spooler. Is there any other alternative to achieve the same?

  1. Another problem is in restarting the spooler. Once spooler service is
    stopped, QueryServiceStatus returns service is stopped. But when attempt
    is made to restart the spooler service, it fails because in actuality
    the service has not fully stopped.

Can anybody throw more light on this issue…

Thanks


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@wipro.com
Sent: Thursday, July 07, 2005 10:29 AM
To: Windows System Software Devs Interest List
Cc: SUMA SRINIVAS (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS);
Debjit Roy (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS)
Subject: [ntdev] UpdateDriverForPLugAndPlayDevi-ces return true,fails to
upgrade driver

Hi all,

we tried to upgrade the printer driver of an existing installation.

  1. UpdateDriverForPLugAndPlayDevices returns TRUE, but fails to upgrade
    the printer driver dll (language monitor) to the latest version provided
    (even with INSTALLFLAG_FORCE option) in Win2K. Both the driver versions
    are same, But INSTALLFLAG_FORCE is supposed to replace the existing
    driver dlls, right >>Is it Win2K with SP4? There was some problems in
    UpdateDriverForPLugAndPlayDevices in that release. Have a look at:

http://support.microsoft.com/?kbid=822831

  1. UpdateDriverForPLugAndPlayDevices returns TRUE in XP, but it needs a
    system restart(Manual restart) to copy the file successfully.

>This seems to be a right behavior as spooler keeps the driver dll
loaded and as long as this dll is loaded new dll can not be loaded.

A workaround thought is to stop the spooler, copy the file and start the
spooler. Is there any other alternative to achieve the same?

  1. Another problem is in restarting the spooler. Once spooler service is
    stopped, QueryServiceStatus returns service is stopped. But when attempt
    is made to restart the spooler service, it fails because in actuality
    the service has not fully stopped.

>I faced this problem some time back but multiple tries (try, sleep for
some time, try again) worked for me.

Can anybody throw more light on this issue…

Thanks


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com