From c4c25ad85bf58ce76833d7e53d4a632814b81ede Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Wed, 29 Nov 2023 17:09:52 -0600 Subject: [PATCH] Allow redist detection scripts to run as admin --- LANCommander.SDK/RedistributableManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LANCommander.SDK/RedistributableManager.cs b/LANCommander.SDK/RedistributableManager.cs index 699b5af..ec242b6 100644 --- a/LANCommander.SDK/RedistributableManager.cs +++ b/LANCommander.SDK/RedistributableManager.cs @@ -58,7 +58,7 @@ namespace LANCommander.SDK var detectionScript = redistributable.Scripts.FirstOrDefault(s => s.Type == ScriptType.DetectInstall); detectionScriptTempFile = ScriptHelper.SaveTempScript(detectionScript); - var detectionResult = RunScript(detectionScriptTempFile, redistributable); + var detectionResult = RunScript(detectionScriptTempFile, redistributable, detectionScript.RequiresAdmin); // Redistributable is not installed if (detectionResult == 0)