I used Inno Setup to build myapp (webapp) final setup, also used custom Pascal code to set prerequisites and create config file which has base_URL.
I defined the servername as 'Domain' and port as 'HostPort', and there is a dialog in setup progress to allow user put domain and hostport.
I want to open URL contains (http//domain:port) after setup finished. This process should execute within 5 second after run myapp to work correctly.
Inno script executed myapp as below:
[Run]
Filename: "{app}\{#MyAppExeName}"; Flags: runascurrentuser nowait postinstall skipifsilent hidewizard runhidden; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"