Allow redist detection scripts to run as admin
parent
1d2f82fdef
commit
c4c25ad85b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue