@ echo off
: *
: ********************************************************************
: *
: * program installer on the Unattended XP SP2 DVD
: *
: * this computer was installed using XPDVD v5.1
: *
: * last updated 04 September 2007
: *
: * GOOD JOB. YOU MADE IT TO TEH DOCUMENTATION
: *
: * for Documentation, see http://unattended.msfn.org/
: * for specific info on $OEM$ folders, see
: * http://unattended.msfn.org/global/oemfolders.htm
: *
: * the program installers are called by this batch file
: * and then are installed using "AutoIt"
: * http://www.autoitscript.com/autoit3/
: *
: * and a nice companion editor is
: * http://www.autoitscript.com/autoit3/scite
: *
: * http://peid.tk/
: * http://www.msfn.org/board/index.php?showtopic=17940
: * http://www.msfn.org/board/index.php?showforum=80
: * for finding silent switches
: *
: * the "variables" of batch files used are
: * %systemdrive% = c: :: note that it includes the colon
: * %systemroot% = %windir% = c:\windows
: * %username% = currently logged on user profile name
: * %userprofile% = currently logged on user directory c:\documents and settings\%username%
: * %allusersprofile% = all users profile directory C:\documents and settings\all users
: *
: ********************************************************************
: *
: * this file is initiated after the OS is installed
: * and just prior to the first logon, this file is called by
: * %optical_drive_letter%\I386\winnt.sif
: * Command0 = "%systemroot%\system32\this_computer_was_installed_using.cmd"
: * which was copied from the DVD to the HD. That cmd on the HD figures out
: * which drive the CD is in
: * next, this file calls the au3 scripts to install programs
: *
: ********************************************************************
: *
: * determine the CD-ROM drive,
: * give warning if system drive isn't c:
: *
: * set cmd window name
Title the slick installer. Old skool
color 4e
cls
msg * /time:5 Welcome to the slick unattended autoinstall for programs.
msg * /time:5 To kill an install, press Ctrl-q or see admin
msg * /time:5 If a program appears in-active, please wait 60 seconds before ending the script with ctrl-q
: * get rid of the annoying "tour"
echo y | del "%systemroot%\system32\tourstart.exe"
: * figure out the drive letters
if NOT %systemdrive%==C: msg * the C: drive is actually %systemdrive% and you might want to rethink this install
:: note that my drive letters will not include the colon
IF EXIST "B:\install\MARKER.README" (
set drive=B
)
IF EXIST "d:\install\MARKER.README" (
set drive=D
)
IF EXIST "e:\install\MARKER.README" (
set drive=E
)
IF EXIST "f:\install\MARKER.README" (
set drive=F
)
IF EXIST "g:\install\MARKER.README" (
set drive=G
)
IF EXIST "d:\install\MARKER.README" (
set drive=D
)
IF EXIST "e:\install\MARKER.README" (
set drive=E
)
IF EXIST "f:\install\MARKER.README" (
set drive=F
)
IF EXIST "g:\install\MARKER.README" (
set drive=G
)
: if your drive is beyond G, you are beyond hope
: *********************************************************************
: *
: * COPY I386 to hard drive, remove svcpack
: *
echo copying i386
xcopy "%drive%:\I386" "%systemdrive%\I386" /E /I
echo.
echo getting rid of svcpack
: get rid of the extra SVCPACK folder in I386
rmdir %systemdrive%\I386\svcpack /s/q
cls
:: echo running dotnet fix
:: : run the dotnet fix update, as it won't run at T-13 in svcpack.ini
:: %drive%:\I386\SVCPACK\dotnetfx.exe /q:a /c:"install.exe /q"
:: echo dotnet fix installed
::
:: 20070904: I removed this to see if there are better updates available from MS
: *********************************************************************
: *
: * SET DEFRAG, CHKDSK
: *
at 22:00 /every:tuesday defrag %systemdrive%
at 02:00 /every:wednesday taskkill /f /im dfrgntfs.exe
at 02:01 /every:23 chkdsk c: /f
at 02:02 /every:23 shutdown -r -t 60 -c "scheduled reboot to run checkdisk on c:. If this is a problem, open cmd and type shutdown -a"
cls
echo start programs
:: Note: for future development this is where I'd point
:: to the gui install option, "%drive%:\install\gui.exe"
: *********************************************************************
: *
: * now run the app setup autoIt scripts from the CD
: * none require an internet connection
: *
:: 20070905 - dies here, needs a ctrl-q
:: --> alt-tab switcher didn't start
%drive%:\install\alt-tab_switcher.exe %drive%:\
echo alt-tab switcher turned on
"%drive%:\install\boot_screen.exe"
echo some vandal changed boot screen
:: 20070905 - updated version
"%drive%:\install\Firefox2.0.exe"
echo firefox 2.0 rocks on!
"%drive%:\install\HighMAT_CD.exe"
echo HighMatCD updated
"%drive%:\install\SecureCRT.exe"
echo SecureCRT secured
"%drive%:\install\winzip.exe"
pskill wzqkpick.exe
echo winzip
"%drive%:\install\wsftple.exe"
echo wsftple
:: 20070905 - updated version
"%drive%:\install\printscrn.exe"
echo prt scrn
"%drive%:\install\textpad.exe"
echo textpad
:: 20070905 - "the upgrade patch cannot be installed because the
:: program to be upgraded may be missing or wrong version.
%drive%:\install\officeXP.exe %drive%:\
echo office installed
echo.
cls
: *****************************************************************************
: *
: * now on DVD, but not on the CD version of my installer:
: *
echo more programs
:: 20070905 - jre was updated
"%drive%:\install\JRE-1_5_0_10-windows-i586.exe"
:: from http://www.java.com/en/download/manual.jsp
:: silent install? next time try /s /v/qn
echo JRE done
:: 20070905 - acrobat reader problem ?
"%drive%:\install\AdbeRdr80_en_US.exe %drive%:\"
:: from ftp://ftp.adobe.com/pub/adobe/reader/win/8.x/8.0/enu/AdbeRdr80_en_US.exe
echo Acrobat reader done
echo done with automated installs
:: if you're really bored, write installers for these:
:alcohol120
:beyond compare
:savce10.0.5
:scatterchat
:spherexp
: *************************************************************************
: *
: * silent install from command prompt
: *
echo.
echo Google toolbar
"%drive%:\install\programs\GoogleToolbar\GoogleToolbarInstaller.exe /S /QN"
: not silent?
:: 20070904: not sure if the quotes belong there or not
echo.
%drive%:\install\Programs\WinRAR\wrar370.exe /S
echo winrar done
%drive%:\install\programs\VLC\vlc-0.8.6c-win32.exe /S
echo vlc
:: 20070905 - aaw didn't like /s, recommended /quiet
%drive%:\install\programs\AdAware\aaw2007.exe /quiet /norestart
: Ad-aware wanted to run after it was done.
echo ad-aware SE installed
%drive%:\install\programs\SpyBotSD\spybotsd14.exe /VERYSILENT
echo spybot bot
:: autoit unable to find "programs/zp451.exe"
%drive%:\install\zoomPlayer.exe /S
echo zoom player done
:%drive%:\install\programs\AutoIt\autoit-v3-setup.exe /S
:%drive%:\install\programs\AutoIt\SciTE4AutoIt3.exe /S
echo.
cls
: *************************************************************************
: *
: * Short cut remover for "all users"
: *
: * Note: Some of these *.lnk files may not even be created. I haven't
: * cleaned this up recently (ever)
: *
echo y | del "%allusersprofile%\Start Menu\New Office Document.lnk"
echo y | del "%allusersprofile%\Start Menu\Open Office Document.lnk"
echo y | del "%allusersprofile%\Start Menu\SecureCRT 4.0.lnk"
echo y | del "%allusersprofile%\Start Menu\Set Program Access and Defaults.lnk"
echo y | del "%allusersprofile%\Start Menu\Windows Catalog.lnk"
echo y | del "%allusersprofile%\Start Menu\Winzip.lnk"
echo y | del "%allusersprofile%\Start Menu\New Office Document.lnk"
echo y | del "%allusersprofile%\Start Menu\Open Office Document.lnk"
echo y | del "%allusersprofile%\Start Menu\Programs\Windows Movie Maker.lnk"
echo y | del "%allusersprofile%\Start Menu\Programs\MSN.lnk"
echo y | del "%allusersprofile%\Start Menu\Programs\Accessories\Tour Windows XP.lnk"
echo y | del "%allusersprofile%\Start Menu\Programs\Startup\Microsoft Office.lnk"
echo y | del "%allusersprofile%\Start Menu\Programs\Startup\Winzip Quick Pick.lnk"
echo y | del "%allusersprofile%\Start Menu\Programs\Startup\Adobe Reader Speed Launch.lnk"
echo y | del "%allusersprofile%\Start Menu\Programs\Startup\Microsoft Office.lnk"
cls
: *
: * all users desktop
: *
echo y | del "%allusersprofile%\Desktop\Adobe Reader 7.0.lnk"
echo y | del "%allusersprofile%\Desktop\ad-watch se plus.lnk"
echo y | del "%allusersprofile%\Desktop\ad-aware se plus.lnk"
echo y | del "%allusersprofile%\Desktop\acrobat reader 5.0.lnk"
echo y | del "%allusersprofile%\Desktop\vlc media player.lnk"
echo y | del "%allusersprofile%\Desktop\Adobe Reader 6.0.lnk"
echo y | del "%allusersprofile%\Desktop\Adobe Reader 5.0.lnk"
echo y | del "%allusersprofile%\Desktop\Acrobat Reader 5.0.lnk"
echo y | del "%allusersprofile%\Desktop\Netscape 7.0.lnk"
echo y | del "%allusersprofile%\Desktop\Real.com Guide.url"
echo y | del "%allusersprofile%\Desktop\RealPlayer Basic.lnk"
echo y | del "%allusersprofile%\Desktop\SecureCRT 4.0.lnk"
echo y | del "%allusersprofile%\Desktop\WinZip.lnk"
echo y | del "%allusersprofile%\Desktop\Mozilla.lnk"
echo y | del "%allusersprofile%\Desktop\Ad-Aware SE Plus.lnk"
echo y | del "%allusersprofile%\Desktop\Ad-Watch SE Plus.lnk"
echo y | del "%allusersprofile%\Desktop\Adobe Reader 7.0.lnk"
cls
: *************************************************************************
: *
: * Short cut remover for who ever is logged on
: *
: * Note: Some of these *.lnk files may not even be created. I haven't
: * cleaned this up recently (ever)
: *
: *
:: if it is valid, then it should be placed in "Default user"
: *
:: not sure about this one
echo y | del "%userprofile%\Start Menu\Programs\Remote Assistance.lnk"
:: if it is valid, then it should be placed in "Default user"
echo y | del "%userprofile%\Desktop\Free AOL & Unlimited Internet.url"
echo y | del "%userprofile%\Desktop\Java Web Start.lnk"
echo y | del "%userprofile%\Desktop\WINAMP.lnk"
echo y | del "%userprofile%\Desktop\Irfanview.lnk"
echo y | del "%userprofile%\Desktop\Ad-aware 6.0.lnk"
echo y | del "%userprofile%\Desktop\Ad-watch 3.0.lnk"
echo y | del "%userprofile%\Desktop\Spybot - Search & Destroy.lnk"
echo y | del "%userprofile%\Desktop\ad-aware se plus.lnk"
cls
: *
: * Quicklaunch
: *
echo y | del "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Netscape 7.0.lnk"
echo y | del "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch\RealPlayer Basic.lnk"
echo y | del "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Windows Media Player.lnk"
echo y | del "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Mozilla.lnk"
echo y | del "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Spybot - Search & Destroy.lnk"
echo y | del "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Ad-aware se plus.lnk"
echo y | del "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch\ad-watch se plus.lnk"
cls
: *
: * wallpaper
: * [I'd like to be able to set the wall paper for administrator
: * [the following is insufficient]
: *
:: 20070904: perhaps into "default user"?
:echo f | xcopy "%systemdrive%\Windows\web\wallpaper1.bmp" "%userprofile%\Local Settings\Application Data\Microsoft\Wallpaper1.bmp"
: ********************************************************************************************
: *
: * the following programs need to be connected to the net
: *
echo ms updates
echo.
echo current error level is %errorlevel%, but is being reset to 0
set errorlevel=0
echo checking connectivity
echo.
ping -n 1 google.com
: 0 = no error
: 1 = error
if %errorlevel%==0 (
:: requires user interaction since there is a connection available.
echo M$ update time
:: 20070905 - phishing filter (a one-time occurance) pops up
"%drive%:\install\MSupdate.exe" :: no longer valid for IE7
cls
echo M$ update done
) else (
msg %username% /time:02 no response. Assuming no outside connection
echo msg %username% internet unreachable at time of install. Please run microsoft update >> "%userprofile%\Desktop\program_setup.cmd"
)
msg * you've reached the interactive program section. Press OK to continue
: *
: * moved to bottom because it has user interaction
: *
echo the following programs require user interaction (so far)...
echo.
echo the CD drive letter is %drive%
echo.
echo symantec installer:
:: 20070905 - only live update was not automated
%drive%:\install\symantec.exe %drive%:\
echo symantec done
cls
: ***********************************************************************************
: *
: * done with program installations
: *
: * start documentation
:: _________/\_____\o/____________ AHH!!! HELP!!! SHARK!!! ___________\o/______/\______
:: version history:
:: version 6.1.1
:: slipstreamed SP3
:: version 5.1
:: 04 Sept 2007
:: been a while since I rapped at ya',
:: updated version of programs,
:: version 5.0.4
:: 19 Jan 2007
:: symantec, Oracle, view changer now working
:: (had to remove quotes when arguments are given)
:: version 5.0.3
:: 1 Jan 2007
:: extensive cleanup
:: version 5.0.2
:: 30 Dec 2006
:: program installer cmd runs from the system drive system32
:: version 5.0.1
:: 28 Dec 2006
:: DVD (all previous versions were on CD)
:: all useful programs on the disk
:: all windows updates, including the brand new IE7
:: install time ~2 hours now
:: version 4.5
:: 27 Oct 2006
:: version 4
:: 27 Jan 2006
:: program setup files were left on the CD
:: ran out of space on the CD for setup files and updates, had to install some programs from the server after joining the network
:: plus the install time was going up
:: version 3
:: 2005
:: discovered AutoIt, automated the program setups and called the scripts with a batch file
:: the program setup files were copied to the hard drive
:: install time down to 50 minutes for OS AND PROGRAMS!!!
:: version 2
:: 2004
:: XP with SP2 slip-streamed
:: some programs started via .bat on server
:: version 1
:: 24 Sept 2004
:: Fresh XP disk off of MSFN unattended site
:: cut install time to 45 minutes for the OS
:: still had to manually install programs
:: pre XPCD: had to sit there and plunk away at the XP setup answers
:: took about 3 hours
:: after finishing, had to run my batch file installer to call the setups
:: had to manually click through the installs
::
:: eof