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 ??
Asked
Active
Viewed 5,262 times
1 Answers
12
In [Icons]
section you can use constants {userstartup}
or {commonstartup}
.
For example:
[Icons]
Name: "{userstartup}\{#MyAppName}"; Filename: "{app}\MyProg.exe"; WorkingDir: "{app}"

AndyUK
- 3,933
- 7
- 42
- 44

CAD Developer
- 1,532
- 2
- 21
- 27
-
Thanks a lot. It works ! :D – Meghla Khan Aug 24 '16 at 14:16
-
The "start up" folder is deprecated, use registry `Run` entry instead. See [Start application with parameters on windows start](http://stackoverflow.com/q/15123421/850848). – Martin Prikryl Aug 28 '16 at 07:52
-
Is it missing a quote after MyProg.exe or no? – Mark Deven Dec 11 '17 at 12:23
-
@Mark Dodsons yes there was. Just recently provided an edit. – AndyUK Oct 01 '18 at 14:51