Windows 7 - Quiet install HP LJ5100 in Win XP

Asked By alfm on 24-Oct-07 03:31 AM
I downed the newest Driver from HP.
I tried to install it via the recommended Script prndrvr.vbs
command line
cscript %windir%\system32\prndrvr.vbs -a -m "LJ5100 PCL6 21-7-9" -h
after some search on the net i found that non signed driver fail to install
that way cause they cannot be silenced
The Problem is that this is a signed driver !
Trying it old school :

rundll32 printui.dll,PrintUIEntry /ia /m "HP LaserJet 5100 PCL 6"  /f
D:\@@printerdriver\HP_LJ5100\hpc5100c.inf

This installs the driver just fine, BUT you can see a copy Box on the Screen.

When i add the quiet switch /q

rundll32 printui.dll,PrintUIEntry /q /ia /m "HP LaserJet 5100 PCL 6"  /f
D:\@@printerdriver\HP_LJ5100\hpc5100c.inf

then there is no installation. I need a solution for that, because
installing the driver on older machines will keep the progress bar window
just long enough on the screen for an user to stop it ! ( It´s not only
optical )

As far as I understand MS Policy on signed Drivers they should support the
OS in full ( which includes switches which worked also on older HP Driver ).

Has anybody a solution for that, or is this case at least work in progress
at HP or  MS ??




Alan Morris [MSFT] replied on 24-Oct-07 03:43 PM
normally HP signs the drivers.

Copy the CAT file to the installation point with the other files. Then try
the WMI interface.  If you modified the inf, it will no longer be signed

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
alfm replied on 25-Oct-07 09:35 AM
Hello,

actually you also answered another thread to the same question :

http://forums.techarena.in/showthread.php?t=615236

there you stated :

no unsigned drivers can be installed using prndrvr.vbs."

The guy there could also only install Non-silent.

The Driver is signed ( you can see if you add it via the start menu ( i´m
from Germany so the printer folder is Drucker und Faxgeräte ) manually ). I
just downed the driver from
ftp://ftp.hp.com/pub%2Fsoftlib/software8/COL1040/lj-1423-7/lj5100pcl6winvista2kxp2003.exe

Can you lend me a hand with the wmi interface ? Maybe with this third method
it works ( although if you go through prndrvr.vbs it also calls wmi with the
right param´s or am i mistaken ).

And i didn´t change anything in installation source = just run the
lj5100pcl6winvista2kxp2003.exe to unzip the file ( just to be double sure
that my external zipper does not mess with the files )

Any Help from your side would be appreciated, cause i got the feeling it
won´t work with any "newer" HP ( just look at the thread at techarena, the
guy tried a HP Color LaserJet 3800 PCL 6 driver and failed install it quiet  )
alfm replied on 26-Oct-07 03:28 AM
Just one addition

i run sigverf

hpc5100c.cat             08.03.07       3000                Signiert
Nicht zutreffend    Microsoft Windows Hardware Compatibility Publisher
hpc5100c.inf             07.03.07       2:5.00,2:5.1,2:5.2,2Signiert
oem20.CAT           Microsoft Windows Hardware Compatibility Publisher

so the driver are signed ..

alf maier
alfm replied on 26-Oct-07 03:29 AM
Just one addition :

i run sigverf

hpc5100c.cat             08.03.07       3000                Signiert
Nicht zutreffend    Microsoft Windows Hardware Compatibility Publisher
hpc5100c.inf             07.03.07       2:5.00,2:5.1,2:5.2,2Signiert
oem20.CAT           Microsoft Windows Hardware Compatibility Publisher

so the driver is signed

alf maier
Alan Morris [MSFT] replied on 26-Oct-07 08:29 PM
Uncab all the files from the driver and stick them into the same directory
with the inf and cat files

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
alfm replied on 29-Oct-07 06:58 AM
Hello,

that Idea put me on the right track at last. But you have to "find" out what
your language is and only uncab the fitting file. The Help Cab must be left
intact.

Example for German OS:

Find your Strings Section
[Strings.0407]      ;German
There you find you´re locale cab
LocaleCABFile ="P6i2deww.cab"

Remove all other locale cabs from the driver installation point. You´re
Driver Dir looks now like this:

hpc5100c.cab
hpc5100c.cat
hpc5100c.inf
hplj5100.cf_
p6i2deww.cab
hplj5100.cf_ is an compressed xml file for HP´s own Web Jet Admin Software.
uncab all files. Remove p6i2deww.cab & hpc5100c.cab. Keep hpzhl4wm.cab ( it
contains the multi language help files )!
Now the quiet install works.

One last word: After looking around the web again, there are quite some
people having problems with this type of .inf file. Wouldn´t it be wise to
either "fix" this behaviour or put up a KB Article.

Nevertheless your Answers did lead me straight to a solution.

Thanks a lot

Greets

Alf Maier
Alan Morris [MSFT] replied on 29-Oct-07 03:33 PM
Sehr gut..



--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.