Run install script even if there is no archive for redistributables
This commit is contained in:
parent
b23df9b2ad
commit
5a99f58f81
1 changed files with 11 additions and 4 deletions
|
@ -231,12 +231,19 @@ namespace LANCommander.PlaynitePlugin
|
|||
// Redistributable is not installed
|
||||
if (detectionResult == 0)
|
||||
{
|
||||
var extractionResult = DownloadAndExtractRedistributable(redistributable);
|
||||
|
||||
if (extractionResult.Success)
|
||||
if (redistributable.Archives.Count() > 0)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue