Deployment Solution

 View Only
  • 1.  Executing Script

    Posted Feb 03, 2009 06:57 AM
    Each time I run a script in a job in Altiris Deployment console 6.9 for example Setup.Exe it errors out executing Setup.Bat. I tried it another way trying to execute a reg file called Broadcom.Reg and again it failed executing Broadcom.bat.

    Any clues?


  • 2.  RE: Executing Script

    Posted Feb 03, 2009 07:04 AM
    .exe and .reg are not script files. You need to use a .bat or .vbs when using a Run Script job.


  • 3.  RE: Executing Script

    Posted Feb 03, 2009 07:11 AM
    The best way to handle those file types in regards to scripting would be to call the setup.exe file via the Run Script job. When you create the job, you would type in the path to the executable and the executable in the "Run this script" area, or place a BAT or VPS file that calls the executable in the Run the script from file. Do not place EXE or REG files in the Run the script from file area.

    To import a .reg file, you can script it this way: reg import file.reg /f



  • 4.  RE: Executing Script

    Posted Feb 03, 2009 07:40 AM
    So I cannot execute an EXE file from a share (wise Script) from within the command Run Script task in a job. I need to run a BAT or VBS? In the Run Script command I select the "Run the Script from file" option which points to the Setup.Exe file.

    Anthony, off topic but did you work for PeopleSoft in the past?


  • 5.  RE: Executing Script

    Posted Feb 03, 2009 07:52 AM
    Once you build a script into an exe its not really a script anymore so you would have to use a Distribute Software job. Like bhawver mentioned you can call the exe file via a Run Script job but you can place the exe directly in the Run Script file area because it won't be recognized as a script.


  • 6.  RE: Executing Script

    Posted Feb 03, 2009 08:02 AM
    Thanks for your assistance everyone. I changed my job to Distribute Software task and this executed my Setup.Exe as needed.

    Anthony, are you an ex-psfter?


  • 7.  RE: Executing Script

    Posted Feb 03, 2009 08:03 AM
    You're welcome.
    Nope, never worked there.