Sequential Software Task, execution one after the other

Linne's picture

Hi,

for our Adobe 9 Reader-Rollout, I created a sequential software task.

FIRST TASK / PACKAGE: Kill the active adobe process
SECOND TASK / PACKAGE: Install Adobe Reader 9

The rollout went well. I scheduled a job and the computers downloaded the packages 1 day before they had to do the jobs. So the 2 tasks run directly in a row.

But I have a problem with new installed computers. Shortly after the altiris agent-install, the FIRST TASK PACKAGE is downloaded (contains no data) and executed. But the SECOND PACKAGE is still downloading for a lot of time, and so the SECOND TASK runs 1 or 2 hours after the FIRST TASK.

This can really be a problem. Is there no way to control, that ALL the sequential tasks run DIRECTLY one after the other?

Regards
Linne

Siddram's picture

Suggestion

I would like to suggest you that go for a VBScript.

In your Vbscript first Check for the Process and install the application.

If there is no Active Process found directly Install the application.

If there is Active Process found Then Kill the Process and Install the application.

With you can carry out both the Tasks at once.

Thanks
Sid

mmagruder's picture

How I do this

I do this by just making it different parts of the same job, for instance we do a lot of things with Run Script. so it would I would just add the run script followed by the second run script. this will make it obviously the same job, but will allow it to work right after another. if you want one part right after the next you just move it with the up and down arrow right above the add button.

Another way that I might do something like this is what I call it a stack, and I create a folder and name it whatever. I would then add both jobs to this folder, then drop whatever computer(s) to this and then it will follow one right after the next. if it takes one hour or six it in my experience has worked as I think you are asking.

Siddram's picture

Why I'm suggesting for a

Why I'm suggesting for a single script is downloading of second job may take a lot of time. when the first task is downloded it will execute and it will not wait for downloading of the second job.

If you combine both the task in one script; then there is no need to wait for anything, as same script will kill the process and will continue install the application.

Linne's picture

vbscript / batch-file

Heavy stuff. I never did anything with vbscript, but I make a lot of things with Batch-Files. This should work too!?!

So you mean, I should only create one package which starts a batch-file (after the complete download of the package) with the following commands:

1. Kill the process
2. Run the commandline for the msi/mst

Correct?
Linne

Siddram's picture

You can use batch file,

You can use batch file, here is the logic that you can use in your batch file

This is for your reference

https://www-secure.symantec.com/community/forum/63...

Thanks
Sid

Linne's picture

Thx, so next time I test it

Thx,

so next time I test it with a batch-file. But that are all things I'm not really happy with altiris. I have an expensive, complex tool, but need to write my batch-files like the years before. :-(

Linne