Jump to content

The Best Way to make multi RUNONCEEX.CMD


 Share

Recommended Posts

hi 4 all

this is the best way to make multi RUNONCEEX.CMD

first make the main RUNONCEEX.CMD in OEM Folder

RUNONCEEX.CMD

cmdow @ /HID
@echo off

ECHO.
SET CDROM=
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:
IF EXIST K:\CD.txt SET CDROM=K:
IF EXIST L:\CD.txt SET CDROM=L:
IF EXIST L:\CD.txt SET CDROM=M:
IF EXIST L:\CD.txt SET CDROM=N:
IF EXIST L:\CD.txt SET CDROM=O:
IF EXIST L:\CD.txt SET CDROM=P:

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

REG ADD %KEY% /V TITLE /D "Installing Applications (By RabyTec)" /f

REG ADD %KEY%\001 /VE /D "Installing MultiMedia Tools" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\install\SetupFiles\RUNONCEEX_MM.EXE" /f

REG ADD %KEY%\002 /VE /D "Installing Utilities" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\install\SetupFiles\RUNONCEEX_UL.EXE" /f

REG ADD %KEY%\003 /VE /D "Installing Internet Tools" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\install\SetupFiles\RUNONCEEX_IN.EXE" /f

REG ADD %KEY%\004 /VE /D "Installing Anti Virus" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\install\SetupFiles\RUNONCEEX_AV.EXE" /f

REG ADD %KEY%\005 /VE /D "Installing Office And Photoshop" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\SetupFiles\RUNONCEEX_OF.EXE" /f


EXIT

MultiMedia Tools

RUNONCEEX_MM.CMD

cmdow @ /HID
@echo off

ECHO.
SET CDROM=
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:
IF EXIST K:\CD.txt SET CDROM=K:
IF EXIST L:\CD.txt SET CDROM=L:
IF EXIST M:\CD.txt SET CDROM=M:
IF EXIST N:\CD.txt SET CDROM=N:
IF EXIST O:\CD.txt SET CDROM=O:
IF EXIST P:\CD.txt SET CDROM=P:

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

REG ADD %KEY% /V TITLE /D "Installing MultiMedia Tools" /f

REG ADD %KEY%\001 /VE /D "K-Lite Codec Pack 2.26 Full" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\install\Klite\klcodec.exe /VERYSILENT" /f

REG ADD %KEY%\002 /VE /D "DivX 2.5.5 Full" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\install\Klite\DivX2.5.5.exe /S" /f

REG ADD %KEY%\003 /VE /D "InterVedio WinDVD Platinum v6.0" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\install\WinDVD\Setup.cmd" /f
REG ADD %KEY%\003 /V 2 /D "pskill WinCinemaMgr.exe" /f

REG ADD %KEY%\004 /VE /D "Winamp Pro 5.0" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\install\Winamp\Setup.msi Xaudio=1 Xvideo=1 Xintex=1 Xvisual=1 Xextra=1 Xregopt=1 Xmodernskin=1 Xname=Admin Xkey=xxxxx-xxxxx-xxxxx-xxxxx /qn" /f

REG ADD %KEY%\005 /VE /D "Easy Save Flash & FlashPlayer" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\FLash\EZSaveFlash.exe /s" /f
REG ADD %KEY%\005 /V 2 /D "%CDROM%\install\FLash\Crack.exe" /f
REG ADD %KEY%\005 /V 3 /D "%CDROM%\install\FLash\FlashPlayer.exe /s" /f

REG ADD %KEY%\006 /VE /D "Quick Time 6.0" /f
REG ADD %KEY%\006 /V 1 /D "%CDROM%\Install\QuickTime\Setup.exe" /f

REG ADD %KEY%\007 /VE /D "Real Player 10" /f
REG ADD %KEY%\007 /V 1 /D "%CDROM%\INSTALL\RealPlayer\Setup.exe /s" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

Installing Utilities

RUNONCEEX_UL.CMD

cmdow @ /HID
@echo off

ECHO.
SET CDROM=
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:
IF EXIST K:\CD.txt SET CDROM=K:
IF EXIST L:\CD.txt SET CDROM=L:
IF EXIST M:\CD.txt SET CDROM=M:
IF EXIST N:\CD.txt SET CDROM=N:
IF EXIST O:\CD.txt SET CDROM=O:
IF EXIST P:\CD.txt SET CDROM=P:

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

REG ADD %KEY% /V TITLE /D "Installing Utilities" /f

REG ADD %KEY%\001 /VE /D "Adding Themes" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\install\Themes\THEMES.exe" /f

REG ADD %KEY%\002 /VE /D "Adobe Reader 6.0.1" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\install\Acrobat\Acrobat.cmd" /f

