Jump to content

Recommended Posts

Posted

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 off

COLOR 0a

TITLE Unattended Applications setup

ECHO.

ECHO Starting Unattended Applications setup

ECHO.

ECHO Installing Diskeeper 8.0.459 and setting scheduled task...

start /wait %systemdrive%\install\Applications\Diskeeper8\DKPE.msi /qb

MD "%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 here

REGEDIT /S %systemdrive%\install\Applications\Nero5.5.10.50\register.reg

ECHO.

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 /s

ECHO.

ECHO Installing RegCleaner 4.3 and setting scheduled task...

start /wait %systemdrive%\install\Applications\RegCleaner4.3\RegCleaner.exe

call cscript %systemdrive%\install\Applications\RegCleaner4.3\regcleaner.vbs

COPY "%systemdrive%\install\Applications\RegCleaner4.3\RegCleanr.job"

"%systemroot%\Tasks\"

ECHO.

ECHO Installing Winrar 3.20...

start /wait %systemdrive%\install\Applications\WinRAR3.2\wrar320.exe /silent

call cscript %systemdrive%\install\Applications\WinRAR3.2\winrar.vbs

ECHO.

ECHO Installing Winamp Lite 2.91...

start /wait %systemdrive%\install\Applications\Winamp2.91\winamp291.exe /S

ECHO.

ECHO Installing Flashget v1.4...

start /wait "%systemdrive%\Install\Applications\Flashget1.4\fgf140.exe" /s

REGEDIT /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 /S

start %systemdrive%\install\Codecs\xvid\XviD_Install.exe /S

call cscript %systemdrive%\install\Codecs\xvid\enter.vbs

start /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132

%systemdrive%\install\Codecs\Lame3.92\LameACM.inf

start /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132

%systemdrive%\install\Codecs\mpeg4x\mpeg4fix.inf

ECO.

ECHO Installing NOD32 NOD32 Antivirus System...

Start "%systemdrive%\install\Aplications\Nod32\setup.exe

call cscript "%systemdrive%\install\Aplications\Nod32\silent.vbs"

XCOPY "%systemdrive%\install\Aplications\Nod32\nod32kui.exe"

"%programfiles%\eset\" /C /H /R /Y

XCOPY "%systemdrive%\install\Aplications\Nod32\nod32.exe"

"%programfiles%\eset\" /C /H /R /Y

XCOPY "%systemdrive%\install\Aplications\Nod32\ps_upd.dll"

""%programfiles%\eset\" /C /H /R /Y

ECHO.

ECHO Installing Sygate Personal Firewall Pro 5.1....

start /wait %systemdrive%\install\Applications\SPFP\setup.exe -s -f1

%systemdrive%\install\Applications\SPFP\setup.iss

REGEDIT /S %systemdrive%\install\Applications\SPFP\register.reg

ECHO.

EXIT

my last batch is

CLS

@echo off

COLOR 0a

TITLE Final Adjustments - Cleanup defragmation and boot optimization

ECHO.

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 /D

RD /S /Q "%programfiles%\InstallShield Installation Information"

ATTRIB -S -H -R "%programfiles%\Uninstall Information" /S /D

RD /S /Q "%programfiles%\Uninstall Information"

ATTRIB -S -H -R "%systemroot%\prefetch" /S /D

DEL /S /Q "%systemroot%\prefetch\*.*"

DEL /S /Q "%systemroot%\Temp\*.*"

ATTRIB -S -H -R"%userprofile%\Local Settings" /S /D

DEL /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 /b

ECHO.

ECHO Optimizing boot performance - system will restart in 10 seconds...

start \wait bootvis.exe -prepsystem

ECHO.

EXIT


Posted

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?

Posted

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.

Posted

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 off
COLOR 0a
TITLE Final Adjustments - Cleanup defragmation and boot optimization
ECHO.
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 /D
RD /S /Q "%programfiles%\InstallShield Installation Information"
ATTRIB -S -H -R "%programfiles%\Uninstall Information" /S /D
RD /S /Q "%programfiles%\Uninstall Information"
ATTRIB -S -H -R "%systemroot%\prefetch" /S /D
DEL /S /Q "%systemroot%\prefetch\*.*"
DEL /S /Q "%systemroot%\Temp\*.*"
ATTRIB -S -H -R"%userprofile%\Local Settings" /S /D
DEL /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 /b
ECHO.
ECHO Optimizing boot performance - system will restart in 10 seconds...
start \wait bootvis.exe -prepsystem
ECHO.
EXIT

Posted

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 here

If 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 /noreboot

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

Posted
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 ? :)

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

Posted

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

Posted

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

Posted

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

Posted

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)

Posted

ohh and here is my batch once again ignore the "eNTER press" effect this isn't how it's in my batch

CLS

@echo off

COLOR 0a

TITLE Unattended Applications setup

ECHO.

ECHO Starting Unattended Applications setup

ECHO.

ECHO Installing Diskeeper 8.0.459 and setting scheduled task...

start /wait %systemdrive%\install\Applications\Diskeeper8\DKPE.msi /qb

MD "%programfiles%\Executive Software\Diskeeper\Scheduler"

XCOPY "%systemdrive%\install\Applications\Diskeeper8\DfrgUINetCtrlFile" "%programfiles%\Executive Software\Diskeeper\Scheduler\" /C /H /R /Y

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

REGEDIT /S %systemdrive%\install\Applications\Nero5.5.10.50\register.reg

ECHO.

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 /s

ECHO.

ECHO Installing RegCleaner 4.3 and setting scheduled task...

start /wait %systemdrive%\install\Applications\RegCleaner4.3\RegCleaner.exe

call cscript %systemdrive%\install\Applications\RegCleaner4.3\regcleaner.vbs

XCOPY "%systemdrive%\install\Applications\RegCleaner4.3\RegCleanr.job" "%systemroot%\Tasks\" /C /H /R /Y

ECHO.

ECHO Installing Winrar 3.20...

start /wait %systemdrive%\install\Applications\WinRAR3.2\wrar320.exe /silent

call cscript %systemdrive%\install\Applications\WinRAR3.2\winrar.vbs

ECHO.

ECHO Installing Winamp Lite 2.91...

start /wait %systemdrive%\install\Applications\Winamp2.91\winamp291.exe /S

ECHO.

ECHO Installing Video and Audio Codecs...

start /wait %systemdrive%\install\Codecs\DivX505proCorp.exe

start /wait %systemdrive%\install\Codecs\ac3filter_0_68b.exe /S

start %systemdrive%\install\Codecs\xvid\XviD_Install.exe /S

call cscript %systemdrive%\install\Codecs\xvid\enter.vbs

start /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemdrive%\install\Codecs\Lame3.92\LameACM.inf

start /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemdrive%\install\Codecs\mpeg4x\mpeg4fix.inf

ECHO.

ECHO Installing Flashget v1.4...

start /wait "%systemdrive%\Install\Applications\Flashget1.4\fgf140.exe" /s

REGEDIT /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.iss

REGEDIT /S %systemdrive%\install\Applications\SPFP\register.reg

ECHO.

ECHO Installing NOD32 NOD32 Antivirus System...

Start "%systemdrive%\install\Aplications\Nod32\setup.exe

call cscript "%systemdrive%\install\Aplications\Nod32\silent.vbs"

XCOPY "%systemdrive%\install\Aplications\Nod32\nod32kui.exe" "%programfiles%\eset\" /C /H /R /Y

XCOPY "%systemdrive%\install\Aplications\Nod32\nod32.exe" "%programfiles%\eset\" /C /H /R /Y

XCOPY "%systemdrive%\install\Aplications\Nod32\ps_upd.dll" ""%programfiles%\eset\" /C /H /R /Y

ECHO.

EXIT

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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