J
JS
What make things even more interesting is
that you can always count on the same applications
loading in the same order every time you boot.
--
JS
http://www.pagestart.com
that you can always count on the same applications
loading in the same order every time you boot.
--
JS
http://www.pagestart.com
Tim Meddick said:Randem,
you pretty much have the same idea of how the list in the "Run"
key works as I have. It does indeed depend on how long it takes to load a
given application in the list. Windows is a virtual-mode operating system
and that means here that the first app on the list may still be attempting
to load while the second has finished and the third loads. Thus the order
is not apparently being adhered to. So that is why I said that it was
probably not for you if it was vital if your app is executed last and that
the 'Startup Delayer' util was a better bet.
But nevertheless, Windows will try load them in the order in which
they were added to the registry as that is how the list is stored in the
registry hive file and that is how they are read. I only ever mentioned
this in the first place because you did ask if the 'list' could be
manipulated - and it can. Re-writing the list order in the way I first
described, does, even so, have a significant effect on the way they are
loaded at boot/logon.
I very much hope that you have a suitable solution to your particular
issue, though.
==
Cheers, Tim Meddick, Peckham, London.
Randem said:That's ok. It seems that Windows starts all the programs in the [Run]
Section at the same time so the order that they load depends on which
started first and how long it takes to run as well as how much CPU time
is taken by the other programs so it is really a crap shoot.
It seems that this software that we are using needs to be the last thing
loaded or it will start shutting down other things such as permissions
etc... Now if the other apps are running when this app start to shut
things down it can affect the other apps. That is why I need to get it
started last.
--
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 Meddick said:I accept it's not what you wanted, if it's as crucial as you say to have
this command executed last, then the utility 'Startup Delayer' posted by
'js' sounds interesting...
However, you are mistaken when you say that the exported list is
alphabetical; it is not. It may just happen to be that way, by
coincidence, in your own exported listbut it is not the case in
actuality.
The exported lists are in the order they were written to the registry,
and, as far as I am aware, it is the same order that Windows executes
them - in the order it reads them.
I am sorry that I could not be of more help to you.
==
Cheers, Tim Meddick, Peckham, London.
Thanks but that is not what I wanted. I need to know how the order is
determined. I know how to export and edit the registry.
BTW: The way they are show is alphabetical and not always the order
that they are run...
--
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
The commands export the contents of the [two] registry 'run' keys to
two reg-file outputs, which can then be edited to change the order.
I suppose a simpler approach would be to delete the entry of the
command you want executing last, then, simple re-apply it.
You see, the items in both of these keys may 'look' as if they are
executed alphabetically (in the order they show up in regedit, that
is). But, in actual fact, they execute in the order they were added to
the registry. Ergo the last one entered is also the last one to be
executed!...
However, by editing the two files that will result in running the two
commands that I gave you - you can manipulate the exact order in which
the entries under the "Run" keys are executed.
To repeat, ALL the commands I gave you do is EXPORT the contents of
the two run keys to two files named:
RUN_CU.reg = For the exported CURRENT_USER key.
...and
RUN_LM.reg = For the exported LOCAL_MACHINE key.
Does this answer all of your questions?
==
Cheers, Tim Meddick, Peckham, London.
More explanations are needed before I try what you are suggesting.
What exactly are the commands you offered supposed to do?
--
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
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 Meddick, Peckham, London.
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