From 5cef6d5e7e14bbb7d5db45f6b28247e18654efdc Mon Sep 17 00:00:00 2001 From: Nir Bar Date: Mon, 15 Jul 2024 14:54:08 +0300 Subject: [PATCH] Fix detecting feature state --- .github/workflows/build.yml | 2 +- MsiZapEx/ProductInfo.cs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2eeb394..48a6c11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ on: version: description: 'Build & package version' required: true - default: 0.2.0 + default: 0.2.1 type: string jobs: Build: diff --git a/MsiZapEx/ProductInfo.cs b/MsiZapEx/ProductInfo.cs index cb0a97e..ac625e6 100644 --- a/MsiZapEx/ProductInfo.cs +++ b/MsiZapEx/ProductInfo.cs @@ -283,7 +283,11 @@ private void Read(string obfuscatedGuid, bool? machineScope) { if (!string.IsNullOrEmpty(f) && !f.Equals("@")) { - Features.Add(f); + string v = k.GetValue(f) as string; + if ((v != null) && ((v.Length == 0) || char.IsLetter(v[0]))) + { + Features.Add(f); + } } } }