$pythonInstallerUrl = "https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe" $pythonInstallerPath = "$env:TEMP\python-installer.exe"
$gitInstallerUrl = "https://github.com/git-for-windows/git/releases/latest/download/Git-x86_64.exe" $gitInstallerPath = "$env:TEMP\git-installer.exe"
$anydeskInstallerUrl = "https://download.anydesk.com/AnyDesk.exe" $anydeskInstallerPath = "$env:TEMP\AnyDesk.exe"
$albionInstallerUrl = "https://albiononline.com/en/download" $albionInstallerPath = "$env:TEMP\AlbionOnlineInstaller.exe"
$amnesiaVpnInstallerUrl = "https://amnesiavpn.com/download/AmnesiaVPN.exe" $amnesiaVpnInstallerPath = "$env:TEMP\AmnesiaVPN.exe"
$npcapInstallerUrl = "https://nmap.org/npcap/dist/npcap-1.75.exe" $npcapInstallerPath = "$env:TEMP\npcap-installer.exe"
function Install-Software { param ( [string]$installerPath, [string]$installArgs, [string]$softwareName )
Start-Process -FilePath $installerPath -ArgumentList $installArgs -Wait
Write-Host "$softwareName успешно установлен!" -ForegroundColor Green
}
Invoke-WebRequest -Uri $pythonInstallerUrl -OutFile $pythonInstallerPath Install-Software -installerPath $pythonInstallerPath -installArgs '/quiet InstallAllUsers=1 PrependPath=1' -softwareName 'Python'
Invoke-WebRequest -Uri $gitInstallerUrl -OutFile $gitInstallerPath Install-Software -installerPath $gitInstallerPath -installArgs '/VERYSILENT /NORESTART' -softwareName 'Git'
Invoke-WebRequest -Uri $anydeskInstallerUrl -OutFile $anydeskInstallerPath Install-Software -installerPath $anydeskInstallerPath -installArgs '/install /quiet' -softwareName 'AnyDesk'
Invoke-WebRequest -Uri $albionInstallerUrl -OutFile $albionInstallerPath Start-Process -FilePath $albionInstallerPath -Wait Write-Host "Albion Online успешно установлен!" -ForegroundColor Green
Invoke-WebRequest -Uri $amnesiaVpnInstallerUrl -OutFile $amnesiaVpnInstallerPath Start-Process -FilePath $amnesiaVpnInstallerPath -Wait Write-Host "Amnesia VPN успешно установлен!" -ForegroundColor Green
Invoke-WebRequest -Uri $npcapInstallerUrl -OutFile $npcapInstallerPath Start-Process -FilePath $npcapInstallerPath -ArgumentList '/S' -Wait Write-Host "Npcap успешно установлен!" -ForegroundColor Green
Remove-Item $pythonInstallerPath Remove-Item $gitInstallerPath Remove-Item $anydeskInstallerPath Remove-Item $albionInstallerPath Remove-Item $amnesiaVpnInstallerPath Remove-Item $npcapInstallerPath
python --version git --version