scripts/Windows/install_azure_storage_emulator.ps1

. "$PSScriptRoot\common.ps1"

Write-Host "Installing Azure storage emulator 5.10..." -ForegroundColor Cyan

GetProductVersion "Azure Storage Emulator"

Write-Host "Downloading..."
$msiPath = "$env:TEMP\MicrosoftAzureStorageEmulator.msi"
(New-Object Net.WebClient).DownloadFile('https://go.microsoft.com/fwlink/?LinkId=717179&clcid=0x409', $msiPath)

Write-Host "Installing..."
cmd /c start /wait msiexec /i "$msiPath" /q
Remove-Item $msiPath

GetProductVersion "Azure Storage Emulator"

Write-Host "Installed Azure storage emulator" -ForegroundColor Green