QUOTE (thuun derboy @ Mar 12 2006, 03:50 AM)

Syntax to start a new instance of rununceex:
CODE
rundll32.exe iernonce.dll,RunOnceExProcess
Just add that to run the entries that preceede it.
For an example, I'll attach my scripts, well actually, the whole little pile in $OEM$.btw,
My apps start setting up just prior to last scheduled reboot, the last entries then run
after reboot.
Notice it calls on roex2.cmd which adds my security apps for install after
reboot #2, then one last reboot to finish the job, this could go on and on.

~happy deployment!
Oooh hold on guys.
You simply add a runonceex2.cmd command at the final step of your runonceex? This way you are giving up installation time just because the list of apps doesn't fit in the RunOnceEx list? That's a shame!
QUOTE
I do this because too many installs without a reboot = bad news.
No thats a false conclusion from correct experiences. You need to understand why a reboot would be necessary for an install. Files might be in use, tasks have to be performed (an AV for example) etc. This cannot effect the installation of other software. Also, when RunOnceEx is running there are few other processes running. I (and many more people) can install over 100+ apps before rebooting.
Why don't you group items together, for example I use 'system tools' for AV and lots of other things...
I only have a small list, advantages during install:
+ readable for everyone
+ in just one-view you see how many items there are
I must be honest, I have 2 RunOnceExs as well, but for a totally different reason. Check my CMDLines.txt:
CODE
[COMMANDS]
"RunOnceEx.cmd"
"REGEDIT /S regtweaks.reg"
"users.cmd"
"CHKNTFS /T:0"
"rundll32.exe iernonce.dll,RunOnceExProcess"
This way, RunOnceEx will start at T12 (directly after cmdlines and its commands have finished).
But there are 3 things I cannot let this RunOnceEx do, they have to be done after the 1st reboot:
-Activate WinXP with an AutoIt script (not via internet

)
-install WM10Lite
- start WIHU at the end so installing user can create accounts etc.
It is logical that these things HAVE to run after reboot, so I simply create a 2nd RunOnceEx for this. It is not meant for installing apps/adding regtweaks/cleaning up etc.
This is how you start a second RunOnceEx, simply by adding the command to your first RunOnceEx:
CODE
blablabla (Your 1st RunOnceEx)
and as final you give the command to start 2nd RunOnceEx:
(wich will be executed at the next reboot. For me, this means after the 1st boot)
REG ADD %KEY%\040 /VE /D "tasks after restart" /f
REG ADD %KEY%\040 /V 1 /D "%CDDRIVE%InstallApps\InstallSettings\RunOnceEx.cmd" /f
Notice my 2nd RunOnceEx has the same name as my 1st, but it is located elsewhere.
So my 2nd RunOnceEx actually gets executed at the moment most other people execute their RunOnceEx for installing apps etc.
I really DO NOT recommend you use this just to split your long RunOnceEx in pieces, it means it will take a lot time to finish and it is just not a nice method. Grouping is the best.
--> BTW, if grouping items still doesn't help you, you could use the Rundll32 command+RunOnceEx2 --> in 1 startsecondROE.cmd file, and let your first RunOnceEx execute this file at the end.
After your 1st RunOnceEx has finished, a 2nd one should start immediately

EDIT:
it is in Dutch, but here is my (1st) RunOnceEx, you can see how I grouped items:
EDIT2: Actually I still haven't been that honest. I also have a big 7zip file (it is called SYSTEMDRIVE.7z, check the RunOnceEx) wich contains many small apps like ExactAudioCopy, MediaPlayerClassic, Nvu (free websitebuilder) and lots of other software that don't need an installer but can be extracted to their location. Also contains settings.ini for apps, Winamp plugins etc. Since I now narrowed down the list of items to be installed, what is rest can be easily grouped in the RunOnceEx.