2
votes

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

1
I'm not 100% sure what you're having trouble with. When you use the postinstall flag in the [Run] section, you will get a Run after install check box, which if you keep checked and finish the wizard launches the specified application and closes the wizard window. Could you elaborate on your problem ? Do you have a recent version of InnoSetup ? - TLama
Please make sure you have NOT selected flags waituntilidle or waituntilterminated - RobeN
@TLama, yes I have postinstall there. Yes I keep it checked. The problem is that the wizard window is not closed while the application is launched. RobeN No I don't have those flags - Tamir Gefen
Then I can't reproduce what you described. Could you post your script part with which we'll be able to reproduce the problem ? And are you using recent version of InnoSetup ? - TLama
Thank you. I use 5.4.3 (a). Is this the part you mean? [Run] Filename: {app}\myexe.exe; Description: Launch my app; Flags: postinstall skipifsilent - Tamir Gefen

1 Answers

1
votes

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