I am installing a program using Inno Setup silently (using /VERYSILENT /SUPPRESSMSGBOXES).
After installing, the installer sometimes (around 15% of the time) decides that a restart is required and restarts the whole machine. Which is not desirable.
Do you know what makes the installer decide that a restart is required?
I use the [Files] section to copy the DLL like this.
Source: x32\*.dll; DestDir: {sys}; Flags: 32bit restartreplace uninsneveruninstall
Here are two log excerpts from each case highlighting the main differences.
1. When a restart happens.
2024-05-07 13:21:53.018 -- File entry --
2024-05-07 13:21:53.018 Dest filename: C:\Windows\system32\<somefile>.dll
2024-05-07 13:21:53.018 Time stamp of our file: 2023-10-24 11:26:24.000
2024-05-07 13:21:53.018 Dest file exists.
2024-05-07 13:21:53.018 Time stamp of existing file: 2023-10-24 11:26:24.000
2024-05-07 13:21:53.018 Version of our file: 111.0.1.7575
2024-05-07 13:21:53.019 Version of existing file: 111.0.1.7575
2024-05-07 13:21:53.019 Same version. Skipping. :
2024-05-07 13:21:57.577 Need to restart Windows? Yes
2. When a restart does not happen.
2024-04-29 12:13:35.131 -- File entry --
2024-04-29 12:13:35.131 Dest filename: C:\Windows\system32\<somefile>.dll
2024-04-29 12:13:35.132 Time stamp of our file: 2023-10-24 11:26:24.000
2024-04-29 12:13:35.132 Installing the file.
2024-04-29 12:13:35.133 Successfully installed the file.
:
2024-04-29 12:13:44.107 Need to restart Windows? No
Thanks.
Ranga