c# - how can I check and kill another instance of my application? -


I have to face a problem that my client is already running the app app, then they go to desktop (Can not kill APA), and app AAP Upgrade the app by running 1 with PowerShell. After this, after installing, click on the APA - & gt; Get an Exception . I think the root cause is that another example is running.

My question is how can I check that my application is already running? Can i kill it

Additionally, my application is Windows 8 Store, C #.

p> to check that your program is already running: >

> foreach (process different processes) {process.CloseMainWindow (); // or more aggressive: process.Kill ();}

Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -