devcon and UpdateDriverForPlugAndPlayDevices

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?

0xe000022b is ERROR_DI_DONT_INSTALL. Not sure if UAC is in action.

Cheers
Check Abdoul

“Ashwin Chandra” wrote in message
news:xxxxx@ntdev…
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?

Yeah I am pretty sure it is not UAC, I have it disabled. Also I am able
to successfully do a reboot/install the first time but not any times
after that.

Any other reasons why this error ERROR_DI_DONT_INSTALL would come up?
THere is no documentation on it anywhere…

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Check Abdoul
Sent: Saturday, January 23, 2010 7:10 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] devcon and UpdateDriverForPlugAndPlayDevices

0xe000022b is ERROR_DI_DONT_INSTALL. Not sure if UAC is in action.

Cheers
Check Abdoul

“Ashwin Chandra” wrote in message
news:xxxxx@ntdev…
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?


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