$installDir = "$env:LOCALAPPDATA\Blueberry" $zipUrl = "https://git.technopunk.space/tomi/Blueberry/releases/download/latest/Blueberry.zip" $exePath = "$installDir\Blueberry.exe" if (Test-Path $installDir) { Remove-Item $installDir -Recurse -Force } New-Item -ItemType Directory -Path $installDir -Force | Out-Null # 3. Download & Unzip Write-Host "Downloading Blueberry..." $zipFile = "$env:TEMP\Blueberry.zip" Invoke-WebRequest -Uri $zipUrl -OutFile $zipFile Expand-Archive -Path $zipFile -DestinationPath $installDir -Force Remove-Item $zipFile $wsh = New-Object -ComObject WScript.Shell $shortcut = $wsh.CreateShortcut("$env:USERPROFILE\Desktop\Blueberry.lnk") $shortcut.TargetPath = $exePath $shortcut.Save() # 5. Run it Start-Process $exePath