I’m using InnoSetup for creating my application installers and I set the “SetupLogging=yes” flag to always create a setup-log file in the %TEMP% directory. This works fine for the installation procedure. Unfortunately, InnoSetup will not create such a log file when I uninstall the application.
Is there a flag / possibility to force InnoSetup to also create an uninstall log file?
No, you would have to use [Code] to update the Uninstall registry key to include a /LOG parameter in the UninstallString value.
The registry key will be either HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall(YourAppID)_is1 or HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall(YourAppID)_is1
Do this at the end on the installation, and only when it succeeded. For example inside an CurStepChanged event function with CurStep = ssPostInstall.