Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Altiris Scripting

Updated: 29 Jul 2010 | 4 comments
kevin_msu's picture
0 0 Votes
Login to vote

I'm relatively new to Altiris Streaming Composer and was wondering if anyone could help me out with this problem or at least point me in the right direction.  I've created a streaming package which requires a database to load before a program is exectued.  I've tried to use an executable script to start the database program after the installation completes but Altiris keeps saying "Failed to run the script. Please try accessing the application again later."  Is there a way to start a program before another program or is there another place I can look to see how to do this?

Thanks for all your help!

discussion Filed Under:

Comments

JoshBauer's picture
10
May
2009
0 Votes 0
Login to vote

RE: Altiris Scripting

Could you please supply the script you have so far that is causing the error?

Also what is the "Database" program you are using?

Josh

Brandon's picture
11
May
2009
0 Votes 0
Login to vote

To start a program just

To start a program just execute it in your script, like iexplore.exe. I am wondering if you need to incorporate START /WAIT into your execution because it is trying to jump to the next step before the previous step is done? Posting your script as mentioned will probably explain things more.

Stu Harris's picture
11
May
2009
0 Votes 0
Login to vote

Moved Post

I moved this out of the Deployment Solution forum and into Workspace Streaming.

Gene Kupfer's picture
16
May
2009
0 Votes 0
Login to vote

Execution Scripts

Here is a quick best practice for execution scripts.

  1. Test the script conventionally to make sure it is doing what you need.
  2. For any script that you want executed every time prior to the application launching, set it as a "Pre-Execution" script. You'll need to add some logic into the script to check if the service is already running, then exit if it is, or run the command line to start it if it isn't. The last line of the script should be "echo 1 > %1" without the quotes. This creates a result file that is required by the streaming process.
  3. If the script fails when streaming, go to the cache folder and look inside "ApplicationFiles". Each streamed package drops a folder here with its GUID as the folder name. This folder contains the scripts that are part of that package. They are named 1.bat, 2.bat, etc. These are your scripts, just renamed to this format. If you only have the one script you should only see 1.bat. Edit the file to verify you have the right script. Run this script and see if it works (at this point you are manually running the script against the screamed package). Also, by default the script runs as the system account. You can try settings the script to "Run with User Priviliges..." under the properties window for the script in Streaming Composer, (just make sure the user has appropriate rights).
  4. If #3 does not work, it will hopefully give you some clues as to what needs to be corrected in the script.
  5. If #3 does work, there may be a process running that is not letting the script execute. If this is the case please contact support so that someone can look at your client logs.

If you do require support but do not have a support contract, send me a private message here and I'll help you out.

Symantec EndPoint Virtualization Product Info Facebook