Tech Support > Microsoft Windows > Drivers > installing printer driver programmatically
installing printer driver programmatically
Posted by Mario on June 2nd, 2005


I want to install our printer programmatically using rundll32. It seems to
work fine except if we install it on a PC that never had a printer installed
before. I use the following line to install the driver and I always get the
message "Operation could not be completed". What's wrong? Is there another
way to install programatically that would be more reliable?

rundll32 printui.dll,PrintUIEntry /ia /K /m "Our Printer Model" /h "Windows
NT x86" /v 3 /f "thePrinter.inf" /l "C:\Setup"

Mario

Posted by Mario on June 3rd, 2005


I found out that the DLL I was trying to install (the printer Language
Monitor) was depending on an other DLL that was missing. I ran the software
depends on the language monitor DLL and I notice the missing dll. Hope this
might help other people who had similar problems.
--
Mario


"Mario" wrote: