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
Hi ,
Sorry for asking at the wrong forum.
Anyway, thanks a lot.
Daniel
Hello Daniel,
I believe that you could create a bat file which will be run in “On Shut Down” event, and this bat file could delete all folders that you need to be removed (if they exists). However since this is not a questions which is directly related to Infragistics Components, I believe that there is more suitable forums where you should discuss this issue, MSDN forum for example.
I hope that this will helps you.