Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to close setup window when running installed application by Inno Setup?

I'm using Inno Setup to install WinForms utility and it works fine.

There's a minor problem that our users find quite annoying: On last step of installation, Inno Setup suggests to launch the utility that has just been installed. Most of the users want to immediately launch and (and so do I). The problem is that the setup window of Inno Setup is not closed until the user closes the installed utility. Furthermore, you can't close the setup window unless you close the installed utility first. The attached image demonstrates the installed utility (the right icon) and the Inno's setup icon (the left one).

So how to fix that problem? Please advice. Thank you

The problem occurs on all Windows: XP, 7, 2003, 2008 etc.

enter image description here

like image 908
Tamir Gefen Avatar asked Sep 18 '25 14:09

Tamir Gefen


1 Answers

You need to add the nowait flag to that [Run] section entry. So modify your script like this:

[Run]
Filename: {app}\myexe.exe; Description: Launch my app; Flags: postinstall skipifsilent nowait
like image 126
TLama Avatar answered Sep 23 '25 07:09

TLama



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!