Difference between revisions of "Windows/CUPS printer driver"
Jump to navigation
Jump to search
(12 intermediate revisions by the same user not shown) | |||
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. |
||
# Open the |
# Open the Windows control panel and open Printer and Faxes. Choose <tt>File</tt>-><tt>Server Properties</tt> |
||
# Navigate to the [Drivers] Tab and click on [Add Printer] |
|||
# Select <tt>Local Printer</tt> then [Next >] |
|||
# Then click on [Have Disk...] and navigate to the previously extracted CUPS Driver. |
|||
# Leave at the default port and then hit [Next >] |
|||
# Choose the <tt>cups<span class="highlight"><Version></span>.inf</tt> file. |
|||
# When asked to choose a printer driver click on [Have Disk] |
|||
# |
# Finalize the driver installation accepting defaults. |
||
# When the file dialog appears choose the <tt>cups6.inf</tt> file. |
|||
=== CLI === |
|||
⚫ | |||
# Download the CUPS Windows Driver source package. Either the <tt>.bz2</tt> or the <tt>.gz</tt> will do. |
|||
# Give the printer a name or leave as is an continue with [Next >] |
|||
# Extract the content <tt>cups-windows-<span class="highlight"><Version></span>\i386\</tt> to a directory of choice. |
|||
# Continue until the end. However when installing Windows might tell you that the driver is not signed. Agree to install and finalize. |
|||
# In a command prompt issue the following command: |
|||
rundll32 printui.dll,PrintUIEntry /ia /m "CUPS Test Driver v<span class="highlight"><Version></span>" /f <span class="input"><FullPath></span>\cups<span class="highlight"><Version></span>.inf /l <span class="input"><Path2Files></span> |
|||
== Uninstall == |
== Uninstall == |
||
=== GUI === |
|||
# In the Control Panel open <tt>Printers and Faxes</tt> |
|||
# Goto <tt>File</tt> -> <tt>Server Properties</tt>. |
|||
⚫ | |||
=== Manually === |
|||
'''This method is not recommended!''' |
|||
# 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> |
||
# 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> |
||
or |
or run this script script: [[:File:Uninstall-cups6-driver.cmd|uninstall-cups6-driver.cmd]]<br /> |
||
set CUPSVER=6 |
set CUPSVER=6 |
||
set DRIVER_DIR=%WINDIR%\system32\spool\drivers\w32x86\3 |
set DRIVER_DIR=%WINDIR%\system32\spool\drivers\w32x86\3 |
||
Line 36: | Line 45: | ||
reg delete %REG_PATH% /f >nul 2>&1 |
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<span class="highlight"><Version></span>" /v 3 |
|||
== References == |
== References == |
||
* [http://cups.org/software.php CUPS download page] |
* [http://cups.org/software.php CUPS download page] |
||
* [http://www.vmaxx.net/techinfo/kb/manually_delete_print_drivers.htm How to uninstall printer drivers in Windows XP] |
* [http://www.vmaxx.net/techinfo/kb/manually_delete_print_drivers.htm How to uninstall printer drivers in Windows XP] |
||
* [http://support.microsoft.com/kb/314486/EN-US How to add Windows printers without user interaction] |
|||
[[Category:Windows]] |
[[Category:Windows]] |
||
[[Category:CUPS]] |
[[Category:CUPS]] |
||
[[Category:Printing]] |
[[Category:Printing]] |
||
[[Category:WIP]] |
Latest revision as of 13:28, 29 June 2012
Prerequisites
- Windows 2000 or higher.
- CUPS installation with a printer not using Foomatic filters.
Install
GUI
- 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 Windows control panel and open Printer and Faxes. Choose File->Server Properties
- Navigate to the [Drivers] Tab and click on [Add Printer]
- Then click on [Have Disk...] and navigate to the previously extracted CUPS Driver.
- Choose the cups<Version>.inf file.
- Finalize the driver installation accepting defaults.
CLI
- 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.
- In a command prompt issue the following command:
rundll32 printui.dll,PrintUIEntry /ia /m "CUPS Test Driver v<Version>" /f <FullPath>\cups<Version>.inf /l <Path2Files>
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
This method is not recommended!
- 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>
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