From 8cbeedb71ebf550725b96a048e008e34968a11c4 Mon Sep 17 00:00:00 2001 From: Duc Date: Mon, 12 May 2025 22:49:14 -0700 Subject: [PATCH] Fix issue where it doesn't execute *.msi with arguments. Fix issue where it won't run 32-bit installer --- AllPurposeAutoSetup/SoftwareInstallManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;