Skip to content

Commit 03af613

Browse files
committed
- Addressing #1825 (related to #1430, PRs #1432 & 1433)
1 parent 415ff1b commit 03af613

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Source/src/WixSharp.UI/ManagedUI/Forms/FeatureItem.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,11 @@ public FeatureItem(Session session, string name)
133133
if (session.IsInstalling()
134134
&& conditionRow?["Condition"] != null
135135
&& session.EvaluateCondition(conditionRow["Condition"].ToString()) // If condition is true...
136-
&& Convert.ToInt32(conditionRow["Level"]) <= installLevel) // ...set state according to condition level.
137136
{
138-
defaultState = InstallState.Local;
137+
// ...set state according to condition level.
138+
defaultState = (Convert.ToInt32(conditionRow["Level"]) <= installLevel)
139+
? InstallState.Local
140+
: InstallState.Absent;
139141
}
140142

141143
CurrentState = DetectFeatureState(session, name);

0 commit comments

Comments
 (0)