Hello Wagner,
I have the same error on Delphi 11, so I tried to open and compile Sparkle.dproj directly from IDE
and I noticed that this problem only occurs when I compile this project in DEBUG mode.
In RELEASE mode it compiles without issues.
The installer seems to attempt to compile this project in DEBUG mode by default and hence
I can see this issue.
I hope it helps a bit to nail the root cause down.
Fingers crossed.
Kind regards
Arek