Difference between revisions of "Windows/CUPS printer driver"

From braindump
Jump to navigation Jump to search
Line 15: Line 15:
# Navigate to <tt>%WINDIR%\system32\spool\drivers\w32x86\3</tt>
# Navigate to <tt>%WINDIR%\system32\spool\drivers\w32x86\3</tt>
# 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>
or use this script [[File:Uninstall-cups6-driver.cmd|uninstall-cups6-driver.cmd]]
or use this script [[:File:Uninstall-cups6-driver.cmd|uninstall-cups6-driver.cmd]]
set DRIVER_DIR=%WINDIR%\system32\spool\drivers\w32x86\3
set DRIVER_DIR=%WINDIR%\system32\spool\drivers\w32x86\3
set FILES=CUPS6.INI CUPS6.BPD CUPS6.PPD CUPSPS6.DLL CUPSUI6.DLL
set FILES=CUPS6.INI CUPS6.BPD CUPS6.PPD CUPSPS6.DLL CUPSUI6.DLL
Line 26: Line 26:
)
)
)
)

== References ==
== References ==
* [http://cups.org/software.php CUPS download page]
* [http://cups.org/software.php CUPS download page]

Revision as of 21:46, 1 June 2012

Prerequisites

  • Windows 2000 or higher.
  • CUPS installation with a printer not using Foomatic filters.

Install

  1. Download the CUPS Windows Driver source package. Either the .bz2 or the .gz will do.
  2. Extract the content cups-windows-<Version>\i386\ to a directory of choice.
  3. Open the Printers and Faxes window in the Control Panel. Right click to and choose Add Printer.
  4. Select Local Printer then [Next >]
  5. Leave at the default port and then hit [Next >]
  6. When asked to choose a printer driver click on [Have Disk]
  7. Browse to the directory where the CUPS driver files have been put.
  8. When the file dialog appears choose the cups6.inf file.

Uninstall

  1. Navigate to %WINDIR%\system32\spool\drivers\w32x86\3
  2. Delete these files CUPS6.INI CUPS6.BPD CUPS6.PPD CUPSPS6.DLL CUPSUI6.DLL

or use this script uninstall-cups6-driver.cmd

set DRIVER_DIR=%WINDIR%\system32\spool\drivers\w32x86\3
set FILES=CUPS6.INI CUPS6.BPD CUPS6.PPD CUPSPS6.DLL CUPSUI6.DLL
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.
   )
)

References