NSIS start application on Windows startup (without Startup folder)

Viewed 2295

Is it possible to add the application in the install process to some registry, in order for it to start automatically on Windows startup without adding a shortcut to the Startup folder?

1 Answers

Yes, you can add a entry to the Run key in the registry:

WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "MyAppName" '"$InstDir\MyApp.exe"'

Note: Windows Task Manager has a tab to disable startup items so adding it to the registry instead of the startup folder no longer "hides it" from the user.

Related