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)