/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

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

Answers

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
Answered 07/06/2006 by: AngelD
Red Belt

Please log in to comment
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...
Answered 07/06/2006 by: revizor
Third Degree Blue Belt

Please log in to comment
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
Answered 07/06/2006 by: nheim
Tenth Degree Black Belt

Please log in to comment
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
Answered 07/06/2006 by: AngelD
Red Belt

Please log in to comment
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
Answered 07/06/2006 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
Thanks alot nheim, never used that one :)
Answered 07/06/2006 by: AngelD
Red Belt

Please log in to comment