I have a question about deleting folders during uninstallation using Inno Setup.
In my script, I use the uninsrestartdelete
flag on some files and call DelTree
on the {app}
folder on the last step of uninstallation. Sometimes, I can't delete all files until system restart (those are code injection DLLs). In this situation, I can't delete the {app}
folder successfully. What's the correct way to delete the {app}
folder on system restart as well? I can make sure there is no file left in the folder When I try to delete it.