Jump to content

Printer unattended installation : Wizard launched


Recommended Posts

I install my printer during COMMAND.TXT which is callling a .BAT. the printer is well installed (I can use it to print), but when Windows start, the Printer Installation Wizard is always launched, asking me to install a new printer.

My installation batch is:

TITLE Installing PrinterREM From https://engineering.purdue.edu/ECN/Resources/KnowledgeBase/Docs/20040216090320/index_html?pp=1
REM Make sure the ports are created START /WAIT REGEDIT /S %systemdrive%\Install\PrinterHP895Cxi.reg
ECHO Restart the spooler serviceNET STOP SPOOLERNET START SPOOLER
rem ECHO Remove existing printers with the same name so we don't get copy after copyrem START /WAIT rundll32 printui.dll,PrintUIEntry /dl /n "HP DeskJet 895Cxi" /q
ECHO Install HP DeskJet 895CxiSTART /WAIT rundll32 printui.dll,PrintUIEntry /if /b "HP DeskJet 895Cxi" /f "%SystemRoot%\inf\ntprint.inf" /r "USB001" /m "HP DeskJet 895Cxi" /Z
REM Define it as defaultSTART /WAIT rundll32 printui.dll,PrintUIEntry /y /n "HP DeskJet 895Cxi"
EXIT

and the file PrinterHP895Cxi.reg is an export of the changed registry values between before/after a successfull installation.

Does anybody have an idea where is coming this prolem ? Or how to do not have this wizard launched ?

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...