command line switches for common apps

belarc\advisor.exe /silent

defraggler_setup110.exe /S

msiexec /i logmein_callingcard_installer\LogMeIn_Rescue_Calling_Card.msi /quiet /qn /norestart

printmig -b c:\local_printer_config.cab

UltraVNC_1.0.5.6_Setup.exe /norestart /verysilent /loadinf="install_Ultra_vnc.inf"

echo y | copy ultraVNC_installer\ultravnc.ini "C:\Program Files\UltraVNC\ultravnc.ini"

realVNC_installer\vnc-4_1_3-x86_win32.exe /silent

"new PC" applications

@echo off

cls

title Welcome to the installer for new PCs

if NOT EXIST %SystemRoot%\system32\wupdmgr.exe msg * You may be running Vista. Turn off UAC and run as Administrator

:: JRE can be silently installed, but then the Yahoo toolbar is installed

jre-6u14-windows-i586-s.exe

:: even though the "silent" switch helps, there's still a gui

if EXIST "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" goto readerinstalled

AdbeRdr910_en_US.exe /silent

:readerinstalled

if EXIST C:\PROGRA~1\Belarc\Advisor\System\NPBelv32.dll goto runbelarc

Belarc_advisor.exe /silent

goto skiprunbelarc

:runbelarc

C:\WINDOWS\system32\rundll32.exe C:\PROGRA~1\Belarc\Advisor\System\NPBelv32.dll,RunDll32_ShowLocalPage -p60 -bAdvisor.bcx

:skiprunbelarc

ping -n 10 127.0.0.1

copy "C:\Program Files\Belarc\Advisor\System\tmp\*.html" "%userprofile%\desktop\"

:: windows update (NOT SILENT)

start %SystemRoot%\system32\wupdmgr.exe

:: everything else is silent

if EXIST "C:\Program Files\Mozilla Firefox\firefox.exe" goto firefoxinstalled

"Firefox Setup 3.0.11.exe" /S

:firefoxinstalled

install_flash_player_10.0.22.87.exe /silent

if EXIST "C:\Program Files\OpenOffice.org 3\program\soffice.exe" goto oofficeinstalled

start OOo_3.1.0_Win32Intel_install_wJRE_en-US.exe /S

:oofficeinstalled

if EXIST "C:\Program Files\VideoLAN\VLC\vlc.exe" goto vlcinstalled

start vlc-0.9.9-win32.exe /S

:vlcinstalled

if EXIST "C:\Program Files\WinRAR\WinRAR.exe" goto wrarinstalled

wrar39b3.exe /s

:wrarinstalled

msg * please install avira and spybot

:: echo f | xcopy WindowsXP-SP3-x86-ENU.exe c:\winsp3.exe

:: c:\winsp3.exe /quiet