3.7.1. Installing Required Software using Powershell CLI

Identify a workspace directory that will have all the software installation files. In the powershell instructions in this section, $env:WORKSPACE refers to the full path of the workspace directory using an environment variable, for example:

setx WORKSPACE "C:\workspace" /m

After setting the environment variable using setx from the command prompt, you must restart the powershell cli. When using a script you may want to set Workspace as a standard PS variable to avoid having to restart powershell.

Ensure that you install the following software on every host machine in your cluster:

  •  Python 2.7.X

    Use the following instructions to manually install Python in your local environment:

    1. Download Python from here to the workspace directory.

    2. Install Python and update the PATH environment variable. Using Administrator privileges. From the Powershell window, execute the following commands as Administrator user:

      $key = "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment”
      $currentPath =  (Get-ItemProperty -Path $key -name Path).Path + ';'
      $pythonDir = "C:\Python\"
      
      msiexec  /qn /norestart /l* $env:WORKSPACE\python_install.log /i $env:WORKSPACE\python-2_7_5_amd64.msi TARGETDIR=$pythonDir ALLUSERS=1
      setx PATH "$currentPath$pythonDir" /m

      where WORKSPACE is an environment variable for the directory path where the installer is located.

      [Important]Important

      Ensure the downloaded Python MSI name matches python-2_7_5_amd64.msi. If not, change the above command to match the MSI file name.

  • Microsoft Visual C++ 2010 Redistributable Package (64-bit)

    1. Use the instructions provided here to download Microsoft Visual C++ 2010 Redistributable Package (64-bit) to the workspace directory.

    2. Execute the following command from Powershell with Administrator privileges:

      & "$env:WORKSPACE\vcredist_x64.exe" /q /norestart /log "$env:WORKSPACE\C_2010_install.log"

  • Microsoft .NET framework 4.0

    1. Use the instructions provided here to download Microsoft .NET framework 4.0 to the workspace directory.

    2. Execute the following command from Powershell with Administrator privileges:

      & "$env:WORKSPACE\NDP451-KB2858728-x86-x64-AllOS-ENU.exe" /q /norestart /log "$env:WORKSPACE\NET-install_log.htm"

  • JDK version 7

    Use the instructions provided below to manually install JDK to the workspace directory:

    1. Check the version. From a command shell or Powershell window, type:

      java -version
      [Note]Note

      Uninstall the Java package if the JDK version is less than v1.6 update 31.

    2. Go to Oracle Java SE Downloads page and download the JDK installer to the workspace directory.

    3. From Powershell with Administrator privileges, execute the following commands:

      $key = "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment”
      $currentPath =  (Get-ItemProperty -Path $key -name Path).Path + ';'
      $javaDir = "C:\java\jdk1.7.0_51\"
      
      & "$env:WORKSPACE\jdk-7u51-windows-x64.exe" /qn /norestart /log "$env:WORKSPACE\jdk-install.log"  INSTALLDIR="C:\java" ALLUSERS=1
      setx JAVA_HOME "$javaDir" /m
      setx PATH "$currentPath$javaDir\bin" /m

      where WORKSPACE is an environment variable for the directory path where the installer is located and C:\java\jdk1.7.0_51\ is the path where java will be installed. Ensure that no whitespace characters are present in the installation directory's path. For example, C:\Program Files is not allowed.

    4. Verify your installation and that the Java application is in your Path environment variable. From a command shell or Powershell window, type:

      java -version
      java version "1.7.0_51" 
      Java(TM) SE Runtime Environment (build 1.7.0_51-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)  


loading table of contents...