what is the correct way of full uninstall of the Windows printer driver?
I need to automate this process. For now I perform list of actions which requires one of even two rebooting:
pnputil -e choose needed inf and run pnputil -f -d
clean registry:
in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print
clean
Environments\<depending on OS>\Drivers\Version-3\<My Print>
Forms\<My Forms>
Monitors\<My monitor>
Printers\<My printer>
3.delete dll, gpd, inf files in c:\windows (it is possible only after rebooting)
I know that it is different process in WinXP and Win7/Win8. More important for me is Win 7 & Win 8.
I believe should be another way for doing it. Please advise.