Printer Driver Plug and play How to Deply
Printer driver installation on 750 clients.
What is the right way to install printer drivers for a Local HP LaserJet 1015 LPT1:. Parallel printer.
I have chosen a printer with parallel port because I think it is easier to install than USB.
About my environment:
Pure Windows inviroment
Windows server 2000 - 2003, AD, software and rights are distributed by GPO
New computers are installed from RIS,
All my 750 clients are running Windows XP professional.
None of my users have administrative rights.
I have tried to make a installation in several ways
The original CD included by HP have a guide to make a silent installation but this installation can only run if the printer is already attached to the computer.
That is really a problem I would prefer the driver to be installed with out the printer is present and after the installation, I don’t need the New hardware is found wizard, when the printer is attached
None of my Users have Administrative rights.
The Printing System Installer Customization Wizard enables an administrator to customize the printing system installer that comes with the product by presetting the options for installation in a response file. The customized installer is then ready for silent, unattended installation by end users.
In this Logon Script I try to install the Printer if it is not already installed.
Dim oWSH ' Object for accessing Wscript Objects
Set oWSH = WScript.CreateObject("WScript.Shell")
dim svar
strComputer = "."
svar = 10
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer")
For Each objPrinter in colInstalledPrinters
objPrinter.name = objPrinter.name
IF Instr(1,Ucase(objprinter.name),UCase("HP LaserJet 1010 Series Driver"),1)Then
svar = 0
End If
If svar = 10 Then
oWSH.Run "\\bdo.dk\dfs$\packages\printers\hp1015\setup.exe /S /L1030 /v""/qb! RESPONSE=response.ini""", 1, true
End If
Next
It works but the printer must be atached during install. [:@]
I have also tried by snapshot, I have InstallShield Adminstudio and Wise Package studio.
I would like to hear from others, what is your experience with this.
Thanks
Sweede
Denmark
What is the right way to install printer drivers for a Local HP LaserJet 1015 LPT1:. Parallel printer.
I have chosen a printer with parallel port because I think it is easier to install than USB.
About my environment:
Pure Windows inviroment
Windows server 2000 - 2003, AD, software and rights are distributed by GPO
New computers are installed from RIS,
All my 750 clients are running Windows XP professional.
None of my users have administrative rights.
I have tried to make a installation in several ways
The original CD included by HP have a guide to make a silent installation but this installation can only run if the printer is already attached to the computer.
That is really a problem I would prefer the driver to be installed with out the printer is present and after the installation, I don’t need the New hardware is found wizard, when the printer is attached
None of my Users have Administrative rights.
The Printing System Installer Customization Wizard enables an administrator to customize the printing system installer that comes with the product by presetting the options for installation in a response file. The customized installer is then ready for silent, unattended installation by end users.
In this Logon Script I try to install the Printer if it is not already installed.
Dim oWSH ' Object for accessing Wscript Objects
Set oWSH = WScript.CreateObject("WScript.Shell")
dim svar
strComputer = "."
svar = 10
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer")
For Each objPrinter in colInstalledPrinters
objPrinter.name = objPrinter.name
IF Instr(1,Ucase(objprinter.name),UCase("HP LaserJet 1010 Series Driver"),1)Then
svar = 0
End If
If svar = 10 Then
oWSH.Run "\\bdo.dk\dfs$\packages\printers\hp1015\setup.exe /S /L1030 /v""/qb! RESPONSE=response.ini""", 1, true
End If
Next
It works but the printer must be atached during install. [:@]
I have also tried by snapshot, I have InstallShield Adminstudio and Wise Package studio.
I would like to hear from others, what is your experience with this.
Thanks
Sweede
Denmark
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
Walter Schulz
20 years ago
Hello, Sweede!
I would prefer not to use the setup routine but the INF-based PCL 5e drivers available at www.hp.com.
This is my way:
I would create a package with our distribution tool (local admin bypassing the user restrictions). The package will contain the INF based drivers (2,25 MB) and a command like this:
rundll32 printui.dll,PrintUIEntry /if /f "<path>\hp1015m5.inf" /r "lpt1:" /m "HP LaserJet 1015 PCL 5e"
Ciao, Walter
PS: Well, actually we are not using scripts for local printer deployment. A printer will be delivered to the user by support staff who will use a local admin account to log on and then connect the printer to the computer. Same person is responsible of filling some forms for lifecycle management.
The person will not have to do anything else (no driver installation) because there is a central depot for drivers on the net. The computer was installed with an extension to the OEMpnpDriversPath. We manipulate the INF to manage a structured driver library. The path points to a single net directory where the INF and the driver directory structure is located. Works fine for us. After connecting the printer the computer will find a new device, the computer will search for the corresponding INF and install the driver.
I would prefer not to use the setup routine but the INF-based PCL 5e drivers available at www.hp.com.
This is my way:
I would create a package with our distribution tool (local admin bypassing the user restrictions). The package will contain the INF based drivers (2,25 MB) and a command like this:
rundll32 printui.dll,PrintUIEntry /if /f "<path>\hp1015m5.inf" /r "lpt1:" /m "HP LaserJet 1015 PCL 5e"
Ciao, Walter
PS: Well, actually we are not using scripts for local printer deployment. A printer will be delivered to the user by support staff who will use a local admin account to log on and then connect the printer to the computer. Same person is responsible of filling some forms for lifecycle management.
The person will not have to do anything else (no driver installation) because there is a central depot for drivers on the net. The computer was installed with an extension to the OEMpnpDriversPath. We manipulate the INF to manage a structured driver library. The path points to a single net directory where the INF and the driver directory structure is located. Works fine for us. After connecting the printer the computer will find a new device, the computer will search for the corresponding INF and install the driver.
Posted by:
Sweede
20 years ago
Hello, Walter
Thank You for responding
I have made a package with install Shield it contains a directory with the drivers, and for now, one custom action running the following:
rundll32 printui.dll,PrintUIEntry /if /f "C:\lj1015\hp1015m5.inf" /r "lpt1:" /m "hp LaserJet 1015 PCL 5e" /n "hp LaserJet 1015"
This works fine, but still I get the "New hardware found wizzard" [:'(]
And it comes back after each reboot
None of my users have or will get Administrative rights so Im not [:D] just yet
I could stop this pnp Service, perhaps but in some cases its used when inserting USB Keys.
How to prent "New hardware found wizzard" from poping up?
I think I need to Insert the "HardwareID" some where [&o]
Any suggestions!
Sweede
Denmark
Thank You for responding
I have made a package with install Shield it contains a directory with the drivers, and for now, one custom action running the following:
rundll32 printui.dll,PrintUIEntry /if /f "C:\lj1015\hp1015m5.inf" /r "lpt1:" /m "hp LaserJet 1015 PCL 5e" /n "hp LaserJet 1015"
This works fine, but still I get the "New hardware found wizzard" [:'(]
And it comes back after each reboot
None of my users have or will get Administrative rights so Im not [:D] just yet
I could stop this pnp Service, perhaps but in some cases its used when inserting USB Keys.
How to prent "New hardware found wizzard" from poping up?
I think I need to Insert the "HardwareID" some where [&o]
Any suggestions!
Sweede
Denmark
Posted by:
Walter Schulz
20 years ago
ORIGINAL: Sweede
This works fine, but still I get the "New hardware found wizzard" [:'(]
And it comes back after each reboot
For this very reason we're using our support staff for delivery.
The only solution which comes to my mind is DEVCON.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ddtools/hh/ddtools/devcon_0nzn.asp
This utility is able to manage devices (add, delete, modify). But I'm not quite sure if it is able to be developed together with the printer driver installation (good) or after attaching the printer to the parallel port (bad).
DEVCON is available here:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272
Ciao, Walter
Posted by:
Sweede
20 years ago
I know of DEVCON i have tried it before, used some time with it trying to install Logitech Wheelmouse and USB connector.
I have have just come across this new book from Install shield where it is told how to
Install a Plug and Play driver with 7 custom Action inside one MSI.
Practical Windows Installer Solutions for Building InstallShield Setup Applications
By Bob Baker (ISBN 0971570833)
http://www.installshield.com/news/newsletter/0312-articles/plug.asp?ISCS12NL=
I look forward to read this book, and i will return to this forum when i get the hang of it.
Sweede [:D]
Denmark
I have have just come across this new book from Install shield where it is told how to
Install a Plug and Play driver with 7 custom Action inside one MSI.
Practical Windows Installer Solutions for Building InstallShield Setup Applications
By Bob Baker (ISBN 0971570833)
http://www.installshield.com/news/newsletter/0312-articles/plug.asp?ISCS12NL=
I look forward to read this book, and i will return to this forum when i get the hang of it.
Sweede [:D]
Denmark
Posted by:
snooper47374
20 years ago
Posted by:
Moeki
18 years ago
Posted by:
Martin.Appel
18 years ago
There are commercially available SW distribution solutions on the market that can handle printer driver installations nicely and in a silent way. Some support the Installation of PnP Devices as well.
Our NetInstall is one of them... [;)]
Our NetInstall is one of them... [;)]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.