2

In order to keep the Inno Setup UI responsive, I'm using a technique almost identical to the one described in How to execute 7zip without blocking the InnoSetup UI? In one of my [Files] entries, I defined an AfterInstall procedure which runs a lengthy task. During that time, thanks to the message pump described by the above link, I can still click on the wizard form and move it around, etc. However, if I attempt to call that same procedure from within the PrepareToInstall event handler, I can't click or move the wizard form - it is still completely disabled/frozen.

Is there something special done during PrepareToInstall by Inno Setup that would purposely disable the wizard form?

0

1 Answer 1

1

Inno Setup indeed disables window, while running PrepareToInstall.

I do not think you can do anything to prevent that.


Consider using CreateOutputProgressPage instead.

See my answer to Inno Setup: How to modify long running script so it will not freeze GUI? and links from it to other questions showing use of CreateOutputProgressPage, for example Inno Setup Get progress from .NET Framework 4.5 (or higher) installer to update progress bar position.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.