How can I use wisescript in MSI script?
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.
San
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.
San
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
rpfenninger
18 years ago
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
Cheers
Roland
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
Cheers
Roland
Posted by:
ritika
18 years ago
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.
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.
Posted by:
drandolph
18 years ago
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
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
Posted by:
sanbal
16 years ago
Posted by:
aogilmor
16 years ago
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.
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.