Jump to content

unattended installation PROBLEM


Recommended Posts

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

Link to comment
Share on other sites


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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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