From 7760a8b0d241223e0210c52d17b950f64629d2a4 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 13 Dec 2025 13:37:04 -0800 Subject: Refine comments and documentation for ProductSearch type="exists" --- src/burn/engine/search.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/burn/engine/search.cpp') 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( hr = BVariantChangeType(&value, type); ExitOnFailure(hr, "Failed to change value type."); - // Alter value here after value has changed to numberic type. + // When testing if a product exists, replace the value with a numeric "true" or "false" + // based on the calculated install state. if (BURN_MSI_PRODUCT_SEARCH_TYPE_EXISTS == pSearch->MsiProductSearch.Type) { value.llValue = (value.llValue == INSTALLSTATE_ABSENT) ? 0 : 1; -- cgit v1.2.3-55-g6feb