REG ADD %KEY%\003 /VE /D "ACDSee 7.0 PowerPack" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\install\ACDSee\ACDSee.msi /QB PIDKEY=xxxxxxxxxxxxxxxxx LICENSE_MODEL=Full" /f
REG ADD %KEY%\003 /V 2 /D "REGEDIT /S %CDROM%\Install\ACDSee\ACDSee.reg" /f

REG ADD %KEY%\004 /VE /D "PerfectDisk" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\Install\PerfectDisk\PerfectDisk.msi /QB" /f

REG ADD %KEY%\005 /VE /D "Dictionary And Babylon Dictionary" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Install\Dictionary\Dictionary.exe" /f
REG ADD %KEY%\005 /V 2 /D "%CDROM%\install\Babylon\Babylon.exe" /f
REG ADD %KEY%\005 /V 3 /D "REGEDIT /S %CDROM%\install\Babylon\Babylon.reg" /f

REG ADD %KEY%\006 /VE /D "WinRAR 3.4 Final" /f
REG ADD %KEY%\006 /V 1 /D "%CDROM%\Install\WinRAR\Setup.exe /s" /f
REG ADD %KEY%\006 /V 2 /D "%CDROM%\Install\WinRAR\Rarreg.exe" /f

REG ADD %KEY%\007 /VE /D "TuneUp Utilities 2004" /f
REG ADD %KEY%\007 /V 1 /D "%CDROM%\INSTALL\TuneUp\TuneUp.exe /q" /f
REG ADD %KEY%\007 /V 2 /D "REGEDIT /S %CDROM%\Install\TuneUp\Reg.reg" /f

REG ADD %KEY%\008 /VE /D "**** NFO Viewer" /f
REG ADD %KEY%\008 /V 1 /D "%CDROM%\INSTALL\DamnNFO\Setup.exe" /f
REG ADD %KEY%\008 /V 2 /D "REGEDIT /S %CDROM%\Install\DamnNFO\Reg.reg" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

Internet Tools

RUNONCEEX_IN.CMD

cmdow @ /HID
@echo off

ECHO.
SET CDROM=
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:
IF EXIST K:\CD.txt SET CDROM=K:
IF EXIST L:\CD.txt SET CDROM=L:
IF EXIST M:\CD.txt SET CDROM=M:
IF EXIST N:\CD.txt SET CDROM=N:
IF EXIST O:\CD.txt SET CDROM=O:
IF EXIST P:\CD.txt SET CDROM=P:

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

REG ADD %KEY% /V TITLE /D "Installing Internet Tools" /f

REG ADD %KEY%\001 /VE /D "MSN Messenger 7.0 Beta" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\install\Chat\MsnMsgs.msi /qn" /f
REG ADD %KEY%\001 /V 2 /D "%CDROM%\install\Chat\MSN.exe" /f

REG ADD %KEY%\002 /VE /D "Yahoo Messenger 6.0.0.1750" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\install\Chat\Yahoo.exe /s" /f
REG ADD %KEY%\002 /V 2 /D "pskill YPager.exe" /f

REG ADD %KEY%\003 /VE /D "Avant Browser 10.0 Build 015" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\Install\Avant\setup.exe /S" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

Anti Virus

RUNONCEEX_AV.CMD

cmdow @ /HID
@echo off

ECHO.
SET CDROM=
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:
IF EXIST K:\CD.txt SET CDROM=K:
IF EXIST L:\CD.txt SET CDROM=L:
IF EXIST M:\CD.txt SET CDROM=M:
IF EXIST N:\CD.txt SET CDROM=N:
IF EXIST O:\CD.txt SET CDROM=O:
IF EXIST P:\CD.txt SET CDROM=P:

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

REG ADD %KEY% /V TITLE /D "Installing Anti Virus" /f

REG ADD %KEY%\001 /VE /D "Kaspersky AntiVirus" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\install\Kaspersky\kav5.0.156_personalen.exe /S" /f
REG ADD %KEY%\001 /V 2 /D "%CDROM%\install\Kaspersky\1.cmd" /f

REG ADD %KEY%\002 /VE /D "Ad-Aware SE Professional" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\install\ADAware\Setup.exe /S" /f
REG ADD %KEY%\002 /V 2 /D "pskill Ad-Aware.exe" /f
REG ADD %KEY%\002 /V 3 /D "pskill hh.exe" /f
REG ADD %KEY%\002 /V 4 /D "%CDROM%\install\ADAware\defs.exe" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

Office And Photoshop

RUNONCEEX_Of.CMD

mdow @ /HID
@echo off

