• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

close running instance of application when install new version

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

I have written code to install an software.
When I start installation, it will firstly check whether that software is already installed or not. if it is already installed then
it will check whether that software is running or not.

If that software is not running then it will uninstall the previously installed software & then it will install the new version.

now my problem is, when old version software application is running & i m trying to install new version then pop-up of message is shown that,
"instance of old version software is running, please click on OK button to close the running instance."

by using socket I have checked whether software is running or not.

but how can I close the running instance, so after that installation of the new version continues.
when I click on OK button then old version aplication instance should get close & whatever I am installing that should continue.



Please give me solution that how I can do this.
 
Sheriff
Posts: 21759
102
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the running application, you will need to accept a socket, listen for some special message, and then close it if the right message has been sent. What that message looks like is up to you.

In pseudo code:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!