Jump to content

Help With Runonceex.cmd


Recommended Posts

Can anyone please look over my runonceex.cmd file? I chcked it but i seem to be running into some problems right when it gets to installing java and going on from there... see below:

cmdow @ /HID

@echo off

FOR %%i IN (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:\variablerazvan.txt SET CDROM=%%i:

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

REG ADD %KEY% /V TITLE /D "Windows is now installing applications..." /f

REG ADD %KEY%\005 /VE /D "MSN Messenger 6" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\apps\msn\MsnMsgs.msi /qn" /f

REG ADD %KEY%\015 /VE /D "Office 2003 Professional" /f

REG ADD %KEY%\015 /V 1 /D "%CDROM%\apps\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%\025 /VE /D "Winrar" /f

REG ADD %KEY%\025 /V 1 /D "%CDROM%\apps\winrar\setup.exe /S" /f

REG ADD %KEY%\030 /VE /D "Acrobat Reader 7 Lite Version" /f

REG ADD %KEY%\030 /V 1 /D "%CDROM%\apps\acro\acro7lite.exe" /f

REG ADD %KEY%\035 /VE /D "eMule Special Edition" /f

REG ADD %KEY%\035 /V 1 /D "%CDROM%\apps\emule_install.cmd" /f

REG ADD %KEY%\037 /VE /D "Mozilla Firefox" /f

REG ADD %KEY%\037 /V 1 /D "%CDROM%\apps\firefox\firefox.exe" /f

REG ADD %KEY%\040 /VE /D "FlashGet 1.65" /f

REG ADD %KEY%\040 /V 1 /D "%CDROM%\apps\flashget\fgf165.exe /S" /f

REG ADD %KEY%\040 /V 2 /D "%CDROM%\apps\flashget_serial_tweak.cmd" /f

REG ADD %KEY%\047 /VE /D "Nero Burning ROM 6.6 Reloaded" /f

REG ADD %KEY%\047 /V 1 /D "REGEDIT /S %CDROM%\apps\Nero\register.reg" /f

REG ADD %KEY%\047 /V 2 /D "%CDROM%\apps\Nero\nero6600.exe" /f

-->also at nero, it doesnt install fully automated, it still asks for me to what i want to install...<---

REG ADD %KEY%\050 /VE /D "Adobe Photoshop 7" /f

REG ADD %KEY%\050 /V 1 /D "%CDROM%\apps\photoshop\Setup.exe" /f

REG ADD %KEY%\053 /VE /D "K Lite Mega Codec Pack 1.18" /f

REG ADD %KEY%\053 /V 1 /D "%CDROM%\codecs\mega118.exe /silent /loadinf=".\silent.inf"" /f

REG ADD %KEY%\055 /VE /D "Sun Java J2SE 1.5 with Update " /f

REG ADD %KEY%\055 /V 1 /D "%CDROM%\apps\java\j2re.exe /s /v"/qn [ADDLOCAL=jrecore[,extra][,other_US] | ALL] [iEXPLORER=1] [MOZILLA=1] [iNSTALLDIR=C:\Progra~1\Java] [REBOOT=Suppress] [JAVAUPDATE=0] [CUSTOM=0]"" /f

---> From here on, nothing gets installed! I dont know why! <--- :unsure:

REG ADD %KEY%\060 /VE /D "Winamp 5.08D" /f

REG ADD %KEY%\060 /V 1 /D "%CDROM%\apps\winamp\install.cmd" /f

REG ADD %KEY%\065 /VE /D "AnyDVD 4.5.7.2 Stable" /f

REG ADD %KEY%\065 /V 1 /D "%CDROM%\apps\anydvd\SetupAnyDVD4572.exe /S" /f

REG ADD %KEY%\065 /V 2 /D "%CDROM%\apps\anydvd\Key.AnyDVD" /f

REG ADD %KEY%\070 /VE /D "CloneCD 5.1.0.0 Stable" /f

REG ADD %KEY%\070 /V 1 /D "%CDROM%\apps\clonecd\SetupCloneCD5100.exe /S" /f

REG ADD %KEY%\070 /V 2 /D "%CDROM%\apps\clonecd\Key.CloneCD" /f

REG ADD %KEY%\075 /VE /D "BitComet v1201" /f

REG ADD %KEY%\075 /V 1 /D "%CDROM%\apps\bitcomet\bcomet1201unst.exe /S D=%systemdrive%:\progra~1\BitCmt /NCRC" /f

REG ADD %KEY%\076 /VE /D "FlashFXP Scene Edition" /f

REG ADD %KEY%\076 /V 1 /D "%CDROM%\apps\fxp\flashfxp.exe /SILENT" /f

REG ADD %KEY%\076 /V 2 /D "%CDROM%\apps\fxp\reg.cmd" /f

REG ADD %KEY%\077 /VE /D "Installing Flash and Shockwave Player" /f

REG ADD %KEY%\077 /V 1 /D "%CDROM%\apps\shockwave\flashshockwavefull.exe /s" /f

REG ADD %KEY%\077 /VE /D "Daemon Tools 3.47" /f

REG ADD %KEY%\077 /V 1 /D "%CDROM%\apps\daemontools\daemon347.msi /qn REBOOT=ReallySuppress" /f

REG ADD %KEY%\078 /VE /D "Alcohol 120 Percent" /f

REG ADD %KEY%\078 /V 1 /D "%CDROM%\apps\alcohol\setup.exe /qn REBOOT=Suppress" /f

REG ADD %KEY%\078 /V 2 /D "REGEDIT /S %CDROM%\apps\alcohol\register.reg" /f

REG ADD %KEY%\079 /VE /D "Lavasoft Ad-Aware SE Pro 1.5" /f

REG ADD %KEY%\079 /V 1 /D "%CDROM%\apps\Ad-Aware\aawSEPro105install.vbs" /f

REG ADD %KEY%\080 /VE /D "Lavasoft Ad-Aware SE Pro Plugins" /f

REG ADD %KEY%\080 /V 1 /D "%CDROM%\apps\Ad-Aware\aawSEProPlugin\plfilespecs.exe /s" /f

REG ADD %KEY%\080 /V 2 /D "%CDROM%\apps\Ad-Aware\aawSEProPlugin\plhexdump.exe /s" /f

REG ADD %KEY%\080 /V 3 /D "%CDROM%\apps\Ad-Aware\aawSEProPlugin\pllspexplorer.exe /s" /f

REG ADD %KEY%\080 /V 4 /D "%CDROM%\apps\Ad-Aware\aawSEProPlugin\plmessengerstop.exe /s" /f

REG ADD %KEY%\080 /V 5 /D "%CDROM%\apps\Ad-Aware\aawSEProPlugin\ploemessenger.exe /s" /f

REG ADD %KEY%\080 /V 6 /D "%CDROM%\apps\Ad-Aware\aawSEProPlugin\pltweakse.exe /s" /f

REG ADD %KEY%\080 /V 7 /D "%CDROM%\apps\Ad-Aware\aawSEProPlugin\plvx2cleaner.exe /s" /f

REG ADD %KEY%\081 /VE /D "mIRC 6.16" /f

REG ADD %KEY%\081 /V 1 /D "%CDROM%\apps\mirc\instal.cmd" /f

REG ADD %KEY%\095 /VE /D "Importing Registry Tweaks" /f

REG ADD %KEY%\095 /V 1 /D "REGEDIT /S %CDROM%\apps\tweaks.reg" /f

REG ADD %KEY%\100 /VE /D "Cleaning Up and Rebooting" /f

REG ADD %KEY%\100 /V 1 /D "%CDROM%\apps\cleanup.cmd" /f

EXIT

Any help will be really appreciated! :}

Link to comment
Share on other sites


I can't answer all of the problems, but the nero should read more like

%systemdrive%\install\Apps\Nero6\nero6600.exe /silent /noreboot /no_ui /sn=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /write_sn

now I use batch file on a floppy to run my stuff, and when I run into a problem, I echo out the line that seems to be causeing the problem, just to make sure the rest works.

Maybe you could move the java entry down to the bottom of the list and see if all works then :}

Link to comment
Share on other sites

What exactly DOES happen? Do they appear in the RunOnceEX window? are they just skipped during execution?

REG ADD %KEY%\053 /VE /D "K Lite Mega Codec Pack 1.18" /f
REG ADD %KEY%\053 /V 1 /D "%CDROM%\codecs\mega118.exe /silent /loadinf=".\silent.inf"" /f

Should be

REG ADD %KEY%\053 /VE /D "K Lite Mega Codec Pack 1.18" /f
REG ADD %KEY%\053 /V 1 /D "%CDROM%\codecs\mega118.exe /silent /loadinf=\".\silent.inf\"" /f

REG ADD %KEY%\055 /VE /D "Sun Java J2SE 1.5 with Update " /f
REG ADD %KEY%\055 /V 1 /D "%CDROM%\apps\java\j2re.exe /s /v"/qn [ADDLOCAL=jrecore[,extra][,other_US] | ALL] [IEXPLORER=1] [MOZILLA=1] [INSTALLDIR=C:\Progra~1\Java] [REBOOT=Suppress] [JAVAUPDATE=0] [CUSTOM=0]"" /f

Should be

REG ADD %KEY%\055 /VE /D "Sun Java J2SE 1.5 with Update " /f
REG ADD %KEY%\055 /V 1 /D "%CDROM%\apps\java\j2re.exe /s /v\"/qn ADDLOCAL=jrecore,extra,other_US IEXPLORER=1 MOZILLA=1 INSTALLDIR=C:\Progra~1\Java REBOOT=Suppress JAVAUPDATE=0 CUSTOM=0\"" /f

That's all the parse errors i could see off the bat. I'm guessing it's your screwy quotes messing things up :)

Also, I don't believe all those [] around the MSI Properties were neccesary, nor do I believe you know what some of them do.

[ADDLOCAL=jrecore[,extra][,other_US] | ALL]

Is giving you an option of all the different stuff. To be used it must be

ADDLOCAL=jrecore

or

ADDLOCAL=jrecore,extra,other_US

or

ADDLOCAL=ALL

Understand what I'm getting at? It's just listing the possible values for YOU to choose.

Link to comment
Share on other sites

@ ^_^: I will try that for nero and java...

@Alanoll: Everything after the java does NOT appear in the runonceex window. It seems they are just skipped, because nothing installs after the java entry (which is at the bottom of the runonceex window). Just to confirm this, I checked the program files directory on my hdd, and the rest of the apps arent installed... i hope you understand better now.

Link to comment
Share on other sites

@ ^_^:  I will try that for nero and java...

@Alanoll: Everything after the java does NOT appear in the runonceex window. It seems they are just skipped, because nothing installs after the java entry (which is at the bottom of the runonceex window). Just to confirm this, I checked the program files directory on my hdd, and the rest of the apps arent installed... i hope you understand better now.

I edited my post, so perhaps you could take a look :whistle: Hope my edits make your stuff work.

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