Jump to content

Printer Driver Installation by POST INSTALL


Klaus_DE

Recommended Posts

Hi,

I try to install a HP Printer Driver as part of a large POST Installation.

each machine has a couple (2-3) Printers on the local ports. That is the reason

to do that not with the unattend installation. :)

I try to install the driver with the command line

rundll32 printui.dll,PrintUIEntry /if /b "hp deskjet 960c series" /f "C:\WINDOWS\DRIVERS\hpf960k.inf" /r "lpt1:" /m "hp deskjet 960c series" /z

the installation for the driver works fine. but if I plug the printer on the machine the plug and play hardware detection found the printer and ask again for the driver. If I click on the cancel button the printers works fine.

How can I block, disable or whatever do that the dialog will not displayed

regards

Klaus

Link to comment
Share on other sites


Thanks for the command line to automate the installation of the driver. I was unaware of this easy way It runs perfectly for my laser printer connected on LPT1:

Is your printer connected via USB port ?

I have the same problem when i plug my USB Diskonkey the first time on a new installed computer.

I don't have to install any driver but the plug&play mechanism detect new hardware and writes some values in the registry in the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB branch.

You must make a regshot before and after plugging your new printer and create a new reg file that store the diff.

After you will have to import the reg file regedit /s %path%\PRTplug.reg in your unattended install.

Don't have tried it at this moment for my key due to being too busy

Feedback welcome if it works for you...

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
  • Recently Browsing   0 members

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