locked
trying to deploy Windows SP1 then IE11 (through script) - Newbe looking for advice RRS feed

  • Question

  • Hello

    thank you for reading my post

    I am trying to install IE 11 through SCCM

    But I need to check if Windows 7 SP1 is installed - if not install it then install IE 11

    this is my script - I think it should work - but I cant get my head around the check Service pack 1 is installed part then the IF statement

    (as you have guessed I am new to all of this)

    @echo off
     setlocal
    set Installpath=%~dp0


       set qry="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDVersion
       reg query %qry% | find "Service Pack 1" || goto :InstallIE11 Else goto :InstallSP1thenIE

    :InstallSP1thenIE
    start /wait "" "%Installpath%FLAT\AMD64_WIN7\EN-US\IE11-Setup-Full.msi /q
    goto:Done


    :InstallIE11
    REM Install missing hotfixes needed for Windows SP1

    start /wait dism.exe /online /add-package /packagepath:%InstallPath%Windows6.1
    KB2454826-v2-x64\Windows6.1-KB2454826-v2-x64.cab  /quiet /norestart

    start /wait dism.exe /online /add-package /packagepath:%InstallPath%Windows6.1-

    KB2533552-x64\Windows6.1-KB2533552-x64.cab /quiet /norestart


    start /wait dism.exe /online /add-package /packagepath:%InstallPath%Windows6.1-

    KB2534366-x64\Windows6.1-KB2534366-x64.cab /quiet /norestart

    start /wait dism.exe /online /add-package /packagepath:%InstallPath%Windows6.1-

    KB2731771-x64.cab /quiet /norestart

    start /wait %InstallPath%windows6.1-KB976932-X64  /quiet] /nodialog /norestart

    start /wait "" "%Installpath%FLAT\AMD64_WIN7\EN-US\IE11-Setup-Full.msi /q

    goto:Done

    :Done
    pause

    As you can see I am trying to learn as I go

    • Moved by Bill_Stewart Thursday, December 3, 2015 10:18 PM Off-topic (again)
    Wednesday, October 28, 2015 9:59 AM

Answers