Sign in to follow this  
Followers 0
vrocco

USB Printing Support

6 posts in this topic

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!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Good thought, but that didn't work. I also tried the HKLM\System\CurrentControlSet\Enum\USBPRINT key.

Anyone have any other ideas??

Share this post


Link to post
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.

Share this post


Link to post
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...

Share this post


Link to post
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
Sign in to follow this  
Followers 0