30

How to make check box that allow user to run application after installation?

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Ata
  • 12,126
  • 19
  • 63
  • 97

4 Answers4

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
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