vrocco Posted January 17, 2008 Share Posted January 17, 2008 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 More sharing options...
evilertoaster Posted January 17, 2008 Share Posted January 17, 2008 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 More sharing options...
vrocco Posted January 18, 2008 Author Share Posted January 18, 2008 Good thought, but that didn't work. I also tried the HKLM\System\CurrentControlSet\Enum\USBPRINT key. Anyone have any other ideas?? Link to comment Share on other sites More sharing options...
weaponx Posted January 18, 2008 Share Posted January 18, 2008 There are programs out there that can gather installed drivers on your machine and compile them into an EXE.http://www.majorgeeks.com/downloads28.html Link to comment Share on other sites More sharing options...
vrocco Posted January 18, 2008 Author Share Posted January 18, 2008 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. Link to comment Share on other sites More sharing options...
weaponx Posted January 18, 2008 Share Posted January 18, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now