Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
Mikep7779

Too many installs to be seen on the Runonce list?

Recommended Posts


Is this in vmware or a real machine?

Look in your winnt.sif file

[Display]
BitsPerPel = 32
Xresolution = 1280
Yresolution = 1024
Vrefresh= 60
AutoConfirm=1

Make sure you fill in your own settings.

Share this post


Link to post
Share on other sites

i get the same thing as well...i have abt 30 apllications.....ive tried divinding it into multimedia, internet, system, etc....and calling these runonce files from the answer file but to no avail...something goes drastically wrong.

Share this post


Link to post
Share on other sites

i run about 20 installs, 6-7 of them are batch files, i use them to install the small stuff like wallpapers, user acct picts, & other misc things, in each batch file i have about 5-10 items, i am actually getting ready to revamp my install so the last batch file be4 cleanup will have about 10-15 installs..........

Share this post


Link to post
Share on other sites

Have you thought of breaking the install of apps into separate cmd that are installed by the runonce method.

Example of what I mean, then inside of each cmd have all the app install.

for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%i

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "The Install Section" /f

REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\001 /VE /D "Application 001" /f

REG ADD %KEY%\001 /V 1 /D "%CDROM%Apps\App1.cmd" /f

REG ADD %KEY%\003 /VE /D "Application 002" /f

REG ADD %KEY%\003 /V 1 /D "%CDROM%Apps\App2.cmd " /f

REG ADD %KEY%\005 /VE /D "Application 003" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%Apps\App3.cmd" /f

Share this post


Link to post
Share on other sites
Run your CMD file from CMDLines.txt

I have attached my runonce file as an example

Just rename it to .cmd

Is there a guide online so i can readup on doing that? (Spliting it into parts)

Share this post


Link to post
Share on other sites

I have several runoncex windows, one for apps, one for regtweaks. one for cleanup.... I just called it runoncex2, and call it from the end of the original runonceex...

Once windows is installed, ROE runs, installs hotifxes, reassings drive letters, then reboots, then runoncex2 runs, installs apps, then a new roe window opens to install regtweaks, and a final one to cleanup, its just a case of calling the roe procedure again.

I will be happy to provide more info, but am at work at mo, and dont have access to the files...

This is my runonceex2.cmd, which has multiple windows, so it is only as big as I want it!!!!

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

for %%a in (z y x w v u t s r q p o n m l k j i h g f e d c) do if exist %%a:\I386 (

set CDROM=%%a:

goto install

)

:install

REG ADD %KEY% /V TITLE /D "Applications" /f

REG ADD %KEY%\014 /VE /D "WinRAR" /f

REG ADD %KEY%\004 /V 01 /D "\"%CDROM%\Software\WinRAR\WinRAR.exe\" /s" /f

REG ADD %KEY%\015 /VE /D "UltraISO" /f

REG ADD %KEY%\015 /V 01 /D "\"%CDROM%\Software\UltraISO\UltraISO.exe\" /VERYSILENT /SP-" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Registry & Cleanup" /f

REG ADD %KEY%\000 /VE /D "UltraISO" /f

REG ADD %KEY%\000 /V 01 /D "regedit /s \"%CDROM%\Software\UltraISO\uisoREG.reg\"" /f

REG ADD %KEY%\001 /VE /D "ExplorerXP" /f

REG ADD %KEY%\001 /V 01 /D "regedit /s \"%CDROM%\Software\ExplorerXP\expREG.reg\"" /f

REG ADD %KEY%\002 /VE /D "Download Manager" /f

REG ADD %KEY%\002 /V 01 /D "regedit /s \"%CDROM%\Software\Free DownMan\fdmREG.reg\"" /f

REG ADD %KEY%\003 /VE /D "WinRAR" /f

REG ADD %KEY%\003 /V 01 /D "regedit /s \"%CDROM%\Software\WinRAR\wrarREG.reg\"" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Custom Settings" /f

REG ADD %KEY%\000 /VE /D "Restore Manual Logon" /f

REG ADD %KEY%\000 /V 01 /D "regedit /s \"%WINDIR%\system32\manlogon.reg\"" /f

REG ADD %KEY%\001 /VE /D "Remove PageFile" /f

REG ADD %KEY%\001 /V 01 /D "%systemdrive%\removePF_D.cmd" /f

REG ADD %KEY%\050 /VE /D "Clean & Reboot" /f

REG ADD %KEY%\050 /V 5 /D "shutdown.exe -r -f -t 60 -c \"#FINAL BOOT SEQUENCE#\"" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

Just by inserting

rundll32.exe iernonce.dll,RunOnceExProcess
and starting the numbering sequence off agian, this opens up a new ROE window......

I personally use 2 ROE.... and call the second one, from the end of the first one, which runs after a reboot... this is my original runonceex.cmd...

cmdow @ /HID

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

for %%a in (z y x w v u t s r q p o n m l k j i h g f e d c) do if exist %%a:\I386 (

set CDROM=%%a:

goto install

)

:install

REG ADD %KEY% /V TITLE /D "Installing Drivers & Hotfixes" /f

REG ADD %KEY%\000 /VE /D "ATi Control Panel" /f

REG ADD %KEY%\000 /V 01 /D "\"%CDROM%\Software\ATi Control Panel\Setup.exe\" /k" /f

REG ADD %KEY%\001 /VE /D "Nvidia Audo Mixer" /f

REG ADD %KEY%\001 /V 01 /D "\"%CDROM%\Software\Nvidia Audo Mixer\Setup.exe\" /s" /f

REG ADD %KEY%\002 /VE /D "AutoPatcher Sept2005" /f

REG ADD %KEY%\002 /V 01 /D "\"%CDROM%\Software\AutoPatcher\AutoPatcher.exe\" /noeula /unattend:t1 /noreboot /defaults:%CDROM%\Software\AutoPatcher\defaults.ini" /f

REG ADD %KEY%\003 /VE /D "UPHClean (WinService)" /f

REG ADD %KEY%\003 /V 01 /D "\"%CDROM%\Software\UPHClean\uphclean.msi\" /quiet /passive" /f

REG ADD %KEY%\004 /VE /D "ReAssign Drives" /f

REG ADD %KEY%\004 /V 01 /D "%systemdrive%\mapdrive.cmd ENU" /f

REG ADD %KEY%\005 /VE /D "Moving Pagefile" /f

REG ADD %KEY%\005 /VE /D " " /f

REG ADD %KEY%\005 /V 01 /D "%systemdrive%\createPF_X.cmd" /f

REG ADD %KEY%\005 /V 02 /D "%systemdrive%\deletePF_C.cmd" /f

REG ADD %KEY%\010 /VE /D "##REBOOT REQUIRED##" /f

REG ADD %KEY%\010 /VE /D " " /f

REG ADD %KEY%\010 /V 01 /D "%WINDIR%\system32\ShutDown.cmd" /f

REG ADD %KEY%\015 /VE /D "##INSTALL APPS##" /f

REG ADD %KEY%\015 /VE /D " " /f

REG ADD %KEY%\015 /V 01 /D "%WINDIR%\system32\runonceex2.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

Edited by drscouse

Share this post


Link to post
Share on other sites

No.. thats not what I said... I personally reboot once, then it goes to the second runonceex....

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

for %%a in (z y x w v u t s r q p o n m l k j i h g f e d c) do if exist %%a:\I386 (

set CDROM=%%a:

goto install

)

:install

REG ADD %KEY% /V TITLE /D "Applications" /f

REG ADD %KEY%\014 /VE /D "WinRAR" /f

REG ADD %KEY%\004 /V 01 /D "\"%CDROM%\Software\WinRAR\WinRAR.exe\" /s" /f

REG ADD %KEY%\015 /VE /D "UltraISO" /f

REG ADD %KEY%\015 /V 01 /D "\"%CDROM%\Software\UltraISO\UltraISO.exe\" /VERYSILENT /SP-" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Registry & Cleanup" /f

REG ADD %KEY%\000 /VE /D "UltraISO" /f

REG ADD %KEY%\000 /V 01 /D "regedit /s \"%CDROM%\Software\UltraISO\uisoREG.reg\"" /f

REG ADD %KEY%\001 /VE /D "ExplorerXP" /f

REG ADD %KEY%\001 /V 01 /D "regedit /s \"%CDROM%\Software\ExplorerXP\expREG.reg\"" /f

REG ADD %KEY%\002 /VE /D "Download Manager" /f

REG ADD %KEY%\002 /V 01 /D "regedit /s \"%CDROM%\Software\Free DownMan\fdmREG.reg\"" /f

REG ADD %KEY%\003 /VE /D "WinRAR" /f

REG ADD %KEY%\003 /V 01 /D "regedit /s \"%CDROM%\Software\WinRAR\wrarREG.reg\"" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Custom Settings" /f

REG ADD %KEY%\000 /VE /D "Restore Manual Logon" /f

REG ADD %KEY%\000 /V 01 /D "regedit /s \"%WINDIR%\system32\manlogon.reg\"" /f

REG ADD %KEY%\001 /VE /D "Remove PageFile" /f

REG ADD %KEY%\001 /V 01 /D "%systemdrive%\removePF_D.cmd" /f

REG ADD %KEY%\050 /VE /D "Clean & Reboot" /f

REG ADD %KEY%\050 /V 5 /D "shutdown.exe -r -f -t 60 -c \"#FINAL BOOT SEQUENCE#\"" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

Just by inserting

rundll32.exe iernonce.dll,RunOnceExProcess

and starting the numbering sequence off agian, this opens up a new ROE window......

MY pc only reboots once, after installing hotfixes.... my first roe window

REG ADD %KEY% /V TITLE /D "Applications" /f

my second window

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Registry & Cleanup" /f

and my final windows, all from same script, without rebooting.....

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Custom Settings" /f

Edited by drscouse

Share this post


Link to post
Share on other sites

I only have 2 ROE, cos I choose to reboot after installing hotfixes.. my second ROE has 3 windows, and does not reboot after each one...

If you have one ROE, all you need to do is

Just by inserting

rundll32.exe iernonce.dll,RunOnceExProcess

and starting the numbering sequence off agian, this opens up a new ROE window......

You DO NOT need to rebbot at all, that is just my personal preference... all can be done from a single ROE file, just add that line above, and start of the numbering sequence again...

It is the

rundll32.exe iernonce.dll,RunOnceExProcess
that initiates a new ROE window...

If you want 4, and want to reboot after each of them, you will need to call the appropiate file at the end of each one, as in my case, the last entry in my runonceex.cmd is to execute runonceex2.cmd and so on...

I have highlighted the sections where a new window will open, notice the numbering starts from 00

again...

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Registry & Cleanup" /f

REG ADD %KEY%\000 /VE /D "UltraISO" /f

REG ADD %KEY%\000 /V 01 /D "regedit /s \"%CDROM%\Software\UltraISO\uisoREG.reg\"" /f

Edited by drscouse

Share this post


Link to post
Share on other sites

but with 'rundll32.exe iernonce.dll,RunOnceExProcess' lines RunOnceEx commands will be executed right the 12 min setup part, right?

there's no way to avoid this and execute it only on 1st logon?

Share this post


Link to post
Share on other sites

ROE works at first login...

Im not an expert, but I thought only stuff in the cmdlines.txt executed at the t12 stage....

All I know if it works fine for me, it seems to be a simple enough procedure... all I did was added that line, and started the numbering off, and a new ROE window opens up with the respective installs.. simple as that

The script at the top of the page (forget about multiple ROEs) will run at first login.. 1st window will open for Applications, then install WinRAR, ultraISO, then the second window wil run, called Registry and Cleanup, and finally a new window for Custom settings...

I sugges you try it, its a very simple procedure... it seems people are overcomplicating the process....

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...