Jump to content

running programs before desktop loads


 Share

Recommended Posts

I am trying to execute a program before the desktop loads, like what happens with RunOnceEx after a fresh install, but have it happen every time I restart instead of just once. How do I go about doing this?

Link to comment
Share on other sites


I haven't experimented with this for a while but I believe that the Run key is executed prior to the desktop appearing.

HKCU\Software\Microsoft\Windows\CurrentVersion\Run

HKLM\Software\Microsoft\Windows\CurrentVersion\Run

Link to comment
Share on other sites

well i'm going to be using XP as my OS for an emulation box. I just need it to run my emulator and I want to hide as much of windows as possible, including being mouse and keyboard free (using a usb controller).

Link to comment
Share on other sites

well i'm going to be using XP as my OS for an emulation box.  I just need it to run my emulator and I want to hide as much of windows as possible, including being mouse and keyboard free (using a usb controller).

Put your emulation in the registry (or use msconfig)

afterwards, you let windows run the following command:

taskkill.exe /f /im explorer.exe

Link to comment
Share on other sites

If you aren't wanting to run the Windows Shell (explorer.exe) then you can use your emulator software as a shell replacement. To replace the shell you simply change the Shell key in the following registry location:

HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon

This is probably the best solution if you don't want Windows running in the background.

Link to comment
Share on other sites

I wrote an batch file and run it from the startup folder.

This batch file adds the programs back into the runonceEx key

batch:

regedit.exe /s "runonce.reg"

runonce.reg:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]
"Title"="A nice title"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001]
"1"="\"E:\\Mijn documenten\\Mijn computer beheer\\program_to_run.exe\""

I know there is a better way to do this, but it works :thumbup

Link to comment
Share on other sites

I know there is a better way to do this, but it works

The better way is to use the Run registry key. I modified your example:

;Add entry to Run key
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"MyApplication"="C:\Program Files\MyApplication\MyApplication.exe"

Link to comment
Share on other sites

Ok, I tried running the application as the shell, which was a fantastic idea. The problem is that I have the program set to shutdown the computer on exit. When it exists, windows immediately tries to run the program again and I get an error message saying windows can't start that process because it is shutting down.

This has never been a problem except now when i run the program as a shell. Is there any way around this?

Link to comment
Share on other sites

i've tried setting the autorestartshell to 0 (it was on zero by default).. it still seems to propagate endlessly. Can I not run a shell that ends, without XP automatically restarting it?

(this is with minilogon)

Link to comment
Share on other sites

  • 3 weeks later...

never really messed around with using a different shell or anything like that (but it is cool idea) anyway how are you shutting down? maybe using a shortcut to call shutdown.exe (or a batch that would do this) with the appropriate switches? don't know if this is even relevant to your situation just trying to toss out some (hopeless useful) ideas. sorry if i'm not getting this...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...