Sunday, March 13, 2011

Batch: Unattended installation of Software - Petri.co.il forums by Daniel Petri

Batch: Unattended installation of Software - Petri.co.il forums by Daniel Petri
Code:
@Echo off IF EXIST D:\Software set CDROM=D: IF EXIST E:\Software set CDROM=E: IF EXIST F:\Software set CDROM=F: IF EXIST G:\Software set CDROM=G: IF EXIST H:\Software set CDROM=H: IF EXIST I:\Software set CDROM=I: IF EXIST J:\Software set CDROM=J: IF EXIST K:\Software set CDROM=K: IF EXIST L:\Software set CDROM=L: IF EXIST M:\Software set CDROM=M: IF EXIST N:\Software set CDROM=N: IF EXIST O:\Software set CDROM=O: IF EXIST P:\Software set CDROM=P: IF EXIST Q:\Software set CDROM=Q: IF EXIST R:\Software set CDROM=R: IF EXIST S:\Software set CDROM=S: IF EXIST T:\Software set CDROM=T: IF EXIST U:\Software set CDROM=U: IF EXIST V:\Software set CDROM=V: IF EXIST W:\Software set CDROM=W: IF EXIST X:\Software set CDROM=X: IF EXIST Y:\Software set CDROM=Y: IF EXIST Z:\Software set CDROM=Z:  eCHO Installing acrobat Reader 7.0  "%CDROM%\software\Acrobat Reader 7.0\Adobe Reader 7.0.msi" /qb   Echo Installing Shockwave and Flash Player Echo Please Wait..... Copy "%CDROM%\software\ShockWave And Flash Player\mms.cfg" %Systemroot%\system32  "%CDROM%\Software\ShockWave And Flash Player\mm_fl_sw_installer.msi" /qb   Echo Installing Internet explorer 6.1  "%CDROM%\Software\Internet Explorer 6 sp1\ie6setup.exe" /C:"ie6wzd /S:""#e"" /Q:C /R:N /V:I"  Echo Installing Microsoft .NET Framework "%CDROM%\software\Microsoft .NET FrameWork\netfx.msi" /qb    Echo Installing MSN Messenger 7  "%CDROM%\Software\MSN 7\MsnMsgs.msi" IAGREE="Yes" ADDEXPLORERTOOLBAR="" SETSEARCHENGINE="" SETHOMEPAGE="" /qb-  Echo Installing QuickTime and Itunes  REM "%CDROM%\Software\Itunes and QuickTime\ITUNESSETUP.EXE" /S /V"ISSETUPDRIVEN=0 ASSUME_MEDIA_DEFAULTS=1 ASSUME_QT_DEFAULTS=0 ALLUSERS=1 SILENT_INSTALL=1 /QB"  Echo Installing Sun Java Runtime Environment  "%CDROM%\Software\Java\jre-1_5_0_04-windows-i586-p.exe" /s /v"/qb IEXPLORER=1 ADDLOCAL=ALL JAVAUPDATE=0 WEBSTARTICON=0 SYSTRAY=0 REBOOT=Suppress"  Echo Installing Windows media player 9  "%CDROM%\Software\Windows Media Player 9\MPSetup.EXE" /Q:A /R:N /C:"setup_wm.exe /Q:A /R:N"  Echo Installing Irfan View Picture Viewer  "%CDROM%\Software\Irfan view\Iview397.exe" /silent /desktop=0 /group=1 /allusers=1 /assoc=1
but i got a few problems with this, and i hoped you guys know some solution.

A) .NET installer ask for the CD?
B) JAVA installer doens't suppress the Reboot question
C)Somehow i can't install itunes with quicktime. He's still asking for pressing Next.
It's really getting annoyed.
ok. got everything working.. except Intunes.
For itunes there some lines to install, but then i loose the functionallity of quicktime, which is the main thing i wanted. Itunes is not important for me.

Anyone who know how to do that??

RonOnceEx.cmd:
Code:
cmdow @ /HID @echo off CLS SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx  @REG ADD %KEY% /V TITLE /D "Installing Applications" /f  @REG ADD %KEY%\005 /VE /D "Adobe Reader 7" /f @REG ADD %KEY%\005 /V 1 /D "\"%systemdrive%\install\software\Acrobat Reader 7.0\Adobe Reader 7.0.msi\" /qn"  /f  @REG ADD %KEY%\015 /VE /D "Shockwave and Flash Player" /f @REG ADD %KEY%\015 /V 1 /D "\"%systemdrive%\install\Software\ShockWave And Flash Player\mm_fl_sw_installer.msi\" /qn" /f  @REG ADD %KEY%\025 /VE /D "Mcafee virusscan 8.0i" /f @REG ADD %KEY%\025 /V 1 /D "\"%systemdrive%\install\software\McAfee VirusScan Enterprise 80\Setup.exe\"" /f  @REG ADD %KEY%\030 /VE /D "Microsoft .NET Framework" /f @REG ADD %KEY%\030 /V 1 /D "\"%systemdrive%\install\software\Microsoft .NET FrameWork\netfx.msi\"" /f  @REG ADD %KEY%\035 /VE /D "Internet explorer 6.1" /f @REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\IE6.cmd" /f  REG ADD %KEY%\037 /VE /D "MSN Messenger 7" /f REG ADD %KEY%\037 /V 1 /D "%systemdrive%\install\MSN7.cmd" /f  @REG ADD %KEY%\040 /VE /D "QuickTime and Itunes" /f @REG ADD %KEY%\040 /V 1 /D "\"%systemdrive%\install\software\Itunes and QuickTime\ITUNESSETUP.EXE\" /S" /f  @REG ADD %KEY%\047 /VE /D "Sun Java Runtime environment" /f @REG ADD %KEY%\047 /V 1 /D "%systemdrive%\install\SunJava.cmd" /f  @REG ADD %KEY%\050 /VE /D "Windows media player 9" /f @REG ADD %KEY%\050 /V 1 /D "\"%systemdrive%\install\software\Windows Media Player 9\MPSetup.exe\" /q" /f  @REG ADD %KEY%\055 /VE /D "Irfan View Picture Viewer" /f @REG ADD %KEY%\055 /V 1 /D "\"%systemdrive%\install\software\Irfan view\Iview397.exe\" /silent /desktop=0 /group=1 /allusers=1 /assoc=1" /f
MSN Messenger 7.0 batch:
Code:
cmdow @ /HID @Start "" /wait "%systemdrive%\install\software\MSN 7\MsnMsgs.msi" IAGREE="Yes" ADDEXPLORERTOOLBAR="" SETSEARCHENGINE="" SETHOMEPAGE="" /qb-  EXIT
Internet Explorer batch:
Code:
cmdow @ /HID @Start "" /wait "%systemdrive%\install\software\Internet Explorer 6 sp1\ie6setup.exe" /C:"ie6wzd /S:""#e"" /Q:C /R:N /V:I"  EXIT
SunJava.cmd
Code:
cmdow @ /HID Start "" /wait %systemdrive%\install\software\Java\jre-1_5_0_04-windows-i586-p.exe /s /v"/qb IEXPLORER=1 MOZILLA=0 NETSCAPE6=0 JAVAUPDATE=0 WEBSTARTICON=0 SYSTRAY=0 REBOOT=ReallySuppress"  EXIT
__________________


No comments:

Post a Comment