Difference between revisions of "Windows/CUPS printer driver"
Jump to navigation
Jump to search
m (→Script) |
|||
Line 25: | Line 25: | ||
# Delete these files <tt>CUPS6.INI CUPS6.BPD CUPS6.PPD CUPSPS6.DLL CUPSUI6.DLL</tt> |
# Delete these files <tt>CUPS6.INI CUPS6.BPD CUPS6.PPD CUPSPS6.DLL CUPSUI6.DLL</tt> |
||
# Delte the registry key <tt>HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\CUPS Test Driver v<span class="highlight"><Version></span></tt> |
# Delte the registry key <tt>HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\CUPS Test Driver v<span class="highlight"><Version></span></tt> |
||
'''Note:''' After running the script a reboot may be required. |
|||
=== Script === |
=== Script === |
||
Download script: [[:File:Uninstall-cups6-driver.cmd|uninstall-cups6-driver.cmd]]<br /> |
Download script: [[:File:Uninstall-cups6-driver.cmd|uninstall-cups6-driver.cmd]]<br /> |
Revision as of 22:53, 1 June 2012
Prerequisites
- Windows 2000 or higher.
- CUPS installation with a printer not using Foomatic filters.
Install
- Download the CUPS Windows Driver source package. Either the .bz2 or the .gz will do.
- Extract the content cups-windows-<Version>\i386\ to a directory of choice.
- Open the Printers and Faxes window in the Control Panel. Right click to and choose Add Printer.
- Select Local Printer then [Next >]
- Leave at the default port and then hit [Next >]
- When asked to choose a printer driver click on [Have Disk]
- Browse to the directory where the CUPS driver files have been put.
- When the file dialog appears choose the cups6.inf file.
- A list with the long name of the driver CUPS Test Driver v<Version will show. Select and click on [Next >]
- Give the printer a name or leave as is an continue with [Next >]
- Continue until the end. However when installing Windows might tell you that the driver is not signed. Agree to install and finalize.
Uninstall
GUI
- In the Control Panel open Printers and Faxes
- Goto File -> Server Properties.
- Navigate to the [Drivers] tab, select the CUPS Test Driver v<Version> and hit the [Remove] button.
Manually
- Navigate to %WINDIR%\system32\spool\drivers\w32x86\3
- Delete these files CUPS6.INI CUPS6.BPD CUPS6.PPD CUPSPS6.DLL CUPSUI6.DLL
- Delte the registry key HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\CUPS Test Driver v<Version>
Note: After running the script a reboot may be required.
Script
Download script: uninstall-cups6-driver.cmd
Note: After running the script a reboot may be required.
set CUPSVER=6 set DRIVER_DIR=%WINDIR%\system32\spool\drivers\w32x86\3 set FILES=CUPS%CUPSVER%.INI CUPS%CUPSVER%.BPD CUPS%CUPSVER%.PPD CUPSPS%CUPSVER%.DLL CUPSUI%CUPSVER%.DLL set REG_PATH="HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\CUPS Test Driver v%CUPSVER%" for %%i in ( %FILES% ) do ( if exist %DRIVER_DIR%\%%i ( echo Deleting %DRIVER_DIR%\%%i del %DRIVER_DIR%\%%i ) else ( echo File %DRIVER_DIR%\%%i not found. Skipping. ) ) reg delete %REG_PATH% /f >nul 2>&1