Announcement

Collapse
No announcement yet.

Batch: Unattended installation of Software

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Batch: Unattended installation of Software

    I'm currently quit busy to make an unattended installation of Windows 2000 Pro with some applications.
    My installation Batch file looks like this:

    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.

    someone with experience with this?
    Marcel
    Technical Consultant
    Netherlands
    http://www.phetios.com
    http://blog.nessus.nl

    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
    "No matter how secure, there is always the human factor."

    "Enjoy life today, tomorrow may never come."
    "If you're going through hell, keep going. ~Winston Churchill"


  • #2
    Have you paid a visit to appdeploy.com ?

    JRE: http://www.appdeploy.com/packages/detail.asp?id=38
    .NET: http://www.appdeploy.com/packages/detail.asp?id=94
    iTunes: http://www.appdeploy.com/packages/detail.asp?id=416

    And much more: http://www.appdeploy.com/packages/browse.asp?cat=all
    Guy Teverovsky
    "Smith & Wesson - the original point and click interface"

    Comment


    • #3
      AppDeploy is an excellent resource indeed. If you don't have to install from a CD, but can pull it over a network, you might want to consider RIS.

      Comment


      • #4
        Yeah, but itunes still needed to press next i will write a script for it or something.. it can't be run completely silent...

        i will try .net again.. already read this article, but didn't work out.. so far..

        For JRE i need problably (not tested yet) the following line...

        Code:
        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=[b]Really[/b]Suppress"
        Marcel
        Technical Consultant
        Netherlands
        http://www.phetios.com
        http://blog.nessus.nl

        MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
        "No matter how secure, there is always the human factor."

        "Enjoy life today, tomorrow may never come."
        "If you're going through hell, keep going. ~Winston Churchill"

        Comment


        • #5
          Originally posted by skatterbrain
          AppDeploy is an excellent resource indeed. If you don't have to install from a CD, but can pull it over a network, you might want to consider RIS.
          im aware of RIS, but the problem is, that there will no domain enviroment..
          it will be a few internet pc's (like an internet Caf&eacute... thats it...
          Marcel
          Technical Consultant
          Netherlands
          http://www.phetios.com
          http://blog.nessus.nl

          MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
          "No matter how secure, there is always the human factor."

          "Enjoy life today, tomorrow may never come."
          "If you're going through hell, keep going. ~Winston Churchill"

          Comment


          • #6
            Re: Batch: Unattended installation of Software

            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
            Marcel
            Technical Consultant
            Netherlands
            http://www.phetios.com
            http://blog.nessus.nl

            MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
            "No matter how secure, there is always the human factor."

            "Enjoy life today, tomorrow may never come."
            "If you're going through hell, keep going. ~Winston Churchill"

            Comment


            • #7
              Re: Batch: Unattended installation of Software

              Would it be useful to consider WinInstall (which used to be free on the Server 2000 cd but they now charge for it) to build .MSI packages on a clean machine then deploy your packages that way?

              Warning: Although you can download and use wininstall for free, the msi packages it builds do expire so cannot be used for real without buying the full version (although it is quite cheap).
              Best wishes,
              PaulH.
              MCP:Server 2003; MCITP:Server 2008; MCTS: SBS2008

              Comment


              • #8
                Re: Batch: Unattended installation of Software

                topic started at: 29th July 2005
                So it's rather old

                I've closed it.
                Marcel
                Technical Consultant
                Netherlands
                http://www.phetios.com
                http://blog.nessus.nl

                MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
                "No matter how secure, there is always the human factor."

                "Enjoy life today, tomorrow may never come."
                "If you're going through hell, keep going. ~Winston Churchill"

                Comment

                Working...
                X