How do I change the startup list? Basically I have a program that is a computer locking system and when I enter it into the registry to s开发者_如何学Ctart up when login, it is like the last thing to open.
Which startup list are you using to launch your application?
There are actually quite a few startup lists (see below). The order of application launch within a given list is not configurable (e.g. there is no way to choose which application in the Startup Folder launch first) but, the order in which the startup lists are iterated is fixed (e.g. Applications in the Common Startup Folder will always launch first, before applications in the Startup Folder).
It sounds like you want to launch your application on user login, so listing your application path in the All Users-Run registry key should ensure that it launches fairly soon after logon.
Add a string (REG_SZ) value to the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
registry key with the path to your application as the data.
(Aside: Background reading on the arcane terminology of the Windows registry)
STARTUP ORDER FOR WINDOWS 9X/ME
- config.sys
- autoexec.bat
- wininit.ini
- winstart.bat
- system.ini
- win.ini
- All Users-RunOnce (
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
) - All Users-RunServices
(
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices
) - All Users-RunOnce
(
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
) - All Users-Run
(
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
) - All Users-RunOnceEx
(
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx
) - All Users-RunEx
(
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunEx
) - Current User-RunOnce
(
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
) - Current User-Run
(
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
) - Current User-RunOnceEx
(
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnceEx
) - Current User-RunEx
(
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunEx
) - Common Startup Folder
- Startup Folder
STARTUP ORDER FOR WINDOWS NT4/2000/XP
- BootExecute (`HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute
- Services
- User enters a password and logon to the system
- UserInit
(
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserInit
) - Shell
(
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
) - All Users-RunOnce
(
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
) - All Users-Run
(
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
) - All Users-RunOnceEx
(
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx
) - All Users-RunEx
(
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunEx
) - Current User-RunOnce
(
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
) - Current User-Run
(
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
) - Current User-RunOnceEx
(
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnceEx
) - Current User-RunEx
(
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunEx
) - Common Startup Folder
- Startup Folder
(Source)
精彩评论