Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi: How to create a Windows autostart application like Skype does?

I'd like to add an option to my application similar to the Skype's option "run Skype as my computer starts".

Skype doesnt't go on the "Auto start applications" of the start menu folder, I'd like to have the same effect.

Note, one answer to this question suggets to add a key here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

but I checekd on my machine and Skype is not there, so another way is used.

like image 875
LaBracca Avatar asked Jul 02 '10 09:07

LaBracca


People also ask

How do I add programs to startup in Windows 10?

Add apps to startup in Windows 10. Open Run command box by pressing Windows logo + R keys. In the Run command field, type shell: startup and then press Enter key to open Startup folder. Copy and paste the app shortcut from the desktop to this Startup folder and the app will be added to startup.


1 Answers

Skype installs via a registry entry, but it's in HKEY_CURRENT_USER , not HKEY_LOCAL_MACHINE

This allows Skype to be installed or not on a per-user basis. Using HKLM will autostart for ALL users.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
like image 101
Roddy Avatar answered Sep 30 '22 14:09

Roddy