1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Run a program at Windows Startup

Discussion in 'Business Applications' started by MassDaemon, Jan 23, 2005.

Thread Status:
Not open for further replies.
  1. MassDaemon

    MassDaemon Thread Starter

    Aug 17, 2004
    How can I make a program run at windows startup before any other programs while no other programs starts running until it's finished. I've seen this in some antivirus programs and adaware for example. But I wonder if there is a way for other executables which doesn't support this function by themselves.
    No need to say I know how to make a program start by changing the registry or putting it's shortcut in startup folder.

    Thank you in advance.
  2. angel


    Dec 2, 1998
    You didn't mention which version of Windows you're referring to.

    Can't answer your question directory but this might help...

    Per Microsoft - the order on startup.

    Under Microsoft Windows 95, Windows 98, and Windows Millennium Edition (Me) where all keys are supported, the keys are loaded in the following order:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnc e


    <Logon Prompt>




    StartUp Folder

    With the exception of the HKEY_LOCAL_MACHINE\...\RunOnce key, all keys and their entries are loaded asynchronously. Therefore, all entries in the RunServices and RunServicesOnce keys can potentially run at the same time.

    Entries in the HKEY_LOCAL_MACHINE\...\RunOnce key are loaded synchronously in an undefined order.

    Because the HKEY_LOCAL_MACHINE\...\RunOnce key is loaded synchronously, all of its entries must finish loading before the HKEY_LOCAL_MACHINE\...\Run, HKEY_CURRENT_USER\...\Run, HKEY_CURRENT_USER\...\RunOnce, and Startup Folder entries can be loaded.

    The RunServicesOnce and RunServices keys are loaded before the user logs into Windows 95, Windows 98, and Windows Me. Because these two keys run asynchronously with the Logon dialog box, they can continue to run after the user has logged on. However, since HKEY_LOCAL_MACHINE\...\RunOnce must load synchronously, its entries will not begin loading until after the RunServicesOnce and RunServices keys have finished loading.

    Because of different system configurations (such as a computer that is configured to automatically log on), any application that is dependant upon other applications that are executed under these keys having completed must be prepared to wait until these applications are complete. Other than this exception, the above description applies to Microsoft Windows NT 4.0, Windows 2000, and Windows XP.

    NOTES:• The RunOnce keys are not supported by Windows NT 3.51.
    • The RunOnce keys are ignored under Windows 2000 and Windows XP in Safe Mode.
  3. MassDaemon

    MassDaemon Thread Starter

    Aug 17, 2004
    Thank you very much. It was very helpful. (y)
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/322486

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice