TRX/tools/installer/TRX_InstallerLib/Utils/ProcessUtils.cs
lahm86 e16fcda94b tools/installer: create common installer library
This creates a generic common installer WPF library for both games.
2025-03-30 12:34:54 +01:00

20 lines
501 B
C#

using System.Diagnostics;
using System.IO;
namespace TRX_InstallerLib.Utils;
public static class ProcessUtils
{
public static void Start(string fileName, string? arguments = null)
{
Process.Start(new ProcessStartInfo
{
FileName = fileName,
Arguments = arguments,
UseShellExecute = true,
WorkingDirectory = new Uri(fileName).IsFile
? Path.GetDirectoryName(fileName)
: null
});
}
}