Launching the application before Windows Explorer

Some installation applications stop (or appear to stop) when Windows boots normally. The computer starts, the user logs in, and then the setup program starts before others (for example, Windows Explorer).

How can I reproduce this behavior in my own program?

eg.

  • OS boot
  • To come in
  • The program is launched, updated, etc.
  • The rest of the programs start (for example, Windows Explorer and everything that ever starts at startup)
+3
source share
4 answers

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.

+8

, ,

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup

- . , : RunOnce

, "vcsjones". , explorer.exe, .

+3

, Windows .bat explorer.exe

@echo off
something.exe
explorer.exe

explorer.exe

, , "", ..

, .

0

Windows Task Scheduler. , ( ) . , Windows, , Windows.

Another solution is to record a Windows service (the Windows MSI installer is actually a service).

I'm not sure if you can block Windows Explorer, though ...

0
source

Source: https://habr.com/ru/post/1794138/


All Articles