Add files to the uninstall log

11 views
Skip to first unread message

Eivind Bakkestuen

unread,
Aug 12, 2026, 10:38:27 PM (10 hours ago) Aug 12
to inno...@googlegroups.com
I would like to be able to add files installed via [code] to the uninstall log, to make sure a later uninstall can delete them.

Scenario:

- installer installs DLLs into a number of existing dev environments, via detection in [code]
- user deletes or changes dev environment location
- now [code] during uninstall can't find the leftover DLLs to remove

Due to the dynamic nature of the dev environments, it's tricky (unreliable) to use Files with {code:}.

Can't find anything in the docs that allows adding to the uninstall log. Is it possible?

Martijn Laan - Inno Setup

unread,
2:42 AM (6 hours ago) 2:42 AM
to inno...@googlegroups.com
Hi,

Op 13-8-2026 om 04:38 schreef Eivind Bakkestuen:
Can't find anything in the docs that allows adding to the uninstall log. Is it possible?

I don't think so. You could write your info to a custom file next to the uninstall log however?

Make sure to append to it instead of overwriting, and use a format which is both backward and forward compatible.

Use {uninstallexe} and ChangeFileExt to get the filename to use.

Greetings,
Martijn

Eivind Bakkestuen

unread,
4:29 AM (5 hours ago) 4:29 AM
to inno...@googlegroups.com
Sure, I know I can write an extra file to disk. Or store a list in the registry.. or... :)

Would it make sense to have functionality to do this built in? Or would it be against good installer practice?



--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/178660332983.7.1812442081395642950.1546230959%40innosetup.nl.
Reply all
Reply to author
Forward
0 new messages