/build/static/layout/Breadcrumb_cap_w.png
05/27/2019 125 views

Hello,

I am in the process of creating a Printer Driver package for Ricoh SP3610 model. We chose the USB method of connection.

So, through package I am taking care of pinter driver install using pnputil.exe. Driver installs fine as the printer works as expected when connected.

The issue is with uninstall. I uninstall the driver files this time using "...\dpinst64.exe" /u oemsetup.inf /q" followed by Remove-Printer command.

But the Ricoh printer icon is grayed out in Devices and Printers list. I also tried restart of spooler services and manually deleting RicohXXX printer related entries but the icon stays.

However, using the context menu to remove device seems to work. Also saw this error in setupapidev.log at one point of time in delete driver section : !    dvi: Access denied from Query and Remove.


Working on driver package after a long time, not sure what am i missing. Any help is appreciated.


Thanks

0 Comments   [ + ] Show comments

Comments


All Answers

0
Access denied 

Hmmm...I wonder if this could be a clue...? I strongly suspect that the fact that you're expecting dpinst64 to find that INF by itself is a factor. You should always, always, ALWAYS use explicit paths. Use %~dp0 if that path isn't hard and fast.

Having said that, if you're packaging the driver into MSI - and that's what you should really be doing - there's a merge module that you can download which interfaces with DPInst. Once you have that, installation and uninstallation involves using only the resulting MSI. Adding the printer connection can then be done using the Microsoft 'prn????.vbs' scripts.

Answered 05/29/2019 by: VBScab
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share