Created
May 2, 2018 17:58
-
-
Save UndarkAido/59f3a6e4e6f980fd80e32fdbe022ef64 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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