diff --git a/AllPurposeAutoSetup/SoftwareInstallManager.cs b/AllPurposeAutoSetup/SoftwareInstallManager.cs index b93d465..5e8574c 100644 --- a/AllPurposeAutoSetup/SoftwareInstallManager.cs +++ b/AllPurposeAutoSetup/SoftwareInstallManager.cs @@ -357,13 +357,13 @@ namespace All_Purpose_Auto_Setup process.StartInfo = ProcStartInfo; process.Start(); } - else if (setupArgs.Length > 0 && Regex.IsMatch(setupFile, @"\.exe$", RegexOptions.IgnoreCase)) + else if (setupArgs.Length > 0) { ProcessStartInfo ProcStartInfo = new ProcessStartInfo(setupFile); ProcStartInfo.RedirectStandardOutput = false; - ProcStartInfo.UseShellExecute = false; + ProcStartInfo.UseShellExecute = true; ProcStartInfo.CreateNoWindow = true; - ProcStartInfo.RedirectStandardError = true; + ProcStartInfo.RedirectStandardError = false; process = new System.Diagnostics.Process(); ProcStartInfo.Arguments = setupArgs; process.StartInfo = ProcStartInfo;