Sorry I should’ve been more clear.
I have some batch files that are “packaged” within our company. Each batch file (ex. Adobe Reader) checks if there is an older version or new version it uninstalls first, configures some settings to match the company policy, etc. The department that writes these batch files is different and they insist of writing them in batch files. Sometimes I can have as little as 10 different applications to call, sometimes as much as 30. I just put the example for 3 in this case.
So what i’m trying to do is create a “framework” that calls each of these batch files and waits to install it then updates progress bar with an elapsed time then goes to the next batch file until it finishes all apps in the array. If the elapsed time reaches 60 minutes, i want it to kill all the process and report it as “failed”. This is for the users, so that they can see what is going on while the installations are going.
I was able to get it working the way I want except the elapsed time freezes every time an installation starts. Doing some search, I came across to this link http://www.sapien.com/blog/2012/05/16/powershell-studio-creating-responsive-forms/, But I’m kind of stuck implementing what I’m trying to do.
I’m new to scriptblocks and stuff so it just doesn’t make sense to me how to call batch files and push it to the “job” so that it updates the progress bar.
I kind of figured out how to call the batch files, but since ( and I’m guess thats the reason) I didn’t use the “job” inside the script block, it just calls everything at once and that causes all the installations to fail because the first one is still in the progress of installing.
Hope this is a little clear.
Thanks for your help.