close running instance of application when install new version
posted 6 years ago
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.