Feature suggestion: Embed DLL file(s) in uninstaller

20 views
Skip to first unread message

Bill Stewart

unread,
Jul 9, 2026, 2:01:06 PM (8 days ago) Jul 9
to innosetup
Sample use case: If a DLL is required to complete an uninstall, the current process is to install the DLL to a known location such as {app} and then reference it from the uninstall process.

This feature request is to embed/compress file(s) in the uninstaller such that when the user runs the uninstall, the uninstall process could extract these embedded files to a temporary directory.

In this way if a DLL is required to uninstall, the uninstall could extract it dynamically instead of leaving it on the user's disk. Of course, the 'external' DLL function definition would need to support loading the DLL from the temporary directory.

Martijn Laan - Inno Setup

unread,
Jul 10, 2026, 1:16:27 AM (7 days ago) Jul 10
to innosetup
Hi,

Would recommend embedding such a DLL into one of your application files instead, otherwise it becomes impossible to do versioning:

Embedding into the uninstaller would have to happen at compile-time before the uninstaller is signed, which means that if someone installs an old version of the application over a newer one you might end up with old application files but a new DLL, because the uninstaller is never updated to an older version, and instead is both backward and forward compatible.

Greetings,
Martijn

Op 9-7-2026 om 20:01 schreef 'Bill Stewart' via innosetup:
Sample use case: If a DLL is required to complete an uninstall, the current process is to install the DLL to a known location such as {app} and then reference it from the uninstall process.

This feature request is to embed/compress file(s) in the uninstaller such that when the user runs the uninstall, the uninstall process could extract these embedded files to a temporary directory.

In this way if a DLL is required to uninstall, the uninstall could extract it dynamically instead of leaving it on the user's disk. Of course, the 'external' DLL function definition would need to support loading the DLL from the temporary directory.
--
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/5a415a8b-b6c8-409d-9032-282135f9b417n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages