I need my uninstall to run a command after it's removed the files it has installed. [UninstallRun] is no use as I understand it runs BEFORE files are removed. I kind of need a "postuninstall" flag.
Any suggestions as to how I can accomplish the above?
See "Uninstall Event Functions" in the documentation. You can use for instance
CurUninstallStepChanged
when 'CurUninstallStep' is 'usPostUninstall'.In the same way there is a [Run] section, Inno allows to you to define an [UninstallRun] section to specify which files of your Installer package should be executed on unistall.
For example:
Alternatively, solution proposed by @Sertac Akyuz, which makes use of event functions can be used for tunning a bit more unistalling actions. Here is an example of the usage of CurUninstallStepChanged function among other related functions.
https://github.com/HeliumProject/InnoSetup/blob/master/Examples/UninstallCodeExample1.iss