Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Adding a printer


3 replies to this topic

shy_9

shy_9
  • Members
  • 2 posts

Posted 07 August 2003 - 18:15

Hello,

I need to create a installer that can make a printer connection for me (Start > Settings>Printers>Add Printer )
The drivers are already installed. What I need to do to create a new printer port that uses those drivers. Can anyone help me?

Thanks

Neo

Neo
  • Members
  • 48 posts

Posted 08 August 2003 - 07:57

Hi

You can use the prnadmin.dll included in the Windows 2000 resource kit. Follow this link for a completely documented VBScript to install printer programmatically using prnadmin.dll.

http://www.jsifaq.co...5300/rh5379.htm

Regards

Neo.

shy_9

shy_9
  • Members
  • 2 posts

Posted 11 August 2003 - 16:57

Thanks Neo!

That worked great. Just wondering, is there another method that is not platform dependent? or would i have to write custom code for each operating system?

Thanks,



ewwallace

ewwallace
  • Members
  • 20 posts

Posted 06 February 2004 - 16:19

This can be done with simple WSH/VBScript...

I have an example download (with explanation) at http://www.ewall.org...ple_Script.html or attached here

Hope that helps...

Attached Files