# FREGONATOR Quick Installer v5.0 # Usage: irm fregonator.com/install.ps1 | iex $ErrorActionPreference = "Stop" $version = "5.0" $downloadUrl = "https://fregonator.com/FREGONATOR-5.0-Setup.zip" $installPath = "$env:LOCALAPPDATA\FREGONATOR" # Banner Write-Host "" Write-Host " ███████╗██████╗ ███████╗ ██████╗ ██████╗ ███╗ ██╗ █████╗ ████████╗ ██████╗ ██████╗ " -ForegroundColor Cyan Write-Host " ██╔════╝██╔══██╗██╔════╝██╔════╝ ██╔═══██╗████╗ ██║██╔══██╗╚══██╔══╝██╔═══██╗██╔══██╗" -ForegroundColor Cyan Write-Host " █████╗ ██████╔╝█████╗ ██║ ███╗██║ ██║██╔██╗ ██║███████║ ██║ ██║ ██║██████╔╝" -ForegroundColor Cyan Write-Host " ██╔══╝ ██╔══██╗██╔══╝ ██║ ██║██║ ██║██║╚██╗██║██╔══██║ ██║ ██║ ██║██╔══██╗" -ForegroundColor Cyan Write-Host " ██║ ██║ ██║███████╗╚██████╔╝╚██████╔╝██║ ╚████║██║ ██║ ██║ ╚██████╔╝██║ ██║" -ForegroundColor Cyan Write-Host " ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝" -ForegroundColor Cyan Write-Host "" Write-Host " Quick Installer v$version - https://fregonator.com" -ForegroundColor White Write-Host "" try { # Download Write-Host " [1/3] Downloading FREGONATOR v$version..." -ForegroundColor Yellow $tempZip = "$env:TEMP\fregonator-install.zip" Invoke-WebRequest -Uri $downloadUrl -OutFile $tempZip -UseBasicParsing Write-Host " Downloaded!" -ForegroundColor Green # Extract Write-Host " [2/3] Installing to $installPath..." -ForegroundColor Yellow if (Test-Path $installPath) { Remove-Item $installPath -Recurse -Force } New-Item -ItemType Directory -Path $installPath -Force | Out-Null Expand-Archive -Path $tempZip -DestinationPath $installPath -Force Write-Host " Installed!" -ForegroundColor Green # Create Desktop shortcut Write-Host " [3/3] Creating shortcut..." -ForegroundColor Yellow $WshShell = New-Object -ComObject WScript.Shell $desktopLink = "$env:USERPROFILE\Desktop\FREGONATOR.lnk" $shortcut = $WshShell.CreateShortcut($desktopLink) $shortcut.TargetPath = "$installPath\FREGONATOR.bat" $shortcut.WorkingDirectory = $installPath $shortcut.IconLocation = "$installPath\fregonator.ico" $shortcut.Description = "FREGONATOR - PC Optimizer" $shortcut.Save() Write-Host " Shortcut on Desktop!" -ForegroundColor Green # Cleanup Remove-Item $tempZip -Force -ErrorAction SilentlyContinue Write-Host "" Write-Host " ============================================" -ForegroundColor Green Write-Host " FREGONATOR v$version installed!" -ForegroundColor Green Write-Host " ============================================" -ForegroundColor Green Write-Host "" Write-Host " Location: $installPath" -ForegroundColor Gray Write-Host " Shortcut: Desktop" -ForegroundColor Gray Write-Host "" Write-Host " Launching FREGONATOR..." -ForegroundColor Cyan Start-Sleep -Seconds 2 Start-Process "$installPath\FREGONATOR.bat" -WorkingDirectory $installPath } catch { Write-Host "" Write-Host " [ERROR] $_" -ForegroundColor Red Write-Host " Download manually: https://fregonator.com" -ForegroundColor Yellow Read-Host " Press Enter to exit" }