Jump to content

Recommended Posts

Posted

ATTRIB -S +H "%systemdrive%\Documents and Settings\Administrator\Favorites\Links" /s /d

path not found

MOVE "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Ahead Nero\Nero - Burning Rom.lnk" "%systemdrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\"

can't find the file

MOVE "%systemdrive%\Documents and Settings\Administrator\Desktop\RegCleaner.lnk" "%systemdrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\"

can't find the file

strangly when i do it manually from virtual pc after the installation completes it works

i also use seperate batch file to defrag c drive but ut doesn't work either

CLS

@echo off

COLOR 0a

TITLE First Time Boot and System Drive Defragmation

ECHO.

Diskeeper C /b

EXIT


Posted

here's a copy of my 2 batch files any suggestions are welcomed

main_batch

CLS

@echo off

COLOR 0a

TITLE Main post setup unattended section

ECHO.

ECHO Main post setup unattended section will start now

ECHO.

ECHO Blocking User Input...

start %systemdrive%\Install\Tools\block.exe

ECHO.

ECHO Copying Tools...

CD "%systemdrive%\program files"

MD scheduled

CALL %systemdrive%\Install\Tools\cleanset.bat

CopY "%systemdrive%\Install\Tools\cleanxp.bat" "%systemdrive%\program files\scheduled\"

COPY "%systemdrive%\Install\Tools\cleanxp.job" "%systemroot%\Tasks\"

COPY "%systemdrive%\Install\Tools\psshutdown.exe" "%systemroot%\"

COPY "%systemdrive%\Install\Tools\PSKILL.EXE" "%systemroot%\

COPY "%systemdrive%\Install\Tools\Command Prompt.lnk" "%systemdrive%\Documents and Settings\All Users\Start Menu\"

ECHO.

ECHO Branding...

COPY "%systemdrive%\Install\Brand\oeminfo.ini" "%systemroot%\system32\"

COPY "%systemdrive%\Install\Brand\Oemlogo.bmp" "%systemroot%\system32\"

ECHO.

ECHO Removing Wallpapers...

DEL "%systemroot%\Blue Lace 16.bmp"

DEL "%systemroot%\Coffee Bean.bmp"

DEL "%systemroot%\FeatherTexture.bmp"

DEL "%systemroot%\Gone Fishing.bmp"

DEL "%systemroot%\Greenstone.bmp"

DEL "%systemroot%\Prairie Wind.bmp"

DEL "%systemroot%\Rhododendron.bmp"

DEL "%systemroot%\River Sumida.bmp"

DEL "%systemroot%\Santa Fe Stucco.bmp"

DEL "%systemroot%\Soap Bubbles.bmp"

DEL "%systemroot%\Zapotec.bmp"

DEL "%systemroot%\Web\Wallpaper\Crystal.jpg"

DEL "%systemroot%\Web\Wallpaper\Friend.jpg"

DEL "%systemroot%\Web\Wallpaper\Home.jpg"

DEL "%systemroot%\Web\Wallpaper\Moon flower.jpg"

DEL "%systemroot%\Web\Wallpaper\Peace.jpg"

DEL "%systemroot%\Web\Wallpaper\Power.jpg"

DEL "%systemroot%\Web\Wallpaper\Purple flower.jpg"

DEL "%systemroot%\Web\Wallpaper\Radiance.jpg"

DEL "%systemroot%\Web\Wallpaper\Ripple.jpg"

DEL "%systemroot%\Web\Wallpaper\Stonehenge.jpg"

DEL "%systemroot%\Web\Wallpaper\Vortec space.jpg"

DEL "%systemroot%\Web\Wallpaper\Ascent.jpg"

DEL "%systemroot%\Web\Wallpaper\Autumn.jpg"

DEL "%systemroot%\Web\Wallpaper\Azul.jpg"

DEL "%systemroot%\Web\Wallpaper\Follow.jpg"

