Automated Silent Installation/Deploy

Every admin out there has the need to install software on a new PC, and hopefully silently.
Here is my batch file that I use to install everything after I use RIS to install XP.
My ERP and other software that would be useless to most people has been removed.
The Ghostscript PDF creation tool is available from my website: http://www.looserubble.com

-------------------------------------------

@echo off
q:
cd "Q:\software\Build PC"

echo Installing Quicktime
start /WAIT QuickTimeFullInstaller.exe

echo Installing Real Player
start /WAIT RealPlayer10GOLD_bb.exe /S

echo Installing MSN Messenger 7.5
start /WAIT msiexec /i "MSN Messenger\msnmsgs.msi" /q

echo Installing Prism Plug-In for Boeing Drawings
start /WAIT prism\PrizmPlug-in-ext.exe /s /f1"prism\SkillsInstallPrism.iss"

echo Installing Desktop Icons
REM start /WAIT "Installing" "Q:\software\Desktop Apps\Desktop Icons\Doc Control Icons.EXE"
echo Copy desktop icons from the terminal server
copy "\\monster2\c$\Documents and Settings\All Users\Desktop\*.*" "c:\Documents and Settings\All Users\Desktop\" /y

echo Installing Macromedia Flash 8
start /WAIT msiexec.exe /i "macromedia\install_flash_player_active_x.msi" /qb

echo Installing Macromedia Shockwave 10
start /WAIT msiexec.exe /i "macromedia\sw_lic_full_installer.msi" /qb

echo Installing Volo Viewer
start /WAIT "Installing" "\\data\msi\Volo Viewer\setup.exe" -noprompt -b:n -b:f

echo Installing Office 2003
start /WAIT "Installing" \\data\msi\office2003\setup.exe TRANSFORMS=\\data\msi\office2003\skills-install-Office.MST /qb-

echo Installing Recovery Console
start /WAIT "Installing" \\data\msi\xp\i386\winnt32.exe /cmdcons /unattend

echo Installing Java
start /WAIT jre-1_5_0_06-windows-i586-p.exe /S /v"/qn ADDLOCAL=ALL REBOOT=Suppress"

echo Installing Symantec Antivirus 10
start /WAIT msiexec /i "Q:\software\Desktop Apps\Symantec Antivirus\10\CD1\SAV\Symantec Antivirus.msi" ADDLOCAL=SAVMain,SAVUI RUNLIVEUPDATE=0 SERVERNAME=sharepoint1 REBOOT=ReallySuppress /qb

echo Installing Media Player 10
start /WAIT "Installing" "mp10setup.exe" /q

echo Updating XP Path
start /WAIT regedit /s xp-source-path.reg

echo Turn off Java Updates
REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 0 /f
REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableAutoUpdateCheck /t REG_DWORD /d 0 /f
REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v NotifyDownload /t REG_DWORD /d 0 /f
REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v NotifyInstall /t REG_DWORD /d 0 /f
REG DELETE "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v PromptAutoUpdateCheck /f

echo Installing Ghostscript

start Ghostscript-Helper
REM Ghostscript-Helper just pushes the OK button when my package below gives an error.
start /WAIT "Installing" "Ghostscript\Ghostscript-PDF-703.exe"
echo Installing PDF Printer...
start /WAIT rundll32 printui.dll,PrintUIEntry /if /b "Adobe Acrobat PDF" /f %windir%\inf\ntprint.inf /r "RPT1:" /u /m "Apple Color LaserWriter 12/600"

echo Installing Adobe Acrobat 7.0
start /WAIT msiexec.exe /i "Acrobat Reader 7.0\Adobe Reader 7.0.msi" TRANSFORMS="Acrobat Reader 7.0\Adobe Reader 7.0.mst" /qb

echo Installing Adobe Acrobat 7.0.5 patch
start /WAIT msiexec.exe /p "Acrobat Reader 7.0\Ac705RdP_efgj.msp" REINSTALLMODE=omus REINSTALL=ALL /qb

poweroff reboot


------------------------------------------
There it is.
Poweroff is a free utility you can find here: http://users.pandora.be/jbosman/applications.html

I hate making the mst and iss files, so I will post them on my site if you need them.
I put a copy of the Ghostscript helper and ghostscript files in there along with this batch script.
Get it here: http://www.looserubble.com/auto-install-scripts.zip

Comments

mrjlturner said…
Nice post! Great job w/ the automation process :)

Popular Posts