MSFN Forum: How do I add something to the RunOnce registry key - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How do I add something to the RunOnce registry key Rate Topic: -----

#1 User is offline   Bachus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 408
  • Joined: 25-July 03

Posted 28 July 2003 - 08:47 AM

I still haven't figured out why Setup isn't setting my refresh rate and color depth like it should, among other things. i've tracked the changes made in the registry and have created a .reg file for them (and other things, such as setting Litestep as shell, customizing my folder options, and even setting the silver theme by default. The problem is that Windows seems to ignore half of these things. For example, it still refuses to set the refreshrate and color depth, it won't set my folder options or set the silver theme, but it does setup Litestep and set up the layout of my toolbars how I like. At any rate, if I run the .reg file now and reboot, all of a sudden it will accept these registry entries and everything will be fine. I'm not even going to bother trying to figure out what's going on there, but I do have an alternate idea. Would it be possible to, during the batch install, put a registry entry into the RunOnce key that, once psshutdown has rebooted the computer, will run another batch file that will run my .reg file? It should be possible, but I have no clue how to do it. Thanks alot, guys, if you can help me. :)


#2 User is offline   Aaron 

  • The MSFN Banana
  • Group: Patrons
  • Posts: 5,767
  • Joined: 17-August 01
  • OS:ME
  • Country: Country Flag

Posted 28 July 2003 - 02:26 PM

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"NameOfApplication"="C:\\Program Files\\example\\example.exe"


Since you want to execute a reg key, you will be prompted when XP boots up if the reg key path is in RunOnce, so put a path to the batch file instead that will use REGEGIT /S

You probably will see a quick flash of the command prompt box on boot up :)

P.S. you do need to use double backslashes for a path in a registry import.

#3 User is offline   Bachus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 408
  • Joined: 25-July 03

Posted 28 July 2003 - 02:33 PM

Thank you. :) Really, thanks for everything. I don't think I've expressed my gratitude enough. :rolleyes:

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy