Update Inno Setup Page Text/Status From Background Script/App

43 views
Skip to first unread message

Mohammad Kamrul Hassan

unread,
Jun 10, 2026, 1:32:33 AM (4 days ago) Jun 10
to innosetup
My installer, after installing all the required files, it run a script which do some heavy works and update status on a console window (like window command prompt) . 

as it take some time, so, it looks odd that it runs in another window. but as it run many task that can't be handled by pascal script (at i am not a pascal developer), i have to run it another process/app.

so, my question is is there any way.. that my script can run in background and while inno waiting for the process to finish my app can show the progress on inno main window by updating a label or such?

in that way.. i can run the script in background.. and it will looks like all is happening in inside installer. hope that make sense?

it can work like, create a custom page, and pass the status label window handle to the script?

i know you have better idea/explanation? please?

thanks in advance

best regards

Martijn Laan

unread,
Jun 10, 2026, 6:27:23 AM (4 days ago) Jun 10
to innosetup
Hi,

Make your script output progress using multiple lines and then capture those lines while it's running using OnLog parameters.

See https://jrsoftware.org/ishelp/index.php?topic=scriptonlog

Also see https://github.com/jrsoftware/issrc/blob/main/Examples/PowerShell.iss

OnLog in [Run] requires Inno Setup 7.

Best regards,
Martijn Laan

Op 10-6-2026 om 07:32 schreef Mohammad Kamrul Hassan:
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/5c8709a4-e91d-4bba-b259-3bc1fb624f22n%40googlegroups.com.

Mohammad Kamrul Hassan

unread,
Jun 10, 2026, 8:30:08 AM (4 days ago) Jun 10
to innosetup
thanks a lot for kind and fast response as usual.

it's looks promising.. 

i have tried to download version 7, but unfortunately it looks like 7 is still in beta stage.. while i don't run any beta version app/software on my production pc. 
(please no offense and don't mind, it's just a personal preference)

so? is there any way you can tell me when full version for 7 will be available?

thanks in advance

best regards

Gavin Lambert

unread,
Jun 10, 2026, 9:07:42 PM (3 days ago) Jun 10
to innosetup
On Wednesday, June 10, 2026 at 5:32:33 PM UTC+12 Mohammad Kamrul Hassan wrote:
My installer, after installing all the required files, it run a script which do some heavy works and update status on a console window (like window command prompt) . 

as it take some time, so, it looks odd that it runs in another window. but as it run many task that can't be handled by pascal script (at i am not a pascal developer), i have to run it another process/app.

so, my question is is there any way.. that my script can run in background and while inno waiting for the process to finish my app can show the progress on inno main window by updating a label or such?

For the general case of showing some progress information while a background task is running, have a look at CreateOutputProgressPage and related examples.

This won't really let you do incremental progress from a script, but if you can write your task as a DLL then you can implement callback functions to handle updating progress.  Another option is to break up your task into smaller chunks that you can run individually and only update the progress in between them.

Another option, if you do break up your task into smaller chunks that can be directly executed, consider using [Run] with StatusMsg values.

Eivind Bakkestuen

unread,
Jun 10, 2026, 10:20:13 PM (3 days ago) Jun 10
to inno...@googlegroups.com
i have tried to download version 7, but unfortunately it looks like 7 is still in beta stage.. while i don't run any beta version app/software on my production pc. 
(please no offense and don't mind, it's just a personal preference)
so? is there any way you can tell me when full version for 7 will be available?

Start your version 7 testing in a VM, then you are ready whenever the full version is available (which I'm pretty sure is "when it is ready").



Reply all
Reply to author
Forward
0 new messages