Project: duracloud
Issue DURACLOUD-844: Sync Tool: Uninstalling with app running (on Windows) pops up error dialog
If the sync tool is uninstalled while the application is running, the uninstall works properly, the application is stopped and all files are removed as expected, but an error dialog is popped up stating "Program ended with an error exit code". This popup does not show up if the application is not running when the uninstaller is run. The dialog is popped up when the command: "taskkill /f /t /im duracloudsync.exe" is run by the uninstaller. In testing for the 2.4 release I found that if the taskkill command is run without the "/f" force flag, the error dialog does not pop up and the exe process stops (the icon is removed from the task bar), but the java process continues to run, so the application is still available. If the command above, with the force flag is then run, the java app is stopped without a popup dialog. This is why a second call was added to the uninstaller, to try running without the force flag first. Unfortunately, this did not work, the error dialog remains.
Story points: 2