Say, we have the following scenario:
I would like to do the following: I would like to send some message to my application to ask it to quit. Then the installer should wait until my application is finished and run installation. Than it should restart software if it was terminated on previous step.
I found how to notify a user if my process is running but I haven't found any way to to communicate with external proccess. I would like to have cross-platform solution but it is ok if you suggest something for Windows only.
asked 14 Feb '12, 05:38
You can use built-in actions and rules to implement checking that process exists and waiting for it to exit. You can either bundle an application that sends an appropriate message (i.e. using SendMessage() API) or use the built-in
The example with shipping an application to quit is as follows:
This checks that myapp.exe is running, if it is, it asks the application to exit and waits for it to exit. It also shows a progress dialog so user is aware what is happening.
It keeps sending the quit message until the process exits. It can be moved to before the
As for using the
This will terminate the application, however, it will prevent asking user to perform certain actions - i.e. ask if it should write unsaved data.
answered 14 Feb '12, 05:55