Tomasz, thank you for the quick reply. So if I understand you correctly: 1. wpkg package executes script which creates the IP ports and adds corresponding printers. 2. a user logon script adds the printers again to the previously created ports but only for each user.
I can understand your logic but if I logon to the workstation as a local administrator and execute the script by hand it makes the IP ports and printers on the system and then all users can use them without a logon script making them everytime. Why should I run it in a logon script? At the moment thoug my problem is as if WPKG does not actually execute the VB script. I have a message in the script which tells you how many new printers have been created and this does not appear even though event viewer says the execution was successful. When I execute by hand it says '11 new printers created' or how ever many new ones are in the 'add' file. I have tested by creating a package which is just a msgbox vbscript and that displayed 'hello world', dont know why mine doesn't. Thanks Paul > -----Original Message----- > From: Tomasz Chmielewski [mailto:[EMAIL PROTECTED] > Sent: Monday 03 March 2008 11:38 > To: Paul McGrath > Cc: wpkg-users@lists.wpkg.org > Subject: Re: [wpkg-users] executing a VB script > > Paul McGrath schrieb: > > Hi, > > I have a package that executes a VB script which installs > printers. > > Event viewer says 'Execution of ipprinters successful' but > none of the > > printers have been added. If I run the script from CMD or by double > > clicking on it then it completes successfully. What am I > doing wrong? > > > > <package > > id="ipprinters" > > name="ipprinters" > > revision="2" > > priority="0" > > execute="always"> > > <install cmd='cscript.exe > > %SOFTWARE%\printers\admin\ipprnadd.vbs' /> > > </package> > > If I'm not wrong, you have to add a printer twice: system-wide (as > Administrator or SYSTEM) and for the user (i.e., in his/her > logon script). > > See also: > > http://wpkg.org/Printer_configuration > > > -- > Tomasz Chmielewski > ------------------------------------------------------------------------- Do you use WPKG? Tell us how! >> http://wpkg.org/Testimonials _______________________________________________ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users