[wpkg-users] To skip over a file not found

John Danks john.danks at gmail.com
Sat Sep 10 01:40:00 CEST 2011


Use "if exist" on the command line to check for existence, then run a command:

<remove  cmd='%COMSPEC% /C if exist
"%PROGRAMFILES%\PDFCreator\unins000.exe"
"%PROGRAMFILES%\PDFCreator\unins000.exe" /VERYSILENT' />

On Fri, Sep 9, 2011 at 4:18 PM, Shier, Jon <JonS at mtrx.com> wrote:
> Is there anything in the package I can specify to make wpkg keep going and skip over errors? Like I have one package that I am using to uninstall software, but one some computers that file many to be there, Instead of it dying I would like it to continue the next command. My error that I get is "The system cannot find the file specified". I tried <exit code='any' />, but that didn't work.
>
> ~Jon
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
>



More information about the wpkg-users mailing list