Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How do I add something to the RunOnce registry key

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Bachus

Bachus

    Advanced Member

  • Member
  • PipPipPip
  • 408 posts
  • Joined 25-July 03
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. :)


How to remove advertisement from MSFN

#2
Aaron

Aaron

    The MSFN Banana

  • Patrons
  • 5,767 posts
  • Joined 17-August 01
  • OS:Windows 7 x64
  • Country: Country Flag
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
Bachus

Bachus

    Advanced Member

  • Member
  • PipPipPip
  • 408 posts
  • Joined 25-July 03
Thank you. :) Really, thanks for everything. I don't think I've expressed my gratitude enough. :rolleyes:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users