Run batch or script file at end of build

210 views
Skip to first unread message

Lowell C Bergey

unread,
Jul 6, 2022, 6:58:07 PM7/6/22
to innosetup
I know how to run a script or bat file, but it only seems to happen at the start of the setup, and I don't know how to run after the file has successfully been created.

Is there a way to run a script or batch file at the end of the build?   I would like to upload my setup.exe automatically to my website after my setup has successfully been made.

Gavin Lambert

unread,
Jul 6, 2022, 7:08:26 PM7/6/22
to inno...@googlegroups.com
On 7/07/2022 10:58, Lowell C Bergey wrote:
> Is there a way to run a script or batch file at the end of the build?

The way to do that is to use the command-line compiler from a batch file
or other script in the first place, such that you can execute additional
commands before or after.

Some third-party IDEs may have a "run command after building" option,
but the default one does not.

>  I would like to upload my setup.exe automatically to my website after
> my setup has successfully been made.

This isn't typically recommended -- you should test your installers in a
VM before you release them for public consumption.

Lowell C Bergey

unread,
Jul 6, 2022, 8:43:20 PM7/6/22
to innosetup
It's to deploy the setup for my testers to download & debug.
Reply all
Reply to author
Forward
0 new messages