How to delay Task 2 in scripting?
Task 1)
I need a delay until this script is completely finished. Wait for completion is not working.
2) Install software after task 1 is finished.
I am trying to run an Office 2010 uninstaller but Office 2013 install runs at the same time.
Directory: $(KACE_SYS_DIR)File: cscript.exeParameters: $(KACE_DEPENDENCY_DIR)\yourscript.vbs
2) Install software after task 1 is finished.
I am trying to run an Office 2010 uninstaller but Office 2013 install runs at the same time.
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
rockhead44
9 years ago
Can you run it via a batch file? If so, you could have TIMEOUT be the first line of the script and delay for however many seconds you think would cover the necessary time.
Posted by:
jknox
9 years ago
Part of the problem is that given your scenario, the K1000 doesn't have any way to know that the .vbs file completed. It really only knows that the .vbs file was called successfully.
The best way to do it in my opinion would be to modify the .vbs that uninstalls 2010 to call the 2013 install when it's complete.
The .bat idea would be one way to delay the task. Put in a timeout, then call the Office 2013 install.
If you use the .bat, I'd suggest having the second task verify that Office 2010 is uninstalled before it runs the 2013 task.
The best way to do it in my opinion would be to modify the .vbs that uninstalls 2010 to call the 2013 install when it's complete.
The .bat idea would be one way to delay the task. Put in a timeout, then call the Office 2013 install.
If you use the .bat, I'd suggest having the second task verify that Office 2010 is uninstalled before it runs the 2013 task.
Comments:
-
Do you have an idea of something that Kace does know completes successfully? If so I can just run whatever that thing is to stall for time. - itsamurai 9 years ago