PowerShell/Examples/Install-Flowgorithm
< PowerShell | Examples
# This script downloads and installs Flowgorithm.
function Install-Flowgorithm {
Write-Host "Downloading Flowgorithm..."
$Path = $env:TEMP
$Archive = "Flowgorithm.zip"
$Extract = "Flowgorithm"
$Installer = "setup.exe"
$URL = "http://www.flowgorithm.org/download/files/Flowgorithm-2.22.1-64-Setup.zip"
Invoke-WebRequest $URL -OutFile $Path\$Archive
Write-Host "Extracting Flowgorithm..."
Expand-Archive -LiteralPath $Path\$Archive -DestinationPath $Path\$Extract
Write-Host "Installing Flowgorithm..."
Start-Process -FilePath $Path\$Extract\$Installer -Args "/quiet" -Verb RunAs -Wait
Remove-Item $Path\$Archive
Remove-Item $Path\$Extract -Recurse -ErrorAction Ignore
}
Install-Flowgorithm