mox Posted May 11, 2005 Posted May 11, 2005 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?
gtaylor Posted May 11, 2005 Posted May 11, 2005 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\RunHKLM\Software\Microsoft\Windows\CurrentVersion\Run
spiritpyre Posted May 13, 2005 Posted May 13, 2005 just out of curiosity, why would you need the program to run before everything loads on every startup?
mox Posted May 14, 2005 Author Posted May 14, 2005 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).
Ducky_ace Posted May 14, 2005 Posted May 14, 2005 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).<{POST_SNAPBACK}>Put your emulation in the registry (or use msconfig)afterwards, you let windows run the following command:taskkill.exe /f /im explorer.exe
gtaylor Posted May 16, 2005 Posted May 16, 2005 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\WinLogonThis is probably the best solution if you don't want Windows running in the background.
-= MD =- Posted May 16, 2005 Posted May 16, 2005 I wrote an batch file and run it from the startup folder.This batch file adds the programs back into the runonceEx keybatch: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
gtaylor Posted May 17, 2005 Posted May 17, 2005 I know there is a better way to do this, but it worksThe 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"
mox Posted May 17, 2005 Author Posted May 17, 2005 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?
gtaylor Posted May 17, 2005 Posted May 17, 2005 Try setting the AutoRestartShell registry entry to 0.
mox Posted May 17, 2005 Author Posted May 17, 2005 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)
spiritpyre Posted June 4, 2005 Posted June 4, 2005 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...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now