/build/static/layout/Breadcrumb_cap_w.png

Condition

In Wise for Windows Installer, how do you block features from installing if a certain file is detected on the system?
I do not want to prevent the entire package from installing - just a few features...

0 Comments   [ + ] Show comments

Answers (6)

Posted by: AngelD 18 years ago
Red Belt
0
If you create the package your self then use the "Add Condition" (Wise Package Studio).

If it's a vendor package, then just use "system search" and change the feature Level to INSTALLLEVEL+1 if not wanted
Posted by: revizor 18 years ago
Third Degree Blue Belt
0
When is the condition evaluated? Which sequence entry should I look for - I think condition evaluation has been stripped out from the sequence tables of the package I'm working on...
Posted by: nheim 18 years ago
10th Degree Black Belt
0
Hi revizor,
i don't think so. It's not working directly with a condition. Instead you have play around with the Installlevels.
Please read it here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/installlevel.asp
Hope this points you in the right direction.
Regards, Nick
Posted by: AngelD 18 years ago
Red Belt
0
CA vbscript
Const msiInstallStateAbsent = 2
Dim Feature : Feature = "MyFeature"
Session.FeatureRequestState(Feature) = msiInstallStateAbsent

Add the CA directly before the MigrateFeatureStates action

If there are sub feature under MyFeature they will also get absent
Posted by: nheim 18 years ago
10th Degree Black Belt
0
Nice one AngelD.
Yet another, maybe more generic way would be, to use the Condition table. See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/condition_table.asp
and:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/feature_table.asp

Regards, Nick
Posted by: AngelD 18 years ago
Red Belt
0
Thanks alot nheim, never used that one :)
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