Skip to content

Instantly share code, notes, and snippets.

@UndarkAido
Created May 2, 2018 17:58
Show Gist options
  • Save UndarkAido/59f3a6e4e6f980fd80e32fdbe022ef64 to your computer and use it in GitHub Desktop.
Save UndarkAido/59f3a6e4e6f980fd80e32fdbe022ef64 to your computer and use it in GitHub Desktop.
$dir = [System.IO.Path]::GetFullPath((Join-Path $(([io.fileinfo]$MyInvocation.MyCommand.Definition).DirectoryName) "..\"))
if (!(Test-Path "$(join-path $env:USERPROFILE "\Temp\ideaIU\bin\idea.bat")")) {
Import-Module BitsTransfer
Start-BitsTransfer -Source "https://download-cf.jetbrains.com/idea/ideaIU-2018.1.2.win.zip" -Destination $(join-path $env:USERPROFILE "\Downloads\ideaIU.win.zip")
iex "$(JOIN-PATH $dir "Program``` Files\7z-extra\x64\7za.exe") x $(join-path $env:USERPROFILE "\Downloads\ideaIU.win.zip") -o$(join-path $env:USERPROFILE "\Temp\ideaIU")"
}
iex "cmd /c $(join-path $env:USERPROFILE "\Temp\ideaIU\bin\idea.bat")"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment