Run install script even if there is no archive for redistributables
parent
b23df9b2ad
commit
5a99f58f81
|
@ -231,12 +231,19 @@ namespace LANCommander.PlaynitePlugin
|
||||||
// Redistributable is not installed
|
// Redistributable is not installed
|
||||||
if (detectionResult == 0)
|
if (detectionResult == 0)
|
||||||
{
|
{
|
||||||
var extractionResult = DownloadAndExtractRedistributable(redistributable);
|
if (redistributable.Archives.Count() > 0)
|
||||||
|
|
||||||
if (extractionResult.Success)
|
|
||||||
{
|
{
|
||||||
extractTempPath = extractionResult.Directory;
|
var extractionResult = DownloadAndExtractRedistributable(redistributable);
|
||||||
|
|
||||||
|
if (extractionResult.Success)
|
||||||
|
{
|
||||||
|
extractTempPath = extractionResult.Directory;
|
||||||
|
|
||||||
|
PowerShellRuntime.RunScript(installScriptTempFile, installScript.RequiresAdmin, null, extractTempPath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
PowerShellRuntime.RunScript(installScriptTempFile, installScript.RequiresAdmin, null, extractTempPath);
|
PowerShellRuntime.RunScript(installScriptTempFile, installScript.RequiresAdmin, null, extractTempPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue