How do I automatically run an application when the system starts
How do I automatically run an application when the system starts - REGISTRY
Registry entry could do this.
Automatic launch of the application can be done by entering an entry into the Windows registry - "HKEY_LOCAL_MACHINE" or "HKEY_CURRENT_USER"
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
"c:\Program Files\calc.exe"
or
Add a new startup application for current User
Open your registry and find the key:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
For each program you want to start automatically create a new string value using a descriptive name, and set the value of the string to the program executable.
For example, to automatically start Notepad, add a new entry of:
"Notepad"="c:\windows\notepad.exe".
Remove a startup application
If you're trying to remove a program and can not find it in the StartUp folder (usually C:\WINDOWS\Start Menu\Programs\StartUp), then it may be launching from one of the registry keys below. To remove it, delete the value associated with the program you want to remove.
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServices]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows]
Remove Compatibility Mode settings from the registry
Compatibility Mode setting can cause problems when you try to install application
- Right click a application shortcut (on the desktop, on the Start menu, etc.) or right click on application.exe in local folder in Program Files or in Program Files (x86)
- Choose Properties and click the Compatibility tab
- In this tab, remove any and all check marks
Specifically for this issue, you should remove the check from the box next to Run this application in compatibility mode and click OK.
Another way - another way to delete the entry in the registry
- On the keyboard, press
(the Windows key)+R to open Run - In the Run dialog type: regedit and click OK, which will open the Registry Editor
- Click Yes in the User Account Control dialog (if necessary)
- Browse to:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers - Click Layers to select it
Note: You may want to look in the right pane to see if things besides application are listed and you may need to expand the Name column to see the path (this is usually C:\Program Files\...\application.exe); if multiple items are listed, click just the application one to select it - Press Delete on the keyboard
- Click Yes in the Confirm Key Delete dialog.