DEL "%systemroot%\Web\Wallpaper\Red moon desert.jpg"

DEL "%systemroot%\Web\Wallpaper\Tulips.jpg"

DEL "%systemroot%\Web\Wallpaper\Wind.jpg"

ECHO.

ECHO Removing useless shortcuts and directories...

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk" /s /q /f

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk" /s /q /f

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk" /s /q /f

DEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\windows media player.lnk" /s /q /f

DEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Remote Assistance.lnk" /s /q /f

DEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Accessories\Tour windows xp.lnk" /s /q /f

RD "%systemdrive%\Documents and Settings\Administrator\My Documents\My Music" /s /q

RD "%systemdrive%\Documents and Settings\Administrator\My Documents\My Pictures" /s /q

ATTRIB -S +H "%systemdrive%\Documents and Settings\Administrator\Favorites\Links" /s /d

ECHO.

ECHO Removing Screensavers...

DEL "%systemroot%\system32\dllcache\scrnsave.scr"

DEL "%systemroot%\system32\dllcache\ss3dfo.scr"

DEL "%systemroot%\system32\dllcache\ssbezier.scr"

DEL "%systemroot%\system32\dllcache\ssflwbox.scr"

DEL "%systemroot%\system32\dllcache\ssmarque.scr"

DEL "%systemroot%\system32\dllcache\ssmypics.scr"

DEL "%systemroot%\system32\dllcache\ssmyst.scr"

DEL "%systemroot%\system32\dllcache\sspipes.scr"

DEL "%systemroot%\system32\dllcache\ssstars.scr"

DEL "%systemroot%\system32\dllcache\sstext3d.scr"

DEL "%systemroot%\system32\scrnsave.scr"

DEL "%systemroot%\system32\ss3dfo.scr"

DEL "%systemroot%\system32\ssbezier.scr"

DEL "%systemroot%\system32\ssflwbox.scr"

DEL "%systemroot%\system32\ssmarque.scr"

DEL "%systemroot%\system32\ssmypics.scr"

DEL "%systemroot%\system32\ssmyst.scr"

DEL "%systemroot%\system32\sspipes.scr"

DEL "%systemroot%\system32\ssstars.scr"

DEL "%systemroot%\system32\sstext3d.scr"

ECHO.

ECHO Copying patched UXTheme.dll...

REN %systemroot%\System32\dllcache\uxtheme.dll uxtheme.old

COPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "%systemroot%\System32\dllcache\"

REN %systemroot%\System32\uxtheme.dll uxtheme.old

COPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "%systemroot%\System32\"

ECHO.

ECHO Installing DirectX 9.0b...

ECHO Please wait...

start /wait %systemdrive%\install\DirectX9b\dxsetup.exe /opk

ECHO.

ECHO Installing ASPI Layer 4.71...

COPY "%systemdrive%\install\aspi 4.71\aspi32.sys" "%systemdrive%\windows\system32\drivers\"

COPY "%systemdrive%\install\aspi 4.71\wowpost.exe" "%systemdrive%\windows\system\"

COPY "%systemdrive%\install\aspi 4.71\winaspi.dll" "%systemdrive%\windows\system\"

COPY "%systemdrive%\install\aspi 4.71\wnaspi32.dll" "%systemdrive%\windows\system32\"

ECHO.

ECHO Installing TweakUI 2.10 Powertoy

COPY "%systemdrive%\install\PowerToys\TweakUI.exe" "%systemroot%\System32\"

COPY "%systemdrive%\install\PowerToys\TweakUI 2.10 Powertoy.lnk" "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\"

ECHO.

ECHO Installing PowerCalc Powertoy...

start /wait %systemdrive%\install\PowerToys\PowerCalc.msi /qb

ECHO.

ECHO Installing Microsoft JavaVM - Build 3810...

ECHO Please wait...

start /wait %systemdrive%\install\JavaVM\msjavwu.exe /c:"javatrig.exe /exe_install /l /qq" /q:a /r:n

