Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Uninstaller crash
posted

Hi, 

I'm trying to uninstall our program completely.

Because our application will create some log files and other files in the application folder in the run time, I try to call Folder.DeleteTree to delete all files and folders in application folder at "On Post Uninstall" event.  

But uninstaller crashed after "On Shut Down" event.

In the end, I found if I delete one specific folder at  "On Post Uninstall" event, because uninstaller also try to delete that folder after "On Shut Down" event and then crash.

That folder is normal. I don't know why. 

Therefore, I tried a workaround. 
I enumerate all files and folders at  "On Post Uninstall" event and then delete them one by one except that specific folder.
Uninstaller will not crash and program is uninstalled completely but there is still one another problem.

After  "On Shut Down" event, cmd.exe will be launched and not be closed.

This will prevent other application to be uninstalled. It will show that there is some other application still uninstall. 

Is there any good suggestion about this?

Thanks