Jump to content

Silent install of printer included in WXP


StarWing

Recommended Posts

REG ADD %KEY%\021 /VE /D "Samsung ML-1210 Printer Driver" /f
REG ADD %KEY%\021 /V 1 /D "rundll32 printui.dll,PrintUIEntry /ia /m \"Samsung ML-1200 Series\" /h \"Intel\" /v \"Windows 2000 of XP\" /f %systemdrive%\drivers\005_SAMSUNG_PRINTER\SSGS1.INF" /f
REG ADD %KEY%\021 /V 2 /D "%systemdrive%\install\printer.vbs" /f

Printer.vbs

Set WshShell = WScript.CreateObject ("WScript.Shell")
WshShell.Run ("rundll32 printui.dll,PrintUIEntry /in /n\\studeerkamer\samsung /q")
WScript.Sleep 5000
WshShell.SendKeys "{ENTER}"
WScript.Quit

A dirty patch for the second one, cause the /q (quiet) function does not work (gives a warning)

This should work. If no printer is connected during installation you have to do it later :hello:

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