InnoSetup: Find out reason for restart

inno-setup, restart

Solution

For debugging purposes you can peek inside

`HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations`

to see if there are any moves/renames/deletes queued for the next reboot.

(Sysinternals utility viewer)

Problem

I have an Inno Setup script that installs my application and its accompanying files. On some systems a restart is required, on some not. I would like to find out the reason for the required restart. How would I do this most intelligently? Thank you very much.

Original source