Skip to content

Commit

Permalink
Added JDK install
Browse files Browse the repository at this point in the history
  • Loading branch information
multiverse2011 committed Feb 25, 2019
1 parent ab299c6 commit 579a5e1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

windows/ideaIC-2018\.3\.4\.win\.zip

windows/jdk-8u201-windows-x64\.exe
31 changes: 31 additions & 0 deletions windows/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## robop install tool ##

Write-Host "Start install sctipt..."

$ScriptDir = Split-Path $MyInvocation.MyCommand.Path

Function InstallJdk {

Write-Host "Installing OracleJDK..."
cmd /c "start ${ScriptDir}\jdk-8u201-windows-x64.exe /s /lang=1041 INSTALLDIR=C:\java\jdk1.8.201\ /L ${ScriptDir}\JDKsetup.log"
Write-Host "Done."

Write-Host "Setting system PATH..."
$UserPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
$UserPath += ';' + "C:\java\jdk1.8.201\bin\"
[Environment]::SetEnvironmentVariable('PATH', $UserPath, 'User')
Write-Host "Done."

Write-Host "Updating JAVA_HOME..."
$JavaHome = "C:\java\jdk1.8.201\"
[Environment]::SetEnvironmentVariable('JAVA_HOME', $JavaHome, 'User')

Write-Host "Done."
Write-Host ("Current PATH:" + $UserPath)
Write-Host ("Current JAVA_HOME:" + $JavaHome)
}

Function InstallIntellij {

}

0 comments on commit 579a5e1

Please sign in to comment.