Difference between revisions of "Windows/CUPS printer driver"

From braindump
Jump to navigation Jump to search
Line 4: Line 4:
* CUPS installation with a printer '''not''' using Foomatic filters.
* CUPS installation with a printer '''not''' using Foomatic filters.
== Install ==
== Install ==
=== GUI ===
# Download the CUPS Windows Driver source package. Either the <tt>.bz2</tt> or the <tt>.gz</tt> will do.
# Download the CUPS Windows Driver source package. Either the <tt>.bz2</tt> or the <tt>.gz</tt> will do.
# Extract the content <tt>cups-windows-<span class="highlight"><Version></span>\i386\</tt> to a directory of choice.
# Extract the content <tt>cups-windows-<span class="highlight"><Version></span>\i386\</tt> to a directory of choice.
Line 11: Line 12:
# Choose the <tt>cups<span class="highlight"><Version></span>.inf</tt> file.
# Choose the <tt>cups<span class="highlight"><Version></span>.inf</tt> file.
# Finalize the driver installation accepting defaults.
# Finalize the driver installation accepting defaults.

=== CLI ===
# Download the CUPS Windows Driver source package. Either the <tt>.bz2</tt> or the <tt>.gz</tt> will do.
# Extract the content <tt>cups-windows-<span class="highlight"><Version></span>\i386\</tt> to a directory of choice.
# In a command prompt change to the directory where the installation files are located. And issue the following command:
rundll32 printui.dll,PrintUIEntry /ia /m "CUPS Test Driverv<span class="highlight"><Version></span>" /f cups<span class="highlight"><Version></span>.inf


== Uninstall ==
== Uninstall ==

Revision as of 00:38, 2 June 2012

Prerequisites

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

Install

GUI

  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 Windows control panel and open Printer and Faxes. Choose File->Server Properties
  4. Navigate to the [Drivers] Tab and click on [Add Printer]
  5. Then click on [Have Disk...] and navigate to the previously extracted CUPS Driver.
  6. Choose the cups<Version>.inf file.
  7. Finalize the driver installation accepting defaults.

CLI

  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. In a command prompt change to the directory where the installation files are located. And issue the following command:
rundll32 printui.dll,PrintUIEntry /ia /m "CUPS Test Driverv<Version>" /f cups<Version>.inf

Uninstall

GUI

  1. In the Control Panel open Printers and Faxes
  2. Goto File -> Server Properties.
  3. Navigate to the [Drivers] tab, select the CUPS Test Driver v<Version> and hit the [Remove] button.

Manually

This method is not recommended!

  1. Navigate to %WINDIR%\system32\spool\drivers\w32x86\3
  2. Delete these files CUPS6.INI CUPS6.BPD CUPS6.PPD CUPSPS6.DLL CUPSUI6.DLL
  3. Delte the registry key HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\CUPS Test Driver v<Version>

or run this script script: uninstall-cups6-driver.cmd

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

Note: After running the manual uninstall or the script a reboot may be required.

CLI

There is of course a more elegant way then the above mess.

rundll32 printui.dll,PrintUIEntry /dd /m "CUPS Test Driver v<Version>" /v 3

References