MSFN Forum: How to creat Printer driver slient installation? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to creat Printer driver slient installation? Rate Topic: -----

#1 User is offline   ncikey01 

  • Group: Members
  • Posts: 1
  • Joined: 08-November 05

  Posted 09 November 2005 - 04:59 AM

How to creat printer driver to be slient installation. No ask which model ; ip address and click next step.

Which tool I need use?


#2 User is offline   The Glimmerman 

  • Member
  • PipPip
  • Group: Members
  • Posts: 134
  • Joined: 03-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 November 2005 - 08:09 AM

If its still needed?

CMD.EXE /C RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "Canon PIXMA iP4000" /f "%SYSTEMDRIVE%\Drivers\011_Others\Canon PIXMA iP4000\ip4000.inf" /r "LPT1:" /m "Canon PIXMA iP4000" /q /u


If u use a IP Port. Make sure that the port is added before u execute this.

VbScript
strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set objNewPort = objWMIService.Get("Win32_TCPIPPrinterPort").SpawnInstance_

'Install TCP/IP Port :

	objNewPort.Name = "IP_192.168.0.5"
	objNewPort.Protocol = 2
	objNewPort.HostAddress = "192.168.0.5"
	objNewPort.PortNumber = "515"
	objNewPort.Queue = "LPT1_PASSTHRU"
	objNewPort.SNMPCommunity = "public"
	objNewPort.SNMPEnabled = False
	objNewPort.Put_

'Stop Spooler Service

	Set colServiceList = objWMIService.ExecQuery _
		("Select * from Win32_Service where Name='Spooler'")
	For Each objService In colServiceList 
	errReturn = objService.StopService()
	WScript.Sleep 1000
	Next

'Start Spooler Service

	For Each objService In colServiceList
	errReturn = objService.StartService()
	WScript.Sleep 5000
	Next
	
	WSHShell.run ("CMD.EXE /C RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b ""HP Deskjet 990CXi"" /f ""%WINDIR%\inf\ntprint.inf"" /r ""IP_192.168.0.5"" /m ""hp deskjet 990c"" /q /u"),0,true

	Set colInstalledPrinters = objWMIService.ExecQuery _
		("Select * from Win32_Printer Where Name = 'HP DeskJet 990CXi'")
	
	For Each objPrinter in colInstalledPrinters
	objPrinter.SetDefaultPrinter()
	WSHShell.run ("CMD.EXE /C RUNDLL32 PRINTUI.DLL,PrintUIEntry /Sr /n ""HP Deskjet 990CXi"" /a ""%SYSTEMDRIVE%\TEMP\DESKJET990CXi.DAT"" m p"),0,true
	Next


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy