[wpkg-users] executing a VB script

Tomasz Chmielewski mangoo at wpkg.org
Mon Mar 3 12:38:06 CET 2008


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



More information about the wpkg-users mailing list