We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 415ff1b commit 03af613Copy full SHA for 03af613
1 file changed
Source/src/WixSharp.UI/ManagedUI/Forms/FeatureItem.cs
@@ -133,9 +133,11 @@ public FeatureItem(Session session, string name)
133
if (session.IsInstalling()
134
&& conditionRow?["Condition"] != null
135
&& session.EvaluateCondition(conditionRow["Condition"].ToString()) // If condition is true...
136
- && Convert.ToInt32(conditionRow["Level"]) <= installLevel) // ...set state according to condition level.
137
{
138
- defaultState = InstallState.Local;
+ // ...set state according to condition level.
+ defaultState = (Convert.ToInt32(conditionRow["Level"]) <= installLevel)
139
+ ? InstallState.Local
140
+ : InstallState.Absent;
141
}
142
143
CurrentState = DetectFeatureState(session, name);
0 commit comments