SDA-4562 - Only execute custom action if allowed (#2167)

* SDA-4562 - Only run custom action if Privileged

* SDA-4562 - Use Impersonate
This commit is contained in:
Kiran Niranjan 2024-06-18 14:01:40 +05:30 committed by GitHub
parent eb5b0a46c8
commit 18c47be053
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,7 +176,8 @@ class Script
// 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