Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Wise Script to Install an Application with Progress Bar and an Exit Code to Altiris

Updated: 22 Jul 2009 | 7 comments
Tillu1981's picture
+14 14 Votes
Login to vote

This article is intended to those, who are new to Wise scripting and who are working on Software Delivery in Packaged applications.

There are already some articles on Symantec Connect, talking about installation wrapper scripts. Recently Eshwar has posted a vbscript wrapper with Shutdown timer. Keeping in mind that script...

I am publishing this generic installation script which will return EXIT CODES to Altiris depending upon the installation result. This is fully developed in Wise.

This Wise script will do the following tasks:

  1. Check for the source files.
  2. Execute the application in silent/near silent mode.
  3. Displays a PROGRESS BARduring silent install.
  4. Return EXIT CODE 0/3010 for successful installation and 1 for failure.

I have created a sample template "Install_Application_Version". You can also modify this script according to your needs.

I have also attached "Adobe Photoshop CS4 installation" script template. This script can be used to install all Adobe CS4 products, without modifying the script content.

Note: If you want to make use of this script without modifying, you have to keep the script out of "Adobe CS4" source folder and keep "install.xml" inside the source folder. This script will check for "...\Adobe CS4\install.xml" file and "...\Adobe CS4\Setup.exe" file before executing Setup.exe.

The script will install Adobe Photoshop CS4 in silent mode and display the following progress bar to the user:

imagebrowser image

If the installation fails at any point during the install, script will display a message box with the error number. Check the following screenshot:

imagebrowser image

Note: Attached ZIP file has two wise scripts:

  1. Adobe_PhotoShop_CS4.wse [For Adobe Photoshop CS4 install]
  2. Install_Application_Version.wse [General install script template]

Let me know the feedback in the form of voting/comments. I appreciate your time on this.

Cheers,
Tillu

Comments

Eshwar's picture
22
Jul
2009
5 Votes +3
Login to vote

nice article

nice article

Thanks,
Eshwar

Eshwar's picture
23
Jul
2009
5 Votes +5
Login to vote

I can see a lot discussions

I can see a lot discussions on implementation of EXIT CODES from within the wise script.
Is there any way to pass a variable to Exit Installation?

Thanks,
Eshwar

AppPkgServices's picture
24
Jul
2009
5 Votes +3
Login to vote

this is very useful. thank

this is very useful. thank you.

scorpiodeepsagar@gmail.com's picture
24
Jul
2009
7 Votes +5
Login to vote

good script. i will give it a

good script. i will give it a try

thanks,
PV

AOL Guy's picture
12
Aug
2009
1 Vote +1
Login to vote

Nice article. Also i see an

Nice article. Also i see an idea

roberts_ja's picture
03
Oct
2009
1 Vote +1
Login to vote

Informative and useful - Thanks

Very useful  - thanks for posting examples

WiseUser's picture
26
Oct
2009
0 Votes 0
Login to vote

a good idea and a well

a good idea and a well written script

Wiseuser
Altiris Certified Professional