Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Uninstall removes files and leaves executable running
 

Uninstall removes files and leaves executable running

Hi,

I have used VS2005 to create a .msi package for my software. The problem though is that when I uninstall the software either through "Add/Remove Programs" or through running the uninstaller again, the uninstaller will remove all of the files but leave the executable running.

Is there anyway to have the Installation project stop the executable, both when the application is in window form and in the system tray?

Thanks,
Adam
Adam Westhusing  Wednesday, February 28, 2007 8:27 PM
I found the fix on another forum...

I created a FileWatcher to watch when the .exe was getting deleted. When it did, I called Application.Exit() and that worked great!
Adam Westhusing  Friday, March 02, 2007 3:50 PM
I found the fix on another forum...

I created a FileWatcher to watch when the .exe was getting deleted. When it did, I called Application.Exit() and that worked great!
Adam Westhusing  Friday, March 02, 2007 3:50 PM
I'm thinking about doing the same, but the .exe doesn't seem to be deleted on uninstall? (Probably because it's running?)


Acti0n  Tuesday, October 30, 2007 12:58 PM

You can use google to search for other answers

Custom Search

More Threads

• Auto-update feature does not seem to work on all machines.
• New SP1 .Net Framework Client Profile loads every time via the bootstrapper.
• .Net project Publishing Problem
• problem installing .NET Framework
• Problem running App Ref on startup
• Execute .bat file in setup
• Staging / Production clickonce versions
• datadirectory and vb .net
• This error comes in win 2000 but not in Xp!!
• .Application not running from browser