using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.IO;
using System.Diagnostics;
namespace SPT_AKI_Installer.Aki.Helper
{
public class ProcessHelper
{
private Process _process;
///
/// Starts process with path and file name including include .exe,
/// sets working directory too
///
public void StartProcess(string exeDir, string workingDir)
{
_process = new Process();
_process.StartInfo.FileName = exeDir;
_process.StartInfo.WorkingDirectory = workingDir;
_process.Start();
}
///
/// Kills the Process
///
public void EndProcess()
{
_process.Kill();
}
}
}