SOOPAFLY Posted September 13, 2003 Posted September 13, 2003 ATTRIB -S +H "%systemdrive%\Documents and Settings\Administrator\Favorites\Links" /s /dpath not foundMOVE "%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 fileMOVE "%systemdrive%\Documents and Settings\Administrator\Desktop\RegCleaner.lnk" "%systemdrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\"can't find the filestrangly when i do it manually from virtual pc after the installation completes it worksi also use seperate batch file to defrag c drive but ut doesn't work either CLS@echo offCOLOR 0aTITLE First Time Boot and System Drive DefragmationECHO.Diskeeper C /bEXIT
SOOPAFLY Posted September 13, 2003 Author Posted September 13, 2003 here's a copy of my 2 batch files any suggestions are welcomedmain_batchCLS@echo offCOLOR 0aTITLE Main post setup unattended sectionECHO.ECHO Main post setup unattended section will start nowECHO.ECHO Blocking User Input...start %systemdrive%\Install\Tools\block.exeECHO.ECHO Copying Tools...CD "%systemdrive%\program files"MD scheduled CALL %systemdrive%\Install\Tools\cleanset.batCopY "%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 /fDEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk" /s /q /fDEL "%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 /fDEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Remote Assistance.lnk" /s /q /fDEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Accessories\Tour windows xp.lnk" /s /q /fRD "%systemdrive%\Documents and Settings\Administrator\My Documents\My Music" /s /qRD "%systemdrive%\Documents and Settings\Administrator\My Documents\My Pictures" /s /qATTRIB -S +H "%systemdrive%\Documents and Settings\Administrator\Favorites\Links" /s /dECHO.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.oldCOPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\uxtheme.dll uxtheme.oldCOPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "%systemroot%\System32\"ECHO.ECHO Installing DirectX 9.0b...ECHO Please wait...start /wait %systemdrive%\install\DirectX9b\dxsetup.exe /opkECHO.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 PowertoyCOPY "%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:nECHO.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.iniCOPY "%systemdrive%\install\boot.ini" "%systemdrive%\"ATTRIB +h +s "%systemdrive%\boot.ini"ECHO. ECHO About to Remove Unnecessary Services...REGEDIT /S %systemdrive%\install\Services.regECHO.ECHO Applying Registry Tweaks...REGEDIT /S %systemdrive%\install\RegTweaks.regECHO.EXIT and the applications batchCLS@echo offCOLOR 0aTITLE Unattended Applications setupECHO.ECHO Starting Unattended Applications setupECHO.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 /sECHO.ECHO Installing Diskeeper 8.0.459 and setting scheduled task...start /wait %systemdrive%\install\Applications\Diskeeper8\Setup.msi /qbMD "%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 /norebootREGEDIT /S %systemdrive%\install\Applications\Nero5.5.10.50\register.regstart /wait %systemdrive%\install\Applications\Nero5.5.10.50\plugins.exeATTRIB -H "%systemdrive%\Documents and Settings\Administrator\Application Data" /s /dMOVE "%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 /sECHO.ECHO Installing RegCleaner 4.3 and setting scheduled task...start %systemdrive%\install\Applications\RegCleaner4.3\RegCleaner.execall cscript %systemdrive%\install\Applications\RegCleaner4.3\regcleaner.vbsCOPY "%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 /silentcall cscript %systemdrive%\install\Applications\WinRAR3.2\winrar.vbsCOPY "%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.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.infECO.ECHO Installing Norton Internet Security 2003...ECHO Please wait...start /wait %systemdrive%\install\Applications\Symantec_Norton_Internet_Security_2003_6.0\NIS\NIS.msi /QNECHO.ECHO Deleting Temp Installation Files and startup items...PSKill Block.exeRD "%systemdrive%\install" /s /qRD "%systemdrive%\drivers" /s /qRD "%systemdrive%\Nvidia" /s /qDEL %systemroot%\prefetch\*.* /s /qDEL "%systemroot%\Temp\*.*" /s /qDEL "%systemdrive%\Documents and Settings\Administrator\Local Settings\Temp\*.*" /s /qREGEDIT /s %systemdrive%\install\tools\startup_remove.regECHO.call %systemdrive%\install\defrag.cmdECHO.ECHO Restarting the PC...psshutdown.exe -r -t 30 -f -m "Windows XP will now restart in 30 seconds"ECHO.EXIT
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now