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?
-Mike
"Ash" <A...@discussions.microsoft.com> wrote in message
news:5C86E2A7-8A1D-4253...@microsoft.com...
Does anybody know why the "devcon remove" command works differently on
Windows 7 compared to XP and Vista?
It removes the devnode though.
--
Maxim S. Shatskih
Windows DDK MVP
ma...@storagecraft.com
http://www.storagecraft.com
Note that this also doesn't sound related to the original posters issue
since it sounds like reinstalling succeeds.
-Mike
"Maxim S. Shatskih" <ma...@storagecraft.com.no.spam> wrote in message
news:e3ylUxiq...@TK2MSFTNGP05.phx.gbl...
At least on Win7, this actually deletes FileRepository and oem%d.inf/.pnf, but the .sys in system32\drivers and all non-devnode registry entries (SC database, event logging) - are left in place.
The OS will boot with this driver for the next time.
-Mike
"Maxim S. Shatskih" <ma...@storagecraft.com.no.spam> wrote in message
news:uFnoeewq...@TK2MSFTNGP06.phx.gbl...