Visual Studio 2005 - Setup Project
Hi! I hope I've posted this to the right forum, otherwise please let me know.
I've been trying to figure out a way that I can stop a windows installer project (Setup project) from running if a previous version of the application is already running, but I can't find a launch condition to do this, and it seems that a custom action will only run after installation.
The reason for this is that when I install a new version of my program, the installer should remove the old one. So during installation, the uninstaller for the previous version runs. However, if the program is already running, then the uninstall fails and the computer ends up with two version of the my program on the machine (two shortcuts etc). So I'd like to either kill the program when installation starts, or detect that it is running so I can cancel the installation.
Please let me know if you can help.
Thank you
Regards
-Tore
|