Hi,
Using Altiris 7.1 Jobs and tasks, I have created a job that runs 3 tasks when the user logs on.
had to do it when the user logged on so no disruption to user.
1. Uninstalls an old program
2. Installs a new program
3. Creates a dir
Its quite quick but I dont want this to run at every logon.
Thought I could add a script that says if exist "filename" exit code 1
Dont seem to be able to get any other return code than 0.
I could perhaps do a findstr "string in old file"
Then if it finds the string it will return 0 and carry on the rest of the steps.
If the old software had already been uninstalled it wouldnt find the string and return 1
Is this a good way to go? Does anyone already do this and know a better way?
Steve.