aboutsummaryrefslogtreecommitdiff
path: root/src/burn/engine/search.cpp
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/burn/engine/search.cpp
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/burn/engine/search.cpp')
-rw-r--r--src/burn/engine/search.cpp3
1 files changed, 2 insertions, 1 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;