SOOPAFLY Posted September 22, 2003 Posted September 22, 2003 after my batch finishes to install NERO my last batch file suddenly executes, please help because i don't have a clue of why this is happening.CLS@echo offCOLOR 0aTITLE Unattended Applications setupECHO.ECHO Starting Unattended Applications setupECHO.ECHO Installing Diskeeper 8.0.459 and setting scheduled task...start /wait %systemdrive%\install\Applications\Diskeeper8\DKPE.msi /qbMD "%programfiles%\Executive Software\Diskeeper\Scheduler"COPY "%systemdrive%\install\Applications\Diskeeper8\DfrgUINetCtrlFile" "%programfiles%\Executive Software\Diskeeper\Scheduler\"ECHO.ECHO Installing Nero Burning ROM v5.5.10.50 and plugins...start /wait %systemdrive%\install\Applications\Nero5.5.10.50\nero551050.exe /silent /noreboot<------------------------this is happening hereREGEDIT /S %systemdrive%\install\Applications\Nero5.5.10.50\register.regECHO.ECHO Installing Adobe Acrobat 4.05...start /wait %systemdrive%\install\Applications\Adobe_Acrobat4.05\ar405eng.exe -s -f1"%systemdrive%\install\Applications\Adobe_Acrobat4.05\setup.iss"RD /S /Q "%allusersprofile%\Start Menu\Programs\Adobe Acrobat 4.0"DEL "%allusersprofile%\Desktop\Acrobat Reader 4.0.lnk"ECHO.ECHO Installing AcdSee 3.1...start /wait %systemdrive%\install\Applications\AcdSee3.1\AcdSee3.1.EXE /sECHO.ECHO Installing RegCleaner 4.3 and setting scheduled task...start /wait %systemdrive%\install\Applications\RegCleaner4.3\RegCleaner.execall cscript %systemdrive%\install\Applications\RegCleaner4.3\regcleaner.vbsCOPY "%systemdrive%\install\Applications\RegCleaner4.3\RegCleanr.job" "%systemroot%\Tasks\"ECHO.ECHO Installing Winrar 3.20...start /wait %systemdrive%\install\Applications\WinRAR3.2\wrar320.exe /silentcall cscript %systemdrive%\install\Applications\WinRAR3.2\winrar.vbsECHO.ECHO Installing Winamp Lite 2.91...start /wait %systemdrive%\install\Applications\Winamp2.91\winamp291.exe /SECHO.ECHO Installing Flashget v1.4...start /wait "%systemdrive%\Install\Applications\Flashget1.4\fgf140.exe" /sREGEDIT /S "%systemdrive%\Install\Applications\Flashget1.4\regkey.reg"ECHO.ECHO Installing Video and Audio Codecs...start /wait %systemdrive%\install\Codecs\DivX505proCorp.exe start /wait %systemdrive%\install\Codecs\ac3filter_0_68b.exe /Sstart %systemdrive%\install\Codecs\xvid\XviD_Install.exe /Scall cscript %systemdrive%\install\Codecs\xvid\enter.vbsstart /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemdrive%\install\Codecs\Lame3.92\LameACM.infstart /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemdrive%\install\Codecs\mpeg4x\mpeg4fix.infECO.ECHO Installing NOD32 NOD32 Antivirus System...Start "%systemdrive%\install\Aplications\Nod32\setup.execall cscript "%systemdrive%\install\Aplications\Nod32\silent.vbs"XCOPY "%systemdrive%\install\Aplications\Nod32\nod32kui.exe" "%programfiles%\eset\" /C /H /R /YXCOPY "%systemdrive%\install\Aplications\Nod32\nod32.exe" "%programfiles%\eset\" /C /H /R /YXCOPY "%systemdrive%\install\Aplications\Nod32\ps_upd.dll" ""%programfiles%\eset\" /C /H /R /YECHO.ECHO Installing Sygate Personal Firewall Pro 5.1....start /wait %systemdrive%\install\Applications\SPFP\setup.exe -s -f1 %systemdrive%\install\Applications\SPFP\setup.issREGEDIT /S %systemdrive%\install\Applications\SPFP\register.regECHO.EXITmy last batch isCLS@echo offCOLOR 0aTITLE Final Adjustments - Cleanup defragmation and boot optimizationECHO.ECHO Deleting Temp Installation Files and startup items...RD /S /Q "%systemdrive%\install" RD /S /Q "%systemdrive%\drivers" RD /S /Q "%systemdrive%\Nvidia" ATTRIB -S -H -R "%programfiles%\InstallShield Installation Information" /S /DRD /S /Q "%programfiles%\InstallShield Installation Information"ATTRIB -S -H -R "%programfiles%\Uninstall Information" /S /DRD /S /Q "%programfiles%\Uninstall Information" ATTRIB -S -H -R "%systemroot%\prefetch" /S /DDEL /S /Q "%systemroot%\prefetch\*.*" DEL /S /Q "%systemroot%\Temp\*.*" ATTRIB -S -H -R"%userprofile%\Local Settings" /S /DDEL /S /Q "%userprofile%\Local Settings\Temp\*.*" REGEDIT /S "%systemdrive%\install\tools\startup_remove.reg"call cscript "%systemdrive%\install\tools\shortcuts2.vbs"ECHO.ECHO Enabling WFP...REGEDIT /S "%systemdrive%\install\tools\wfp_e.reg"ECHO.ECHO Defragmating system partition...diskeeper c /bECHO.ECHO Optimizing boot performance - system will restart in 10 seconds...start \wait bootvis.exe -prepsystemECHO.EXIT
DaveXP Posted September 22, 2003 Posted September 22, 2003 If thats the case insert a Pause and then when its finshed installing that, press any key to continue
SOOPAFLY Posted September 22, 2003 Author Posted September 22, 2003 but than the installation wouldn't be unattended what's tha point in this?
pmcx9 Posted September 22, 2003 Posted September 22, 2003 The only think I see different with mine is I add the nero.reg file before installing Nero and not after. Maybe Nero install is erroring as a result and terminating the rest of the batch?
b0r3d Posted September 22, 2003 Posted September 22, 2003 I dont think that it matters when you execute the reg file. In my setup, i enter my Nero6 registry details after nero is installed, and it works fine.The question i have to ask you Soopafly, is if your batch files appear EXACTLY how you've posted them, or is it different in terms of spacing, and lines of text. That is, are there spaces between lines in your actual batch file? If there is, i think that may be an issue.
Aaron Posted September 22, 2003 Posted September 22, 2003 I had this problem too and there is a way to fix it.I had 2 batch files remaining to process, which were Applications.cmd and reboot.cmd. Halfway through the Nero installation, my reboot.cmd executed without applications.cmd finishing the rest of my apps installations. The only way to fix this is to merge any of your batch files that are supposed to run after the applications batch INTO your applications.cmd file. In my case, I merged the reboot commands from reboot.cmd into my applications.cmd file. Still following me?So basically, applications.cmd should be the last batch file to be run to prevent Nero aborting it aruptly.Add this to the end of your applications batch file (make sure you remove the EXIT that you currently have in your applications batch just after the Sygate Firewall installation):CLS@echo offCOLOR 0aTITLE Final Adjustments - Cleanup defragmation and boot optimizationECHO.ECHO Deleting Temp Installation Files and startup items...RD /S /Q "%systemdrive%\install" RD /S /Q "%systemdrive%\drivers" RD /S /Q "%systemdrive%\Nvidia" ATTRIB -S -H -R "%programfiles%\InstallShield Installation Information" /S /DRD /S /Q "%programfiles%\InstallShield Installation Information"ATTRIB -S -H -R "%programfiles%\Uninstall Information" /S /DRD /S /Q "%programfiles%\Uninstall Information" ATTRIB -S -H -R "%systemroot%\prefetch" /S /DDEL /S /Q "%systemroot%\prefetch\*.*" DEL /S /Q "%systemroot%\Temp\*.*" ATTRIB -S -H -R"%userprofile%\Local Settings" /S /DDEL /S /Q "%userprofile%\Local Settings\Temp\*.*" REGEDIT /S "%systemdrive%\install\tools\startup_remove.reg"call cscript "%systemdrive%\install\tools\shortcuts2.vbs"ECHO.ECHO Enabling WFP...REGEDIT /S "%systemdrive%\install\tools\wfp_e.reg"ECHO.ECHO Defragmating system partition...diskeeper c /bECHO.ECHO Optimizing boot performance - system will restart in 10 seconds...start \wait bootvis.exe -prepsystemECHO.EXIT
flyakite Posted September 22, 2003 Posted September 22, 2003 ECHO.ECHO Installing Nero Burning ROM v5.5.10.50 and plugins...start /wait %systemdrive%\install\Applications\Nero5.5.10.50\nero551050.exe /silent /noreboot<------------------------this is happening hereIf this is how it appears in your batch file, the '/silent /noreboot' is probably causing the problem. I copied and pasted it into notepad, and generally the code appears as it would had it been your actual batch. It shows that '/silent /noreboot' on a seperate line.This is what I think you want:start /wait %systemdrive%\install\Applications\Nero5.5.10.50\nero551050.exe /silent /norebootXP is looking at '/silent /noreboot' as completely different command, not part of the Nero install line.As a side note, running your Nero reg file before installing it causes the start menu entry to say "Nero 6 Ultra Edition" instead of "Nero 6 Demo". This is the case with Nero 6, I do not know what happens with Nero 5.
b0r3d Posted September 22, 2003 Posted September 22, 2003 The question i have to ask you Soopafly, is if your batch files appear EXACTLY how you've posted them, or is it different in terms of spacing, and lines of text. That is, are there spaces between lines in your actual batch file? If there is, i think that may be an issue.Didnt i already say that ?
flyakite Posted September 22, 2003 Posted September 22, 2003 The question i have to ask you Soopafly, is if your batch files appear EXACTLY how you've posted them, or is it different in terms of spacing, and lines of text. That is, are there spaces between lines in your actual batch file? If there is, i think that may be an issue.Didnt i already say that ? Yes, but you didn't really point out what the exact problem may be, nor how to fix it.
b0r3d Posted September 22, 2003 Posted September 22, 2003 I thought that i made it pretty clear that i said the problem could be the spacing. Fix the spacing, fix the problem. But i guess not. Thanks for the clarification. Im sure soopafly will apreciate it.
SOOPAFLY Posted September 22, 2003 Author Posted September 22, 2003 first of all i want to thank everyone that bothered to help me , i actually was thinking in aaron xp's solution way not to mention that he experienced the exactly same problem as me and about the spaces i have placed the switches in the same line as the command as bOr3d suggested in the first place but for some reason when i pasted it from my batch file the commands got massed up
SOOPAFLY Posted September 22, 2003 Author Posted September 22, 2003 dammmm i think bOr3d was right i had the wordwrap enabled in notepad that's why i had the switches moved to next line
SOOPAFLY Posted September 22, 2003 Author Posted September 22, 2003 just finished checking bO3d solution with virtualpc (removing wordwrap so that all switches will be in one line) and it didn't help so i think that AARON XP was right after all,strange i can't think of why this is happening so if someone knows the reason for this sudden termination please share it with me,because although merging my two batch together won't create any physical problems it sure does messes the cosmetics and order and fplaces an obstacle in future debugging proccedures
Aaron Posted September 22, 2003 Posted September 22, 2003 I'm going to email the Ahead team to try and get this issue resolved, Nero really does terminate a batch if there is another batch following the current one. (as I have tested a couple of times)
SOOPAFLY Posted September 22, 2003 Author Posted September 22, 2003 ohh and here is my batch once again ignore the "eNTER press" effect this isn't how it's in my batchCLS@echo offCOLOR 0aTITLE Unattended Applications setupECHO.ECHO Starting Unattended Applications setupECHO.ECHO Installing Diskeeper 8.0.459 and setting scheduled task...start /wait %systemdrive%\install\Applications\Diskeeper8\DKPE.msi /qbMD "%programfiles%\Executive Software\Diskeeper\Scheduler"XCOPY "%systemdrive%\install\Applications\Diskeeper8\DfrgUINetCtrlFile" "%programfiles%\Executive Software\Diskeeper\Scheduler\" /C /H /R /YECHO.ECHO Installing Nero Burning ROM v5.5.10.50 and plugins...start /wait %systemdrive%\install\Applications\Nero5.5.10.50\nero551050.exe /silent /norebootREGEDIT /S %systemdrive%\install\Applications\Nero5.5.10.50\register.regECHO.ECHO Installing Adobe Acrobat 4.05...start /wait %systemdrive%\install\Applications\Adobe_Acrobat4.05\ar405eng.exe -s -f1"%systemdrive%\install\Applications\Adobe_Acrobat4.05\setup.iss"RD /S /Q "%allusersprofile%\Start Menu\Programs\Adobe Acrobat 4.0"DEL "%allusersprofile%\Desktop\Acrobat Reader 4.0.lnk"ECHO.ECHO Installing AcdSee 3.1...start /wait %systemdrive%\install\Applications\AcdSee3.1\AcdSee3.1.EXE /sECHO.ECHO Installing RegCleaner 4.3 and setting scheduled task...start /wait %systemdrive%\install\Applications\RegCleaner4.3\RegCleaner.execall cscript %systemdrive%\install\Applications\RegCleaner4.3\regcleaner.vbsXCOPY "%systemdrive%\install\Applications\RegCleaner4.3\RegCleanr.job" "%systemroot%\Tasks\" /C /H /R /YECHO.ECHO Installing Winrar 3.20...start /wait %systemdrive%\install\Applications\WinRAR3.2\wrar320.exe /silentcall cscript %systemdrive%\install\Applications\WinRAR3.2\winrar.vbsECHO.ECHO Installing Winamp Lite 2.91...start /wait %systemdrive%\install\Applications\Winamp2.91\winamp291.exe /SECHO.ECHO Installing Video and Audio Codecs...start /wait %systemdrive%\install\Codecs\DivX505proCorp.exe start /wait %systemdrive%\install\Codecs\ac3filter_0_68b.exe /Sstart %systemdrive%\install\Codecs\xvid\XviD_Install.exe /Scall cscript %systemdrive%\install\Codecs\xvid\enter.vbsstart /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemdrive%\install\Codecs\Lame3.92\LameACM.infstart /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemdrive%\install\Codecs\mpeg4x\mpeg4fix.infECHO.ECHO Installing Flashget v1.4...start /wait "%systemdrive%\Install\Applications\Flashget1.4\fgf140.exe" /sREGEDIT /S "%systemdrive%\Install\Applications\Flashget1.4\regkey.reg"ECHO.ECHO Installing Sygate Personal Firewall Pro 5.1....start /wait %systemdrive%\install\Applications\SPFP\setup.exe -s -f1 %systemdrive%\install\Applications\SPFP\setup.issREGEDIT /S %systemdrive%\install\Applications\SPFP\register.regECHO.ECHO Installing NOD32 NOD32 Antivirus System...Start "%systemdrive%\install\Aplications\Nod32\setup.execall cscript "%systemdrive%\install\Aplications\Nod32\silent.vbs"XCOPY "%systemdrive%\install\Aplications\Nod32\nod32kui.exe" "%programfiles%\eset\" /C /H /R /YXCOPY "%systemdrive%\install\Aplications\Nod32\nod32.exe" "%programfiles%\eset\" /C /H /R /YXCOPY "%systemdrive%\install\Aplications\Nod32\ps_upd.dll" ""%programfiles%\eset\" /C /H /R /YECHO.EXIT
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now