tags:

views:

45

answers:

1

I want to configure the installer to stop a WPF application if it is running before installing the new version.

How do I do this in a Setup & Deployment Project.

Thanks.

A: 

Short of communicating with the app with some other little app that runs before the installation takes place (which would be way overkill), I don't know that you could do this automatically, but the installer should prompt the user to shut it down. Does it not?

Mike Pateras
Nope, the installer removes all the files but the exe is still running (shows in the Task Manager). Eventually the application crashes when a background task runs. So far I've got a vbscript that kills the process and the installer calls the script before continuing. Ideally I wanted something a bit more graceful but I guess this will have to do for now.
empo