aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2025-12-13 13:37:04 -0800
committerRob Mensching <rob@firegiant.com>2025-12-13 14:23:15 -0800
commit7760a8b0d241223e0210c52d17b950f64629d2a4 (patch)
tree59cfed5e299507ad940833e8c3d8cc49e0e05a4c /src
parent56072818e7f18611ba7d5e717a6b3dafc952f440 (diff)
downloadwix-7760a8b0d241223e0210c52d17b950f64629d2a4.tar.gz
wix-7760a8b0d241223e0210c52d17b950f64629d2a4.tar.bz2
wix-7760a8b0d241223e0210c52d17b950f64629d2a4.zip
Refine comments and documentation for ProductSearch type="exists"
Diffstat (limited to 'src')
-rw-r--r--src/burn/engine/search.cpp3
-rw-r--r--src/xsd/util.xsd5
2 files changed, 6 insertions, 2 deletions
diff --git a/src/burn/engine/search.cpp b/src/burn/engine/search.cpp
index 626ffb28..1f128e95 100644
--- a/src/burn/engine/search.cpp
+++ b/src/burn/engine/search.cpp
@@ -1252,7 +1252,8 @@ static HRESULT MsiProductSearch(
1252 hr = BVariantChangeType(&value, type); 1252 hr = BVariantChangeType(&value, type);
1253 ExitOnFailure(hr, "Failed to change value type."); 1253 ExitOnFailure(hr, "Failed to change value type.");
1254 1254
1255 // Alter value here after value has changed to numberic type. 1255 // When testing if a product exists, replace the value with a numeric "true" or "false"
1256 // based on the calculated install state.
1256 if (BURN_MSI_PRODUCT_SEARCH_TYPE_EXISTS == pSearch->MsiProductSearch.Type) 1257 if (BURN_MSI_PRODUCT_SEARCH_TYPE_EXISTS == pSearch->MsiProductSearch.Type)
1257 { 1258 {
1258 value.llValue = (value.llValue == INSTALLSTATE_ABSENT) ? 0 : 1; 1259 value.llValue = (value.llValue == INSTALLSTATE_ABSENT) ? 0 : 1;
diff --git a/src/xsd/util.xsd b/src/xsd/util.xsd
index ef304762..99a1b58c 100644
--- a/src/xsd/util.xsd
+++ b/src/xsd/util.xsd
@@ -1346,7 +1346,10 @@
1346 </xs:enumeration> 1346 </xs:enumeration>
1347 <xs:enumeration value="exists"> 1347 <xs:enumeration value="exists">
1348 <xs:annotation> 1348 <xs:annotation>
1349 <xs:documentation>Saves true if a matching product entry is found; false otherwise.</xs:documentation> 1349 <xs:documentation>
1350 [WiX v7 and later]
1351 Saves true if a matching product entry is found (non-absent); false otherwise.
1352 </xs:documentation>
1350 </xs:annotation> 1353 </xs:annotation>
1351 </xs:enumeration> 1354 </xs:enumeration>
1352 </xs:restriction> 1355 </xs:restriction>