mox Posted May 11, 2005 Share 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? Link to comment Share on other sites More sharing options...
gtaylor Posted May 11, 2005 Share 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 Link to comment Share on other sites More sharing options...
spiritpyre Posted May 13, 2005 Share Posted May 13, 2005 just out of curiosity, why would you need the program to run before everything loads on every startup? Link to comment Share on other sites More sharing options...
mox Posted May 14, 2005 Author Share 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). Link to comment Share on other sites More sharing options...
Ducky_ace Posted May 14, 2005 Share 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 Link to comment Share on other sites More sharing options...
gtaylor Posted May 16, 2005 Share 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. Link to comment Share on other sites More sharing options...
-= MD =- Posted May 16, 2005 Share 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 Link to comment Share on other sites More sharing options...
mox Posted May 16, 2005 Author Share Posted May 16, 2005 thanks to everyone for the input. Link to comment Share on other sites More sharing options...
gtaylor Posted May 17, 2005 Share 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" Link to comment Share on other sites More sharing options...
mox Posted May 17, 2005 Author Share 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? Link to comment Share on other sites More sharing options...
gtaylor Posted May 17, 2005 Share Posted May 17, 2005 Try setting the AutoRestartShell registry entry to 0. Link to comment Share on other sites More sharing options...
mox Posted May 17, 2005 Author Share 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) Link to comment Share on other sites More sharing options...
spiritpyre Posted June 4, 2005 Share 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... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now