Search code examples
javawindowsinno-setupdesktop-applicationlaunch4j

Creating shortcut in startup folder using Inno setup


I'm developing a java application that i want to run on startup. I used launch4j to create .exe file and Inno setup to generate installer. Is there any way to create a shortcut in the startup folder using Inno setup ??


Solution

  • In [Icons] section you can use constants {userstartup} or {commonstartup}.

    For example:

    [Icons]
    Name: "{userstartup}\{#MyAppName}"; Filename: "{app}\MyProg.exe"; WorkingDir: "{app}"