Hi,
I'm trying to uninstall our program completely. But uninstaller stop working.
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 at "On Post Uninstall" event. Uninstaller stop working after "On Shut Down" event.
In the end, I found if I delete one specific folder at "On Post Uninstall" event, uninstaller crashed because of trying to delete that folder after "On Shut Down" event. 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 applications from being uninstalled. It shows that there is some other application still uninstalling.
Is there any suggestion about this?
Thanks
I'm trying to uninstall our program completely. But uninstaller stop working.
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 at "On Post Uninstall" event. Uninstaller stop working after "On Shut Down" event.
In the end, I found if I delete one specific folder at "On Post Uninstall" event, uninstaller crashed because of trying to delete that folder after "On Shut Down" event. 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 applications from being uninstalled. It shows that there is some other application still uninstalling.
Is there any suggestion about this?
Thanks
Comment