Rustmilian to linuxmemesEnglish • 7 months ago"LiNuX uSeR iNsTaLlInG A BrOwSeR haha" meanwhile :imagemessage-square196arrow-up11.13Karrow-down126file-text
arrow-up11.1Karrow-down1image"LiNuX uSeR iNsTaLlInG A BrOwSeR haha" meanwhile :Rustmilian to linuxmemesEnglish • 7 months agomessage-square196file-text
minus-square@dezmdlinkEnglish10•7 months agoYeah, totally. Just imagine trying to do this with Windows Powershell, without a package manager like chocolatey to make it simple like linux… $workdir = "c:\installer\" If (Test-Path -Path $workdir -PathType Container) { Write-Host "$workdir already exists" -ForegroundColor Red} ELSE { New-Item -Path $workdir -ItemType directory } $source = "https://download.mozilla.org/?product=firefox-latest&os=win64&lang=en-US" $destination = "$workdir\firefox.exe" if (Get-Command 'Invoke-Webrequest') { Invoke-WebRequest $source -OutFile $destination } else { $WebClient = New-Object System.Net.WebClient $webclient.DownloadFile($source, $destination) } Start-Process -FilePath "$workdir\firefox.exe" -ArgumentList "/S" Start-Sleep -s 35 rm -Force $workdir/firefox*
Yeah, totally.
Just imagine trying to do this with Windows Powershell, without a package manager like chocolatey to make it simple like linux…
$workdir = "c:\installer\" If (Test-Path -Path $workdir -PathType Container) { Write-Host "$workdir already exists" -ForegroundColor Red} ELSE { New-Item -Path $workdir -ItemType directory } $source = "https://download.mozilla.org/?product=firefox-latest&os=win64&lang=en-US" $destination = "$workdir\firefox.exe" if (Get-Command 'Invoke-Webrequest') { Invoke-WebRequest $source -OutFile $destination } else { $WebClient = New-Object System.Net.WebClient $webclient.DownloadFile($source, $destination) } Start-Process -FilePath "$workdir\firefox.exe" -ArgumentList "/S" Start-Sleep -s 35 rm -Force $workdir/firefox*