When creating a new version of my application, it is possible that the files that were needed in the previous version are no longer needed. I would like them to be cleaned during the update. My ideas so far:
- I reviewed the use of
InstallDelete , but this requires the current assembly to know which files the previous assembly contains. The build process is automated, and I would prefer that nothing be checked in the assembly. (It makes notes, etc. Pretty dirty.) - I also decided to start the uninstall, but that would mean that the update could not be completely rolled back (since the application would have been uninstalled).
Is there a way to detect files that were present in the old installation, but not new during the installation, and that Inno deleted them in a way that could be discarded (or will this happen only if the installation was successful)
source share