check if EZPPClient Installer is already running
This commit is contained in:
parent
cd06d53130
commit
e8717981a2
|
@ -36,6 +36,9 @@ namespace EZPPClient_Installer
|
||||||
|
|
||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
|
var alreadyRunning = System.Diagnostics.Process.GetProcessesByName(System.IO.Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetEntryAssembly().Location)).Count() > 1;
|
||||||
|
if (alreadyRunning)
|
||||||
|
this.Close();
|
||||||
Instance = this;
|
Instance = this;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Init();
|
Init();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user