From 525b006b66fc2e17e3f33c64b3a9f6316fea3b47 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 14 Aug 2024 17:32:42 -0700 Subject: [PATCH] WiX: correct the install conditions This is a surprising interaction between variable types. Variables set at the command line are set as string types. The variables in the bundle are numeric (either `1` or `0` to match the semantics of check boxes). The original install condition (`InstallCondition="OptionsInstall.*"` would evaluate the condition as a string, where _any_ value would evaluate as `true`. To force a comparison, where Burn will coerce values more like expectations, perform an explicit equality check. --- platforms/Windows/bundle/installer.wxs | 20 ++++++++++---------- platforms/Windows/readme.md | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/platforms/Windows/bundle/installer.wxs b/platforms/Windows/bundle/installer.wxs index 3f313782..5da5f34f 100644 --- a/platforms/Windows/bundle/installer.wxs +++ b/platforms/Windows/bundle/installer.wxs @@ -77,21 +77,21 @@ @@ -99,7 +99,7 @@ @@ -108,7 +108,7 @@ @@ -117,7 +117,7 @@ @@ -127,7 +127,7 @@ @@ -136,7 +136,7 @@ @@ -145,7 +145,7 @@ @@ -154,7 +154,7 @@ diff --git a/platforms/Windows/readme.md b/platforms/Windows/readme.md index 683bdb00..664206f7 100644 --- a/platforms/Windows/readme.md +++ b/platforms/Windows/readme.md @@ -60,7 +60,7 @@ The variables are used in `installer.wxs` bundle authoring to control the instal ```xml