Jump to content

HELP: LOG time each app install takes in batch?


Recommended Posts

Posted

@echo off

rem Modified November 1, 2006

color 9f

echo.
echo. show hidden files and folders/show extensions...
Start /wait reg import %systemdrive%\OemPreinstall\View.reg
echo. done!
cls
echo.
echo. Installing Microsoft .NET Framework 1.1
Start /wait %systemdrive%\OemPreinstall\dotnetfx\netfx.msi /qn
echo. done!
cls
echo.
echo. Installing Microsoft .NET Framework 2.0
Start /wait %systemdrive%\OemPreinstall\dotnetfx.exe /q:a /c:"install /l /q"
echo. done!
cls
echo.
echo. Installing Security update for Microsoft .NET Framework 2.0
Start /wait %systemdrive%\OemPreinstall\KB917283.exe /qn
echo. done!
cls
echo.
echo. Installing Security Update for Microsoft .NET Framework, Version 2.0
Start /wait %systemdrive%\OemPreinstall\KB922770.exe /qn
echo. done!
cls
echo.
echo. Installing Office 2003 - This might take several minutes to complete
Start /wait %systemdrive%\OemPreinstall\Office\SETUP.EXE TRANSFORMS=PRO11.MST /qn
echo. done!
cls
echo.
echo. Initializing Office updates - This might take several minutes to complete
Start /min /wait %systemdrive%\OemPreinstall\Office\updates\updates.bat
echo. done!
cls
echo.
echo. turning off the Office '03 Language Bar...
Start /wait reg import %systemdrive%\OemPreinstall\LangBar.reg
echo. done!
cls
echo.
echo. Installing Windows Media Player 11
Start /wait %systemdrive%\OemPreinstall\wmp11.exe /q:A /c:"setup_wm.exe /Q /R:N /P:#e /DisallowSystemRestore"
echo. done!
cls
echo.
echo. Installing update for WMDRM-enabled players
Start /wait %systemdrive%\OemPreinstall\KB902344.exe /q
echo. done!
cls
echo.
echo. Security Update for Windows Media Player 10 for Windows XP (KB911565)
Start /wait %systemdrive%\OemPreinstall\KB911565.exe /q
echo. done!
cls
echo.
echo. Installing HighMAT CD Writing Wizard
Start /wait %systemdrive%\OemPreinstall\HMTCD.exe /qn
echo. done!
cls
echo.
echo. Installing Microsoft PowerToys for Windows XP - This may take a minute or two
Start /min /wait %systemdrive%\OemPreinstall\PowerToys\PowerToys.bat
echo. done!
cls
echo.
echo. Installing Microsoft Calculator Plus
Start /wait %systemdrive%\OemPreinstall\CalcPlus.msi /qn
echo. done!
cls
echo.
echo. Installing Windows Media Connect 2.0
Start /wait %systemdrive%\OemPreinstall\wmcsetup.exe /q
echo. done!
cls
echo.
echo. Installing Adobe Reader 7.0.7
Start /wait %systemdrive%\OemPreinstall\Adobe\7.07\Adobe.msi /qn
echo. done!
cls
echo.
echo. Accept Adobe Reader EULA...
Start /wait reg import %systemdrive%\OemPreinstall\Adobe\EULA.reg
echo. done!
cls
echo.
echo. Hide the Yahoo! toolbar/Search The Internet menu (Adobe Reader)
COPY "%systemdrive%\OemPreinstall\Adobe\disableYahooSearch.js" "C:\Program Files\Adobe\Acrobat 7.0\Reader\Javascripts"
echo. done!
cls
echo.
echo. Disable 'Search The Internet' in the Search pane (Adobe Reader)
REN "%systemdrive%\Program Files\Adobe\Acrobat 7.0\Reader\Javascripts\WebSearch.js" "%systemdrive%\Program Files\Adobe\Acrobat 7.0\Reader\Javascripts\WebSearch.old"
echo. done!
cls
echo.
echo. Installing Shockwave Player 10
Start /wait %systemdrive%\OemPreinstall\Shockwave_Installer_Full.exe /S
echo. done!
taskkill /f /im iexplore.exe
cls
echo.
echo. Installing Security update for Flash player (Flash player Version 9)
Start /wait %systemdrive%\OemPreinstall\KB913433.exe /q:a /r:n
echo. done!
cls
echo.
echo. Installing Windows Live Messenger
Start /wait %systemdrive%\OemPreinstall\MsnMsgs.msi /qn
echo. done!
cls
echo.
echo. Installing Java Runtime Environment 5.0 Update 9
start /w %systemdrive%\OemPreinstall\jre-1_5_0_09-windows-i586-p-s.exe /s /v"/qn ADDLOCAL=ALL IEXPLORER=1 REBOOT=Suppress WEBSTARTICON=0
echo. done!
cls
echo.
echo. Installing Symantec AntiVirus 10.0 Corporate Edition
Start /wait %systemdrive%\OemPreinstall\AntiVirus\AntiVirus.msi ENABLEAUTOPROTECT=1 RUNLIVEUPDATE=0 /qn
echo. done!
cls
echo.
echo. Updating Virus Protection Files -Release Date: November 1, 2006-
Start /wait %systemdrive%\OemPreinstall\definitions.exe /q
echo. done!
cls
echo.
echo. Internet Explorer 7 - This may take a minute or two
Start /wait %systemdrive%\OemPreinstall\IE7.exe /norestart /quiet /passive
echo. done!
cls
echo.
echo. WinRAR 3.61
Start /wait %systemdrive%\OemPreinstall\wrar361.exe /s
echo. done!
cls
echo.
echo. Disable Balloon Tips - Remove Messengers from Startup
Start /wait reg import %systemdrive%\OemPreinstall\BalloonTips.reg
echo. done!
cls
echo.
echo. disable third-party tool bands
Start /wait reg import %systemdrive%\OemPreinstall\thirdparty.reg
echo. done!
cls
echo.
echo. Installing QuickTime 7.1.3
Start /wait %systemdrive%\OemPreinstall\QuickTime\QuickTime.msi /qn
echo. done!
cls
echo.
echo. Remove Desktop icons
del "C:\Documents and Settings\All Users\Desktop\*.*" /q
echo. done!
cls
echo.
echo. Mozilla Firefox 1.5.0.7
Start /wait %systemdrive%\OemPreinstall\Firefox\setup.exe
echo. done!
cls
echo.
echo. VMware Workstation 5.5
Start /wait msiexec -i "%systemdrive%\OemPreinstall\VMware\VMware Workstation.msi" ADDLOCAL=ALL SERIALNUMBER=xxxxx-xxxxx-xxxxx-xxxxx /qn
echo. done!
cls
echo.
echo. Photoshop CS2
Start /wait %systemdrive%\OemPreinstall\Photoshop\Photoshop.msi /qn UNITYSELECTION=RETAIL SERIALNUMBERTEMP=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
echo. done!
cls
echo.
echo. disable Adobe Updater...
Start /wait reg import %systemdrive%\OemPreinstall\Photoshop\DisableAUM_Updates.reg
echo. done!
cls
echo.
echo. suppress the Photoshop Registration dialog box...
Start /wait reg import %systemdrive%\OemPreinstall\Photoshop\Regdialog.reg
echo. done!
cls
echo.
echo. suppress the Photoshop Activation dialog box...
Start /wait reg import %systemdrive%\OemPreinstall\Photoshop\Actdialog.reg
echo. done!
cls
echo.
echo. Activating Photoshop CS2
COPY %systemdrive%\OemPreinstall\Photoshop\B2B86000.dat "C:\Documents and Settings\All Users\Application Data\Adobe Systems\Product licenses\"
echo. done!
cls
echo.
echo. Installing Network Diagnostic Tool
Start /wait %systemdrive%\OemPreinstall\KB914440.exe /q
echo. done!
cls
echo.
echo. Restarting computer...
shutdown -r -f -t 300 -c "Finalizing installation"

