Re: Is there anyway to control the order of in which the [Run] entries are performed in the registry



It's all down to elegance, I think, in the end. Whether to use the
3rd-party 'Startup Delayer' program or use a batch script, as proposed by
Twayne, that could be extended to load most or all of the contents of the
registry "Run" keys with a timeout (choice.exe, timeout.exe) command
inserted between each.


==

Cheers, Tim Med***, Peckham, London. :-)


"JS" <@> wrote in message news:%23BC69zM3JHA.1372@xxxxxxxxxxxxxxxxxxxxxxx
Well I haven't looked recently at the registry key(s)
that specifies what runs but it seems to me that if you
collect a list of the program entries in said keys and
then created a script (VBS possibly) and then ran the
script containing in the order you want and the delay
(wait time) between start of the next program in
the script you should be able to get rid of at lease some
of these entries in the registry.

--
JS
http://www.pagestart.com



"Tim Med***" <timmed***@xxxxxxxxx> wrote in message
news:e7q2AyI3JHA.1092@xxxxxxxxxxxxxxxxxxxxxxx
Twayne,
I profoundly agree with you. This is also what Randem sort
of said earlier. Also, as I have also said, the 'Startup Delayer'
proposed by 'js' was a more appropriate solution to Randem's particular
problem (see my other posts in this thread).
Was that what you meant by 'delayed start'? Otherwise I don't think
I have heard of that one, is there a way of doing that in XP alone
without a 3rd-party program?


==



Cheers, Tim Med***, Peckham, London. :-)


"Twayne" <nobody@xxxxxxxxxxxxxxxxxxx> wrote in message
news:uwWO8qI3JHA.3988@xxxxxxxxxxxxxxxxxxxxxxx
Tim Med*** wrote:
Randem,
try this out; run these commands from a 'Command Prompt'
window:



regedit /e RUN_CU.REG
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run


regedit /e RUN_LM.REG
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run



(*please note that both of the above commands are one-liners but may
not appear so due to line-wrap)


This will give you two resultant files named RUN_LM.REG and
RUN_CU.REG. Open them both in notepad and you will see that they are
listed in an order different from the simple 'alphabetical' one in
regedit.
This is also the order in which the OS will execute them.

To change the order, edit the command-order in the files to the order
you want them to execute.

Then you must delete the "Run" keys:


HKEY_CURRENT_USER\Software\Microsoft\CurrentVersion\Run

HKEY_LOCAL_MACHINE\Software\Microsoft\CurrentVersion\Run

...before importing the edited registry files you have just altered.
This will ensure the new-order (not the morbid pop group) is written
to the registry.

To check the new order; type out the first two commands at the
beginning and the new files (the previous files will be overwritten)
should be in the newly edited order.


*NB Randem, I am acquainted with your posts here and know you to be
knowledgeable in the use of registry. To anyone else: editing the
registry in any way can make your computer unusable. Make sure you
are comfortable with what you are doing and always make a backup of
you registry / create a restore point first


==



Cheers, Tim Med***, Peckham, London. :-)


"Randem" <newsgroups@xxxxxxxxxx> wrote in message
news:eXOhdp82JHA.5276@xxxxxxxxxxxxxxxxxxxxxxx
I need to control the order of in which the run entries are run.
There is some software that absolutely needs to be run last after
all other entries. How is the [run] section ordered in running? Is
it just a whatever approach or is there an order to this method?
--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Disk Read Error Press Ctl+Alt+Del to Restart
http://www.randem.com/discus/messages/9402/9406.html?1236319938

Tim, not saying there's anything wrong with your post, just curious:

Wouldn't it be easier to just set it to delayed start? Meaning, it
won'r run until afrter everything else has finished? That way it can't
even be started until all the other tasks have finished and you'll know
that nothing is left running to be sharing the time with it. It seems
like just changing sequencing in the registry will still let it start
while the other processes etc. are still running (chunking, if you
will).

And natch, it'll likely extend boot time noticeably but that's probably
no big deal to this scenario.

Regards,

Twayne










.