Hello friends,

I want clear idea in using scripting and custom action. I am stuck with the questions
How can I use wise script, java sript and VB script in MSI script screen? when?

Thank you.

0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer


Hi San

You use custom actions whenever you want the installation to do something extra that isn't integrated in the msi tables (like executing files after the installation or whatever).
One of the easiest ways (it depends on your ability of scripting) is to build a Script in WiseScript Editor. You can then compile it into a selfexecuting .exe file and insert it into your .msi as Custom Action 'Execute Program from Installation' for example. (Tip: With /s it's executed in silent mode).
Or if you have VB or Java Scripts that need to be run during installation include them appropriately.

The place, where you have to put the Script exection, varies based on the right time the Script needs to be executed and if the Script execution needs administrative rights or not. If yes, choose the "Execute Deferred" tab and in the properties tab of your Custom Action choose "Deferred Execution - System Context".

Don't forget to set the correct Condition on your Custom Action, so that it will only be executed during Installation and Repair and not at Uninstallation (for example). And add a separate Custom Action to be run at Uninstallation to revert the action back (if needed).

Hope this helps


Answered 05/04/2006 by: rpfenninger
Second Degree Green Belt

Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


i have to make an MSI to install a particular application
suppose there are two features A & B
if i need to install either one of them i want the common files folder to be in respective feature directory
and if i install both of them that is complete installation then their should b eonly on ecommon folder and that should be installed in the application name directory i.e. if i have an aaplication named test,the directories should be C:/Program Files/Test/ and like wise A , B & commomn should be inside test directory in case of compleet installation
and in case of custom i want the directories A & B inside this to contain the common folder individually.
Answered 09/27/2006 by: ritika
Yellow Belt

Please log in to comment
Help. In a similar vein, how to I pass a value back to the calling msi?
I run a CA to search for a file, depending on the version I will either delete it & continue the install or abort the install. If I'm going to abort I need to set a variable in the wse & have it returned to the msi. I can't figure how to do it.

All help appreciated
Answered 10/27/2006 by: drandolph
Senior Yellow Belt

Please log in to comment
Hi friends,

I want to know what is wise script, how can we use it with other scripts.
Is there any editor for that.Do the script have any syntax
Any one of you please give an idea about wise script

Answered 04/01/2008 by: sanbal
Yellow Belt

Please log in to comment
If you don't already have the product, look online at altiris.com (maybe now symantec.com). There's probably a trial version you can play around with (may be part of Wise Package Studio).

It's basically a non-MSI installer tool. Good for one-offs or custom actions for things that MSIs can't do or can't do easily. Microsoft uses a form of WiseScript in its SMS installer, or so I"ve heard.
Answered 04/01/2008 by: aogilmor
Ninth Degree Black Belt

Please log in to comment