R.Ro
R.Ro

Reputation: 509

NSIS start application on Windows startup (without Startup folder)

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?

Upvotes: 5

Views: 3823

Answers (1)

Anders
Anders

Reputation: 101756

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.

Upvotes: 10

Related Questions