MSFN Forum: The Best Way to make multi RUNONCEEX.CMD - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

The Best Way to make multi RUNONCEEX.CMD Rate Topic: -----

#1 User is offline   The Black Cloud 

  • Moon Lover
  • PipPip
  • Group: Members
  • Posts: 168
  • Joined: 27-May 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 October 2004 - 05:05 AM

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


#2 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 16 October 2004 - 05:10 AM

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

#3 User is offline   The Black Cloud 

  • Moon Lover
  • PipPip
  • Group: Members
  • Posts: 168
  • Joined: 27-May 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 October 2004 - 05:17 AM

sorry evilvoice but it is work nice

when the program menu finished install programs the menu is close and complete install next menu

Try it

i am sorry for my Bad english

#4 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 16 October 2004 - 06:17 AM

Please, remove your serial of ACDSee!!

#5 User is offline   The Black Cloud 

  • Moon Lover
  • PipPip
  • Group: Members
  • Posts: 168
  • Joined: 27-May 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 October 2004 - 06:52 AM

Thanks Mazin

#6 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 16 October 2004 - 07:16 AM

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.

#7 User is offline   nateklomp 

  • MS Junkie since DOS2.1
  • PipPip
  • Group: Members
  • Posts: 122
  • Joined: 12-May 04

Posted 25 October 2004 - 03:10 AM

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

#8 User is offline   ran 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 18-August 04

Posted 25 October 2004 - 02:49 PM

mazin, on Oct 16 2004, 06:17 AM, said:

Please, remove your serial of ACDSee!!

And WinAMP! ;)


Ran

#9 User is offline   glent 

  • Tpyo Spceialist
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,041
  • Joined: 16-August 04

Posted 08 November 2004 - 03:05 AM

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

#10 User is offline   hasi001 

  • Coder
  • PipPipPip
  • Group: Members
  • Posts: 324
  • Joined: 27-September 04

Posted 08 November 2004 - 03:43 AM

Have you tried WPI ? Does the same, but has a nice GUI, there's a central configuration file and ist multilingual.

#11 User is offline   SC00BS 

  • Newbie
  • Group: Members
  • Posts: 46
  • Joined: 29-October 04

Posted 08 November 2004 - 03:51 AM

WPI rocks !! :thumbup

#12 User is offline   muslim 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 03-April 04

Posted 18 November 2004 - 06:31 PM

hi can you answer my quitions

http://www.msfn.org/board/index.php?showto...=0&#entry222613

#13 User is offline   big poppa pump 

  • Damn Newbies!!
  • PipPipPip
  • Group: Members
  • Posts: 406
  • Joined: 10-September 03

Posted 19 November 2004 - 10:18 AM

muslim, on Nov 18 2004, 06:31 PM, said:


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.

#14 User is offline   The Black Cloud 

  • Moon Lover
  • PipPip
  • Group: Members
  • Posts: 168
  • Joined: 27-May 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 November 2004 - 03:52 PM

hello

new batch compiler program

Quick Batch File Compiler

:thumbup

#15 User is offline   avr3 

  • Newbie
  • Group: Banned
  • Posts: 27
  • Joined: 30-July 04

Posted 20 November 2004 - 01:52 AM

Don't work !!!!

RunOnceEx.cmd

Quote

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

Quote

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

Quote

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

#16 User is offline   muslim 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 03-April 04

Posted 20 November 2004 - 09:53 AM

hi can any one get this programs full version

#17 User is offline   avr3 

  • Newbie
  • Group: Banned
  • Posts: 27
  • Joined: 30-July 04

Posted 20 November 2004 - 10:30 AM

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

Quote

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

Quote

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

Quote

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

#18 User is offline   `Felix` 

  • MSFN Contributor
  • PipPipPip
  • Group: Members
  • Posts: 481
  • Joined: 28-July 04

Posted 16 February 2005 - 09:15 AM

evilvoice, on Oct 16 2004, 09:16 PM, said:

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.
<{POST_SNAPBACK}>


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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy