Monday, March 2, 2015

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:softwareBuild 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 Messengermsnmsgs.msi" /q

echo Installing Prism Plug-In for Boeing Drawings
start /WAIT prismPrizmPlug-in-ext.exe /s /f1"prismSkillsInstallPrism.iss"

echo Installing Desktop Icons
REM start /WAIT "Installing" "Q:softwareDesktop AppsDesktop IconsDoc Control Icons.EXE"
echo Copy desktop icons from the terminal server
copy "\monster2c$Documents and SettingsAll UsersDesktop*.*" "c:Documents and SettingsAll UsersDesktop" /y

echo Installing Macromedia Flash 8
start /WAIT msiexec.exe /i "macromediainstall_flash_player_active_x.msi" /qb

echo Installing Macromedia Shockwave 10
start /WAIT msiexec.exe /i "macromediasw_lic_full_installer.msi" /qb

echo Installing Volo Viewer
start /WAIT "Installing" "\datamsiVolo Viewersetup.exe" -noprompt -b:n -b:f

echo Installing Office 2003
start /WAIT "Installing" \datamsioffice2003setup.exe TRANSFORMS=\datamsioffice2003skills-install-Office.MST /qb-

echo Installing Recovery Console
start /WAIT "Installing" \datamsixpi386winnt32.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:softwareDesktop AppsSymantec Antivirus10CD1SAVSymantec 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 "HKLMSOFTWAREJavaSoftJava UpdatePolicy" /v EnableJavaUpdate /t REG_DWORD /d 0 /f
REG ADD "HKLMSOFTWAREJavaSoftJava UpdatePolicy" /v EnableAutoUpdateCheck /t REG_DWORD /d 0 /f
REG ADD "HKLMSOFTWAREJavaSoftJava UpdatePolicy" /v NotifyDownload /t REG_DWORD /d 0 /f
REG ADD "HKLMSOFTWAREJavaSoftJava UpdatePolicy" /v NotifyInstall /t REG_DWORD /d 0 /f
REG DELETE "HKLMSOFTWAREJavaSoftJava UpdatePolicy" /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" "GhostscriptGhostscript-PDF-703.exe"
echo Installing PDF Printer...
start /WAIT rundll32 printui.dll,PrintUIEntry /if /b "Adobe Acrobat PDF" /f %windir%inf
tprint.inf /r "RPT1:" /u /m "Apple Color LaserWriter 12/600"

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

echo Installing Adobe Acrobat 7.0.5 patch
start /WAIT msiexec.exe /p "Acrobat Reader 7.0Ac705RdP_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
for details click below

No comments:

Post a Comment