ECHO.

ECHO Installing Via 4in1 drivers...

start /wait %systemdrive%\install\via4in1\setup.exe /s /a /s /f1"%systemdrive%\install\via4in1\setup.iss"

ECHO.

ECHO Removing Startup Logo...

ATTRIB -h -s %systemdrive%\boot.ini

COPY "%systemdrive%\install\boot.ini" "%systemdrive%\"

ATTRIB +h +s "%systemdrive%\boot.ini"

ECHO.

ECHO About to Remove Unnecessary Services...

REGEDIT /S %systemdrive%\install\Services.reg

ECHO.

ECHO Applying Registry Tweaks...

REGEDIT /S %systemdrive%\install\RegTweaks.reg

ECHO.

EXIT

and the applications batch

CLS

@echo off

COLOR 0a

TITLE Unattended Applications setup

ECHO.

ECHO Starting Unattended Applications setup

ECHO.

ECHO Installing Nvidia Control Panel for Detenator 44.03...

start /wait %systemdrive%\install\Applications\Nvidia\Setup.exe -s -f1"%systemdrive%\install\Applications\Nvidia\setup.iss"

ECHO.

ECHO Installing GlobeSpanVirata External Usb ADSL Modem...

start /wait %systemdrive%\install\Applications\GlobeSpanVirata_usb_adsl\setup.exe /s

ECHO.

ECHO Installing Diskeeper 8.0.459 and setting scheduled task...

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

MD "%systemdrive%\Program Files\Executive Software\Diskeeper\Scheduler"

COPY "%systemdrive%\install\Applications\Diskeeper8\DfrgUINetCtrlFile" "%systemdrive%\Program Files\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

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

start /wait %systemdrive%\install\Applications\Nero5.5.10.50\plugins.exe

ATTRIB -H "%systemdrive%\Documents and Settings\Administrator\Application Data" /s /d

MOVE "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Ahead Nero\Nero - Burning Rom.lnk" "%systemdrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\"

ECHO.

ECHO Installing Adobe Acrobat 4.05...

start /wait %systemdrive%\install\Applications\Adobe_Acrobat4.05\ar405eng.exe /s /a /s /f1"%systemdrive%\install\Applications\Adobe_Acrobat4.05\setup.iss"

RD /S /Q "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Adobe Acrobat 4.0"

DEL "%systemdrive%\Documents and Settings\All Users\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 %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\"

MOVE "%systemdrive%\Documents and Settings\Administrator\Desktop\RegCleaner.lnk" "%systemdrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\"

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

COPY "%systemdrive%\install\Applications\WinRAR3.2\registr.exe" "%systemdrive%\program files\winrar\"

call "%systemdrive%\install\Applications\WinRAR3.2\reg.cmd"

call cscript %systemdrive%\install\Applications\WinRAR3.2\enter.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

ECO.

ECHO Installing Norton Internet Security 2003...

ECHO Please wait...

start /wait %systemdrive%\install\Applications\Symantec_Norton_Internet_Security_2003_6.0\NIS\NIS.msi /QN

ECHO.

ECHO Deleting Temp Installation Files and startup items...

PSKill Block.exe

RD "%systemdrive%\install" /s /q

RD "%systemdrive%\drivers" /s /q

RD "%systemdrive%\Nvidia" /s /q

DEL %systemroot%\prefetch\*.* /s /q

DEL "%systemroot%\Temp\*.*" /s /q

DEL "%systemdrive%\Documents and Settings\Administrator\Local Settings\Temp\*.*" /s /q

REGEDIT /s %systemdrive%\install\tools\startup_remove.reg

ECHO.

call %systemdrive%\install\defrag.cmd

ECHO.

ECHO Restarting the PC...

psshutdown.exe -r -t 30 -f -m "Windows XP will now restart in 30 seconds"

ECHO.

EXIT

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