1 of 1 people found this helpful
take a look at this document How to use Package Builder, chapter "SCRIPT ORDER OF EXECUTION", it could help... :-)
In the meantime I prefer AutoIt scripts, where I can decide the order and create dialogs/guis...
So basically, based upon how package builder works, FILE commands will always be run after IF statements. Is there a workaround to this besides learning a new scripting language like autoit?
in the last years I used PB as wrapper for my "old" DOS batches. I grab the needed files and start my batches with the package.
Now I do the same, but with much more possiblities with AutoIT, and I don't need the batches now.
If I want to copy files only, I use PB further, but if I need more checks of dependencies or user interaction at a specific time, I use AutoIT.
AutoIT is not so complicate (I think it's easier to understand as PB scripting :-)).
I started last year and used it like PB as a wrapper, because I want to send messages to LANDesk from my batches.
With PB it is not possible to send messages to LANDesk from a started batch. (PB can send, but not forward them...)
You can find some additional hints in LANDesk forum too...