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

R

Randem

T

Tim Meddick

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. :)
 
R

Randem

Yes, in the HKCU as well as the HKLM registry areas

--
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



JS said:
Are you referring to which programs load
after you login?

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


Randem said:
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
 
R

Randem

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



Tim Meddick said:
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. :)


Randem said:
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
 
T

Tim Meddick

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. :)


Randem said:
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



Tim Meddick said:
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. :)


Randem said:
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
 
J

JS

Startup Manager:
http://startupmanager.org/

Startup Delayer:
http://www.r2.com.au/software.php?page=2&show=startdelay

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


Randem said:
Yes, in the HKCU as well as the HKLM registry areas

--
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



JS said:
Are you referring to which programs load
after you login?

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


Randem said:
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
 
R

Randem

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



Tim Meddick said:
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. :)


Randem said:
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



Tim Meddick said:
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
 
R

Randem

Thanks, the StartUp Delayer might just work...

--
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



JS said:
Startup Manager:
http://startupmanager.org/

Startup Delayer:
http://www.r2.com.au/software.php?page=2&show=startdelay

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


Randem said:
Yes, in the HKCU as well as the HKLM registry areas

--
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



JS said:
Are you referring to which programs load
after you login?

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


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
 
T

Tim Meddick

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 list but 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. :)


Randem said:
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



Tim Meddick said:
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. :)


Randem said:
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
 
J

JS

You're welcome.

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


Randem said:
Thanks, the StartUp Delayer might just work...

--
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



JS said:
Startup Manager:
http://startupmanager.org/

Startup Delayer:
http://www.r2.com.au/software.php?page=2&show=startdelay

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


Randem said:
Yes, in the HKCU as well as the HKLM registry areas

--
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



Are you referring to which programs load
after you login?

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


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
 
K

Kelly

Q179365 INFO: Run, RunOnce, RunServices, RunServicesOnce and Startup
http://support.microsoft.com/support/kb/articles/q179/3/65.asp


Run and RunOnce Registry Keys

Run and RunOnce registry keys cause programs to run each time that a user
logs on. The data value for a key is a command line. Register programs to
run by adding entries of the form description-string=commandline. You can
write multiple entries under a key. If more than one program is registered
under any particular key, the order in which those programs run is
indeterminate....

--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm
 
R

Randem

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 list but 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. :)


Randem said:
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



Tim Meddick said:
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
 
R

Randem

Thanks.

--
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



Kelly said:
Q179365 INFO: Run, RunOnce, RunServices, RunServicesOnce and Startup
http://support.microsoft.com/support/kb/articles/q179/3/65.asp


Run and RunOnce Registry Keys

Run and RunOnce registry keys cause programs to run each time that a user
logs on. The data value for a key is a command line. Register programs to
run by adding entries of the form description-string=commandline. You can
write multiple entries under a key. If more than one program is registered
under any particular key, the order in which those programs run is
indeterminate....

--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


Randem said:
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
 
B

Bill in Co.

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...

That sounds like a pretty pathetic software design, IF that is indeed the
case (which sounds dubious).
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 list but 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. :)


Randem said:
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
 
R

Randem

Dubios, pathetic or not that is the way the Internet Cafe software works...

--
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



Bill in Co. said:
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...

That sounds like a pretty pathetic software design, IF that is indeed the
case (which sounds dubious).
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 list but 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

 
P

Peter Foldes

Try and see the following

HKEY_LOCAL_MACHINE Software\Microsoft\Shared Tools\MSConfig\startupfolder and
startupreg
 
R

Randem

What is that 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



Peter Foldes said:
Try and see the following

HKEY_LOCAL_MACHINE Software\Microsoft\Shared Tools\MSConfig\startupfolder
and startupreg

--
Peter

Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.

Randem said:
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
 
K

Kelly

They do play a part; however, same difference while in LM.

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


Peter Foldes said:
Try and see the following

HKEY_LOCAL_MACHINE Software\Microsoft\Shared Tools\MSConfig\startupfolder
and startupreg

--
Peter

Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.

Randem said:
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
 
T

Tim Meddick

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 list but 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. :)


Randem said:
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

 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top