How to make check box that allow user to run application after installation?
Asked
Active
Viewed 5.1k times
4 Answers
45
There you go:
under [Run]
:
Filename: {app}\{cm:AppName}.exe; Description: {cm:LaunchProgram,{cm:AppName}}; Flags: nowait postinstall skipifsilent
under [CustomMessages]
:
AppName=mySoftwaresNiceName
LaunchProgram=Start mySoftware after finishing installation

Akku
- 4,373
- 4
- 48
- 67
-
How do i tell to do : AppName.exe argument1 argument2 ? – Mar 18 '14 at 00:43
-
Ask a separate question please – Akku May 26 '14 at 10:55
-
@Akku I provide my app name in AppName but it is giving me error that my player name is not defined – Muhammad Faizan Khan Oct 21 '16 at 07:09
-
@Mohammad This question is not about self defined constants, so write a new question if you have one, and provide more information about your problem. – Akku Nov 02 '16 at 10:43
18
Check the postinstall
flag in the [Run]
section, see the documentation at https://jrsoftware.org/ishelp/topic_runsection.htm#postinstall

Martin Prikryl
- 188,800
- 56
- 490
- 992

Otherside
- 2,805
- 22
- 21
12
Add Filename to Run Section with Flag postinstall.
Example for Copy&Paste:
[Run]
// User selected... these files are shown for launch after everything is done
Filename: {app}\README.TXT; Description: View the README file; Flags: postinstall shellexec skipifsilent
Filename: {app}\APP.EXE; Description: Run Application; Flags: postinstall nowait skipifsilent unchecked

Jens A. Koch
- 39,862
- 13
- 113
- 141
7
To make the checkbox, create a task:
[Tasks]
Name: StartAfterInstall; Description: Run application after install
and bind it to "run" action:
[Run]
Filename: {app}\{#exe}; Flags: shellexec skipifsilent nowait; Tasks: StartAfterInstall
where {#exe} is the name of exe-file

Yuriy Kovalev
- 639
- 5
- 9