Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

close running instance of application when install new version

 
Anuj Joshi
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.
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java 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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic