Jump to content

The Best Way to make multi RUNONCEEX.CMD


Recommended Posts


All ok, I have resolved the problem. They are successful to make 6 groups of installation without to make every turns the reboot

RunOnceEx.cmd

cmdow @ /HID

@echo off

IF EXIST D:\CD.txt set CDROM=D:

IF EXIST E:\CD.txt set CDROM=E:

IF EXIST F:\CD.txt set CDROM=F:

IF EXIST G:\CD.txt set CDROM=G:

IF EXIST H:\CD.txt set CDROM=H:

IF EXIST I:\CD.txt set CDROM=I:

IF EXIST J:\CD.txt set CDROM=J:

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

REG ADD %KEY%\005 /V 1 /D "%cdrom%\install\RunOnceEx1.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY%\010 /V 1 /D "%cdrom%\install\RunOnceEx2.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY%\015 /V 1 /D "%cdrom%\install\RunOnceEx3.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY%\020 /V 1 /D "%cdrom%\install\RunOnceEx4.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY%\025 /V 1 /D "%cdrom%\install\RunOnceEx5.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY%\030 /V 1 /D "%cdrom%\install\RunOnceEx6.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

RunOnceEx1.cmd
cmdow @ /HID

@echo off

IF EXIST D:\CD.txt set CDROM=D:

IF EXIST E:\CD.txt set CDROM=E:

IF EXIST F:\CD.txt set CDROM=F:

IF EXIST G:\CD.txt set CDROM=G:

IF EXIST H:\CD.txt set CDROM=H:

IF EXIST I:\CD.txt set CDROM=I:

IF EXIST J:\CD.txt set CDROM=J:

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

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

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

REG ADD %KEY%\005 /V 1 /D "%cdrom%\install\antivirus.cmd" /f

REG ADD %KEY%\010 /VE /D "Oupost Firewall 2.5 - Al termine dell'installazione non riavviare il pc" /f

REG ADD %KEY%\010 /V 1 /D "%cdrom\install\Agnitum\OutpostProInstall.exe" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

RunOnceEx2.cmd

cmdow @ /HID

@echo off

IF EXIST D:\CD.txt set CDROM=D:

IF EXIST E:\CD.txt set CDROM=E:

IF EXIST F:\CD.txt set CDROM=F:

IF EXIST G:\CD.txt set CDROM=G:

IF EXIST H:\CD.txt set CDROM=H:

IF EXIST I:\CD.txt set CDROM=I:

IF EXIST J:\CD.txt set CDROM=J:

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

REG ADD %KEY% /V TITLE /D "Nero Burning" /f

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

REG ADD %KEY%\005 /V 1 /D "%cdrom%\install\Nero\nero6601.exe  /SILENT /NOREBOOT /SN=1A23-0058-4010-2386-2165-3416 /WRITE_SN" /f

REG ADD %KEY%\010 /VE /D "Nero 6.6.0.1 lingua italiana" /f

REG ADD %KEY%\010 /V 1 /D "%cdrom%\install\Nero\NBR6601ITA.exe  /SILENT /NOREBOOT" /f

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

REG ADD %KEY%\015 /V 1 /D "%cdrom%\install\Nero\NVE3014.exe  /SILENT /NOREBOOT /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /WRITE_SN" /f

REG ADD %KEY%\020 /VE /D "NeroVision 3.0.1.4 lingua italiana" /f

REG ADD %KEY%\020 /V 1 /D "%cdrom%\install\Nero\NVE3014ITA.exe  /SILENT /NOREBOOT" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

Bye, bye

Link to comment
Share on other sites

  • 2 months later...
as I said, I could be wrong...and it looks like I am...honestly though, I have no use for the runonceex menu...personally, it is just a testing tool...If youre unattended cd is made so that you dont have to sit by the computer, what purpose would multiple runonceex windows serve?  I would like to be able to hide the entire window is possible...maybe just display a message box that says:

"Computer is installing programs.

When finished, your computer will reboot and be ready to use"

But for me, the window for runonceex is just to make sure that it doesnt skip a certain install file while testing in vmware, after its been tested, there is really no point to the window...now some may say its nice to have a menu up in case someone walks by, thats why I said something about a message box...in fact, if someone has already done this (the hiding of runonceex and the messagebox) please, pm me so I can do this...the message box would have to be loaded so that it does not need to end for runonceex to continue to next item, but Im assuming the messagebox would be run from runonceex.

Easy to do using runonceex prcess.

now normally we would have something like

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\000 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\001 /VE /D "Installing Hotfixes..." /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\hotfix.cmd" /f

REG ADD %KEY%\002 /VE /D "Ad-Aware SE 6 Pro" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\adaware\aase6pro.exe /silent" /f
REG ADD %KEY%\002 /V 2 /D "process -k hh.exe" /f
REG ADD %KEY%\002 /V 3 /D "process -k ad-aware.exe" /f

REG ADD %KEY%\003 /VE /D "Symantec Antivirus 9.0 CE" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\savce\savce.exe" /f

Now to get the result you want simply remove the title lines for each application... then you would have a single line saying something like "Installing Software" and thats it.... example? try this...

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\000 /V 1 /D "%systemdrive%\install\prepare.cmd" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\hotfix.cmd" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\adaware\aase6pro.exe /silent" /f
REG ADD %KEY%\003 /V 1 /D "process -k hh.exe" /f
REG ADD %KEY%\004 /V 1 /D "process -k ad-aware.exe" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\savce\savce.exe" /f

Now i have not tested this specific solution, but i have played with some similar stuff... let me know how you go or what problems you have and i will spend some more time on it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...