Fix issue where it doesn't execute *.msi with arguments. Fix issue where it won't run 32-bit installer

This commit is contained in:
Duc
2025-05-12 22:49:14 -07:00
parent c9315968da
commit 8cbeedb71e

View File

@@ -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;