ECHO.
SET CDROM=
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:
IF EXIST K:\CD.txt SET CDROM=K:
IF EXIST L:\CD.txt SET CDROM=L:
IF EXIST M:\CD.txt SET CDROM=M:
IF EXIST N:\CD.txt SET CDROM=N:
IF EXIST O:\CD.txt SET CDROM=O:
IF EXIST P:\CD.txt SET CDROM=P:

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

REG ADD %KEY% /V TITLE /D "Installing Office And Photoshop" /f

REG ADD %KEY%\001 /VE /D "Extracting and Installing Office 2003" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\install\Office.cmd" /f

REG ADD %KEY%\002 /VE /D "Adobe photShop CS ME" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\Install\Photoshop\Setup.exe" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

then use this tool to convert from CMD to EXE

Download CMD2EXE

use it from commad line

cmd2exe -i RUNONCEEX_UL.CMD -o RUNONCEEX_UL.EXE

Note: dont convert the main RUNONCEEX.CMD

it is work properly

thanks

Link to comment
Share on other sites


no, I dont believe this is perfect...for one, you will have like 5 or 6 runonceex windows open at the end, all waiting to close, or maybe I am wrong...but this has already been discussed which I think theoretically, the way that was already posted is about the best way to do multiple runonceex's (search if you want to find it...it really does look good [code-wise])

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

Syntax for the RunOnceEx Registry Key

Definition of Values and Subkeys

Flags is a DWORD value located in the RunOnceEx key to enable/disable the following settings.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]
Flags = dword:00000080

0x00000000 Default; All functions are disabled 
0x00000004 Verifies the shell is ready to accept OLE commands
0x00000008 Error dialog boxes are not displayed
0x00000010 Create C:\Windows\RunOnceEx.err file if errors occur
0x00000020 Create a C:\Windows\RunOnceEx.log file with status of commands
0x00000040 Does not trap exceptions that occur when registering DLLs
0x00000080 Status dialog box is not displayed while RunOnceEx runs

Hope this helps...

Link to comment
Share on other sites

  • 2 weeks later...

great guide BUT cmd2exe is a trial version and the exe's created only work for 1 day then they will not work after that so is there an alternative software?

EDIT I found batch file compiler and it works fine

Link to comment
Share on other sites

  • 2 weeks later...

Stop posting crap in threads. What does your post have to do anything with multiple RunOnceEX?

I actually use an inf installer for installing my apps and I call up inf's in sequence to do my installation. So far I have had absolutely no problems with this method.

Link to comment
Share on other sites

Don't work !!!!

RunOnceEx.cmd

cmdow @ /HID

@echo off

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

REG ADD %KEY% /V TITLE /D "Installazione Aggiornamenti" /f

REG ADD %KEY%\040 /VE /D "Msn Messenger 6.2" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\MsnMsgs.msi /QB" /f

REG ADD %KEY%\900 /V 1 /D "%systemdrive%\install\RunOnceEx1.exe" /f

REG ADD %KEY%\910 /V 1 /D "%systemdrive%\install\RunOnceEx2.exe" /f

EXIT

RunOnceEx1.exe
cmdow @ /HID

@echo off

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

REG ADD %KEY% /V TITLE /D "Installazione Programmi" /f

REG ADD %KEY%\125 /VE /D "Codec Ac3" /f

REG ADD %KEY%\125 /V 1 /D "%systemdrive%\install\Codec\ac3filter_0_70b.exe /S" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

RunOnceEx2.exe

cmdow @ /HID

@echo off

REG ADD %KEY%\145 /VE /D "Applicazione delle key di registro personalizzate" /f

REG ADD %KEY%\145 /V 1 /D "REGEDIT /S %systemdrive%\install\keyregistro.reg" /f

REG ADD %KEY%\147 /V 1 /D "REGEDIT /S %systemdrive%\nod32.reg" /f

REG ADD %KEY%\150 /VE /D "Copia dei link nei preferiti" /f

REG ADD %KEY%\150 /V 1 /D "%systemdrive%\install\linksat.cmd" /f

REG ADD %KEY%\150 /VE /D "Copia dei collegamenti programmi sat" /f

REG ADD %KEY%\150 /V 1 /D "%systemdrive%\install\collegamentisat.cmd" /f

REG ADD %KEY%\150 /VE /D "Copia di file importanti" /f

REG ADD %KEY%\150 /V 1 /D "%systemdrive%\install\copiafile.cmd" /f

REG ADD %KEY%\155 /VE /D "Eliminazione delle directory temporanee e riavvio del pc" /f

REG ADD %KEY%\160 /V 1 /D "%systemdrive%\install\del.cmd" /f

REG ADD %KEY%\165 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

Because ?????????

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...