exit

What I would like is for the time it takes each action to be recorded in a log, i.e.:

'Microsoft Office 2003' 00:07:32

'Office 2003 updates' 00:06:43

'Internet Explorer 7' 00:03:01

...and so on...


Posted (edited)

I've been doing this for years! This is a snippet:

Echo 03 WillyPad 2.7.2

Start /Wait %SystemDrive%\Install\WillyPad\WillyPad.exe

Start /Wait %WINDIR%\regedit.exe /s %SystemDrive%\Install\WillyPad\WillyPad.reg

echo -03- WillyPad 2.7.2 %TIME% - %DATE%>>%SystemDrive%\TimeLog.txt

Echo 04 Longhorn Clock 1.62b

Start /Wait %SystemDrive%\Install\LClock\LClock.EXE /S

echo -04- Longhorn Clock 1.62b %TIME% - %DATE%>>%SystemDrive%\TimeLog.txt

Echo 05 eXeScope 6.3

Start /Wait %SystemDrive%\Install\XScope\XScope.exe

echo -05- eXeScope 6.3 %TIME% - %DATE%>>%SystemDrive%\TimeLog.txt

echo 06 Ultra ISO 7.5 ME

Start /Wait %SystemDrive%\Install\UISO75ME\UISO75ME.exe /LANG=en /NoIcons=0 /VERYSILENT /SP-

echo -06- Ultra ISO 7.5 ME %TIME% - %DATE%>>%SystemDrive%\TimeLog.txt

The resulting txt file may look something like this:

timelogqf8.gif

Edited by mazin

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