// Auto-generated from install.ps1
static const char *install_ps1 = 
    "$ErrorActionPreference = \"Stop\"\n"
    "\n"
    "$repo = \"StitcyYT/Complex-X-\"\n"
    "$installDir = \"$env:LOCALAPPDATA\\Complexx\"\n"
    "$desktopDir = [Environment]::GetFolderPath(\"Desktop\")\n"
    "$exePath = \"$installDir\\raycaster.exe\"\n"
    "\n"
    "if (Test-Path $exePath) {\n"
    "    Add-Type -AssemblyName System.Windows.Forms\n"
    "    $result = [System.Windows.Forms.MessageBox]::Show(\n"
    "        \"Do you want to update to the latest version?\",\n"
    "        \"Complexx Raycaster\",\n"
    "        [System.Windows.Forms.MessageBoxButtons]::YesNo,\n"
    "        [System.Windows.Forms.MessageBoxIcon]::Question\n"
    "    )\n"
    "    if ($result -ne [System.Windows.Forms.DialogResult]::Yes) {\n"
    "        exit 0\n"
    "    }\n"
    "}\n"
    "\n"
    "Write-Host \"Downloading Complexx Raycaster from GitHub...\"\n"
    "\n"
    "$release = Invoke-RestMethod -Uri \"https://api.github.com/repos/$repo/releases/latest\" -UseBasicParsing\n"
    "$asset = $release.assets | Where-Object { $_.name -like \"*.zip\" } | Select-Object -First 1\n"
    "if (-not $asset) {\n"
    "    [System.Windows.Forms.MessageBox]::Show(\n"
    "        \"No release found on GitHub.\",\n"
    "        \"Complexx Raycaster\",\n"
    "        [System.Windows.Forms.MessageBoxButtons]::OK,\n"
    "        [System.Windows.Forms.MessageBoxIcon]::Error\n"
    "    )\n"
    "    exit 1\n"
    "}\n"
    "\n"
    "$zipPath = \"$env:TEMP\\complexx_download.zip\"\n"
    "Invoke-WebRequest -Uri $asset.browser_download_url -OutFile $zipPath -UseBasicParsing\n"
    "\n"
    "Write-Host \"Installing to $installDir ...\"\n"
    "if (Test-Path $installDir) { Remove-Item $installDir -Recurse -Force }\n"
    "New-Item -ItemType Directory -Path $installDir -Force | Out-Null\n"
    "\n"
    "Expand-Archive -Path $zipPath -DestinationPath $installDir -Force\n"
    "Remove-Item $zipPath -Force\n"
    "\n"
    "if (-not (Test-Path $exePath)) {\n"
    "    [System.Windows.Forms.MessageBox]::Show(\n"
    "        \"Install failed: raycaster.exe not found.\",\n"
    "        \"Complexx Raycaster\",\n"
    "        [System.Windows.Forms.MessageBoxButtons]::OK,\n"
    "        [System.Windows.Forms.MessageBoxIcon]::Error\n"
    "    )\n"
    "    exit 1\n"
    "}\n"
    "\n"
    "Copy-Item $exePath \"$desktopDir\\Complexx Raycaster.exe\" -Force\n"
    "\n"
    "[System.Windows.Forms.MessageBox]::Show(\n"
    "    \"Complexx Raycaster is ready! Check your Desktop.\",\n"
    "    \"Complexx Raycaster\",\n"
    "    [System.Windows.Forms.MessageBoxButtons]::OK,\n"
    "    [System.Windows.Forms.MessageBoxIcon]::Information\n"
    ")\n"
    "\n"
    ;
