Jump to content

USB Printing Support


vrocco
 Share

Recommended Posts

When you plug in a usb printer, windows automatically installs usb printing support and creates the usb virtual printer ports.

My problem is this: I need to install a printer while loading systems without plugging the printer in. I can do this easily using a dllcall with the printui.dll as described here: http://www.windowsitpro.com/Articles/Artic...4539/14539.html.

However, if no usb printer has ever been plugged in, (these are fresh installs), then the USB001 port will not exist and I can't set up the printer to use that port.

Is there a way to install usb printing support without plugging in a usb printer and create the virtual printer ports??

Thanks!

Link to comment
Share on other sites

You can try copying the registry keys over from a machine that already has the printer installed. I don't know for sure if the port will effectivly be created by only the registry key's though.

Look here for the port lists:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports

and here for the pinter configuration:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers

Link to comment
Share on other sites

The driver is not so much the problem. It's that Windows doesn't actually create that virtual printer port until you plug the printer in. I am trying to find a way to create that port.

The port is installed by a driver...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...