[wpkg-users] How to run a batch-file with wpkg

Pendl Stefan stefan.pendl at haidlmair.at
Wed Oct 7 17:13:16 CEST 2009


>
> Am Mittwoch, 7. Oktober 2009 15:37:50 schrieb Hans-Werner Friedemann:
> > Where???
> >
> > Hans-Werner Friedemann schrieb:
> > > Hi @ all
> > >
> > > I´ve try to run a batch file with WPKG!
> > > There are a lot of Problems!!!
> > >
> > > First I copy the file into a local directory, then i want to start
> > > this file from this location.
> > >
> > > I get these error-message:
> > >
> > >
> > > "file://server5/WPKG/packages/PixiEasySwitch.xml". Das Zeichen '<'
> > > kann in einem Attributwert nicht verwendet werden.
> > >
> > > This is my Script:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <packages>
> > >
> > > <package
> > >        id="PixiEasySwitch"
> > >        name="PixiEasySwitch 1.1.0.0"
> > >        revision="1100"
> > >        priority="90">
> > >         <check type="file" condition="exists"
> path="C:\Dokumente und
> > > Einstellungen\All Users\Desktop\Pixi EasySwitch 1.1.lnk" />
> > >         <install cmd='%COMSPEC% /c copy /y /v
> > > "%SOFTWARE%\PixiEasySwitch\Pixi EasySwitch 1.1.exe" C:\pixi\' />
> > >         <install cmd='%COMSPEC% /c copy /y /v
> > > "%SOFTWARE%\PixiEasySwitch\Pixi EasySwitch 1.1.lnk" C:\pixi\' />
> > >         <install cmd='%COMSPEC% /c copy /y /v
> > > "%SOFTWARE%\PixiEasySwitch\CreateDesktopIcon.bat" C:\pixi\' />
> > >         <install cmd='%COMSPEC% /c
> "C:\pixi\CreateDesktopIcon.bat" />
> >
> > You have a syntax error in the above line.
>
> Match the quotes.

You may want to use Notepad++ and the XML Tools plugin to edit your package files, which includes a syntax checker.

BTW, you can use %ALLUSERSPROFILE% instead of "C:\Dokumente und Einstellungen\All Users" ;-)

---
Stefan



More information about the wpkg-users mailing list