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
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)
Please log in to answer
Posted by:
itolutions
13 years ago
Posted by:
pjgeutjens
13 years ago
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
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
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.
Also, any action which alters the system - as your does - should go in ExecuteDeferred.
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.