On 16/07/2021 6:21 am, E. Garrulo wrote:
> Is it possible to stop and roll back an installation from Pascal code in
> very silent mode? Even if that would require coding a custom rollback
> procedure.
>
> It seems to me that after `CurStepChanged(ssInstall)`, the setup goes
> ahead until completion - generating an uninstaller and logging a
> successful installation - no matter what the Pascal code does (for
> example in an `AfterInstall` event).
The simplest option is to put your code into a PrepareToInstall handler
instead.
This happens before [Files] are extracted, but you can strategically
ExtractTemporaryFile(s) as needed.