/build/static/layout/Breadcrumb_cap_w.png

Wise Package Studio Vbscript

The tool I am using is Wise Package Studio to build my MSI. My question is, how can I run a vbscript only if the user selects a certain feature and installs it and not run the vbscript if the users does not install that feature. For example if feature "Examples" is installed, then run the VBscript, otherwise don't run the script.

I have already written the vbscript that edits a text file already on the destination computer. Also, I want this script to only run during the initial install and not during uninstall. What would my if statement condition be for this Vbscript to run? Also, do I put this condition along with the vbscript in the Execute Immediate or Execute Deferred?

Thanks

0 Comments   [ + ] Show comments

Answers (4)

Posted by: itolutions 13 years ago
Purple Belt
2
Set "&Examples=3" condition for your sequnce. Custom action can be sequnced after "Cost Finalize" action.
Posted by: pjgeutjens 13 years ago
Red Belt
2
Ranjha,

You can condition your action on the feature actions for the installation.
Have a look at this MSDN site, what you're looking for is the &FeatureName= style of condition mentioned near the bottom.

Rgds,

PJ
Posted by: anonymous_9363 13 years ago
Red Belt
2
To additionally condition so that the CA only runs during installation and not uninstallation, you can use 'Installed'. You should also consider whether or not it should run during maintenance or upgrade scenarios. See this MSDN article for more properties

Also, any action which alters the system - as your does - should go in ExecuteDeferred.
Posted by: ranjha100 13 years ago
Yellow Belt
0
Thanks everybody for all your help, I got it working.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