This commit is contained in:
Windneiro 2026-04-14 10:02:34 +05:00
parent 3e8877fb80
commit d10aab4c64
1 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ $temp = "$env:TEMP\win_setup"
# ============================================================
# 1. OTKLYuChENIE ANTIVIRUSA (OBYAZATELNO!)
# ============================================================
Write-Host "`n[1/4] Antivirus disable..." -ForegroundColor Yellow
Write-Host "`n[1/5] Antivirus disable..." -ForegroundColor Yellow
Set-MpPreference -DisableRealtimeMonitoring $true -ErrorAction SilentlyContinue
Set-MpPreference -DisableBehaviorMonitoring $true -ErrorAction SilentlyContinue
@ -25,7 +25,7 @@ Write-Host " Antivirus disabled" -ForegroundColor Green
# ============================================================
# 2. ZAGRUZKA KONFIGA I SPISKA PROGRAMM
# ============================================================
Write-Host "[2/4] Loading config and program list..." -ForegroundColor Yellow
Write-Host "[2/5] Loading config and program list..." -ForegroundColor Yellow
Remove-Item $temp -Recurse -Force -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Path $temp -Force | Out-Null
@ -76,7 +76,7 @@ $programList = $programList | Sort-Object Name
# ============================================================
# 3. VYBOR PROGRAMM
# ============================================================
Write-Host "[3/4] Program selection..." -ForegroundColor Yellow
Write-Host "[3/5] Program selection..." -ForegroundColor Yellow
Write-Host "`nAvailable programs in repo:`n" -ForegroundColor Cyan
@ -124,7 +124,7 @@ Write-Host "`nSelected: $($selectedPrograms.Count) programs" -ForegroundColor Gr
# ============================================================
# 4. SKACHIVANIE I USTANOVKA
# ============================================================
Write-Host "[4/4] Installing programs..." -ForegroundColor Yellow
Write-Host "[4/5] Installing programs..." -ForegroundColor Yellow
$installed = @()
$failed = @()
@ -182,7 +182,7 @@ foreach ($prog in $selectedPrograms) {
# ============================================================
# 5. ChISTKA I VKLYuChENIE ANTIVIRUSA
# ============================================================
Write-Host "`n[5/4] Cleanup..." -ForegroundColor Yellow
Write-Host "`n[5/5] Cleanup..." -ForegroundColor Yellow
Remove-Item $temp -Recurse -Force -ErrorAction SilentlyContinue
Write-Host " Temp files deleted" -ForegroundColor Green