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