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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user