From: Ash on
Hello,
I have a really weird problem. Normally I use devcon to install/update my
custom kernel mode display driver.

I have a custom installer that during an upgrade of my product does a
"devcon remove my_display_driver" and then a "devcon install
mydisplaydriver.inf my_display_driver".

On Windows XP devcon will let me remove an older version and install a new
version without rebooting in between. Upon reboot after the install portion,
everything is fine.

HOWEVER, on Win7 devcon lets me remove but fails during the install. This is
the error I get and I cannot find any information on it:

ndv: {Core Device Install} 18:21:07.500
inf: Opened INF: 'C:\Windows\INF\oem12.inf' ([strings])
inf: Saved PNF: 'C:\Windows\INF\oem12.PNF' (Language = 0409)
dvi: {DIF_ALLOW_INSTALL} 18:21:07.515
dvi: Using exported function 'DisplayClassInstaller' in
module 'C:\Windows\system32\DispCI.dll'.
dvi: Class installer == DispCI.dll,DisplayClassInstaller
dvi: No CoInstallers found
dvi: Class installer: Enter 18:21:07.531
!!! dvi: Class installer: failed(0xe000022b)!
!!! dvi: Error 0xe000022b: The class installer has denied
the request to install or upgrade this device.
dvi: {DIF_ALLOW_INSTALL - exit(0xe000022b)} 18:21:07.531
ndv: Device install status=0xe000022b


Any idea why I can't do an install right after a remove on Win7 ?? What does
this error mean exactly?
From: Mike [MSFT] on
It means that the display class installer determined the devnode is not in a
state where it can be installed. My wild guess would be that there is some
pending uninstall operation that won't be completed until you reboot and so
the class installer prevents a new install from cancelling the pending
uninstall operation. It's possible that your driver is not properly
handling the uninstall request.

-Mike

"Ash" <Ash(a)discussions.microsoft.com> wrote in message
news:5C86E2A7-8A1D-4253-9D04-EB208A773364(a)microsoft.com...
> Hello,
> I have a really weird problem. Normally I use devcon to install/update my
> custom kernel mode display driver.
>
> I have a custom installer that during an upgrade of my product does a
> "devcon remove my_display_driver" and then a "devcon install
> mydisplaydriver.inf my_display_driver".
>
> On Windows XP devcon will let me remove an older version and install a new
> version without rebooting in between. Upon reboot after the install
> portion,
> everything is fine.
>
> HOWEVER, on Win7 devcon lets me remove but fails during the install. This
> is
> the error I get and I cannot find any information on it:
>
> ndv: {Core Device Install} 18:21:07.500
> inf: Opened INF: 'C:\Windows\INF\oem12.inf' ([strings])
> inf: Saved PNF: 'C:\Windows\INF\oem12.PNF' (Language = 0409)
> dvi: {DIF_ALLOW_INSTALL} 18:21:07.515
> dvi: Using exported function 'DisplayClassInstaller' in
> module 'C:\Windows\system32\DispCI.dll'.
> dvi: Class installer ==
> DispCI.dll,DisplayClassInstaller
> dvi: No CoInstallers found
> dvi: Class installer: Enter 18:21:07.531
> !!! dvi: Class installer: failed(0xe000022b)!
> !!! dvi: Error 0xe000022b: The class installer has denied
> the request to install or upgrade this device.
> dvi: {DIF_ALLOW_INSTALL - exit(0xe000022b)} 18:21:07.531
> ndv: Device install status=0xe000022b
>
>
> Any idea why I can't do an install right after a remove on Win7 ?? What
> does
> this error mean exactly?

From: Bo Skjøtt on
I am having a similar problem. The problem is that "devcon remove"
returns success on Windows 7, but in fact it doesn't remove the
driver. If you plug-in the device again you will see that the old
driver is still being used. I guess that is why your subsequent
"devcon install" fails.

Does anybody know why the "devcon remove" command works differently on
Windows 7 compared to XP and Vista?
From: Maxim S. Shatskih on
>I am having a similar problem. The problem is that "devcon remove"
> returns success on Windows 7, but in fact it doesn't remove the
> driver.

It removes the devnode though.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Mike [MSFT] on
"devcon remove" is not intended to remove the driver. As Maxim mentions it
removes the devnode and unloads the driver, but the driver files are left
behind. If you plug the device in again the drivers will be installed
again. To remove the driver package you can use "devcon dp_delete":
http://msdn.microsoft.com/en-us/library/aa906327.aspx.

Note that this also doesn't sound related to the original posters issue
since it sounds like reinstalling succeeds.

-Mike

"Maxim S. Shatskih" <maxim(a)storagecraft.com.no.spam> wrote in message
news:e3ylUxiqKHA.4220(a)TK2MSFTNGP05.phx.gbl...
>>I am having a similar problem. The problem is that "devcon remove"
>> returns success on Windows 7, but in fact it doesn't remove the
>> driver.
>
> It removes the devnode though.
>
> --
> Maxim S. Shatskih
> Windows DDK MVP
> maxim(a)storagecraft.com
> http://www.storagecraft.com
>
 |  Next  |  Last
Pages: 1 2
Prev: DCD Filter Driver
Next: beginning UMDF Driver for PIC