My Uninstall script exits the running app however it is not completely gone (due to timing issue) and therefore the following UninstallDelete section does not delete the {app} folder since it is not empty. If I exit the app manually and then run the uninstall script then the {app} folder gets deleted fine.
[UninstallDelete] Name: {app}; Type: dirifempty
I was wondering if anyone has any suggestions to delay the attempt the remove the {app} folder. I thought of using the Inno Setup's built-in procedure called Sleep but I could not figure out how and where to use it (e.g. couldn't call it from [UninstallRun] section. Any other suggestions?