If you want to run the application before starting the shell, you can add a value to the value Userinitin the registry. In this vein:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Userinit. , userinit.exe. , / :
C:\WINDOWS\system32\notepad.exe, C:\Windows\system32\userinit.exe
, , .
Windows XP, Vista 7.