Allow redist detection scripts to run as admin

net8.0
Pat Hartl 2023-11-29 17:09:52 -06:00
parent 1d2f82fdef
commit c4c25ad85b
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ namespace LANCommander.SDK
var detectionScript = redistributable.Scripts.FirstOrDefault(s => s.Type == ScriptType.DetectInstall); var detectionScript = redistributable.Scripts.FirstOrDefault(s => s.Type == ScriptType.DetectInstall);
detectionScriptTempFile = ScriptHelper.SaveTempScript(detectionScript); detectionScriptTempFile = ScriptHelper.SaveTempScript(detectionScript);
var detectionResult = RunScript(detectionScriptTempFile, redistributable); var detectionResult = RunScript(detectionScriptTempFile, redistributable, detectionScript.RequiresAdmin);
// Redistributable is not installed // Redistributable is not installed
if (detectionResult == 0) if (detectionResult == 0)