From 18c47be053b667ffb54e5dc6e0a348052fd35150 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Tue, 18 Jun 2024 14:01:40 +0530 Subject: [PATCH] SDA-4562 - Only execute custom action if allowed (#2167) * SDA-4562 - Only run custom action if Privileged * SDA-4562 - Use Impersonate --- installer/win/WixSharpInstaller/Symphony.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/win/WixSharpInstaller/Symphony.cs b/installer/win/WixSharpInstaller/Symphony.cs index ac57f39ad..3b76b3371 100644 --- a/installer/win/WixSharpInstaller/Symphony.cs +++ b/installer/win/WixSharpInstaller/Symphony.cs @@ -176,7 +176,8 @@ static public void Main(string[] args) // This custom action is to remove any registry entries from HKEY_CURRENT_USER if exists new ManagedAction(CustomActions.CleanNSISRegistryForCurrentUser, Return.check, When.Before, Step.LaunchConditions, Condition.Always ) { - UsesProperties = "INSTALLDIR" + UsesProperties = "INSTALLDIR", + Impersonate = true }, // InstallVariant