$ErrorActionPreference = "Stop" [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 Write-Host "" Write-Host "========================================================================" -ForegroundColor Cyan Write-Host "๐Ÿฑ Installing NomSod (เธ™เธกเธชเธ”) - Local MCP Bridge for ChatGPT..." -ForegroundColor White Write-Host "========================================================================" -ForegroundColor Cyan Write-Host "" $installDir = "$env:LOCALAPPDATA\Programs\NomSod" $tempZip = "$env:TEMP\NomSod-latest.zip" $downloadUrl = "https://nomsod.net/downloads/NomSod-latest.zip" Write-Host "๐Ÿ“ฆ Downloading NomSod from $downloadUrl..." -ForegroundColor Yellow Invoke-WebRequest -Uri $downloadUrl -OutFile $tempZip -UseBasicParsing Write-Host "๐Ÿ“ Extracting to $installDir..." -ForegroundColor Yellow if (!(Test-Path $installDir)) { New-Item -ItemType Directory -Path $installDir -Force | Out-Null } Expand-Archive -Path $tempZip -DestinationPath $installDir -Force Remove-Item -Path $tempZip -Force -ErrorAction SilentlyContinue # Create Desktop Shortcut $desktopPath = [System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Desktop) $shortcutPath = Join-Path $desktopPath "NomSod.lnk" $wscript = New-Object -ComObject WScript.Shell $shortcut = $wscript.CreateShortcut($shortcutPath) $shortcut.TargetPath = "$installDir\NomSod-Start.cmd" $shortcut.WorkingDirectory = $installDir $shortcut.Description = "NomSod - Local MCP Bridge for ChatGPT" $shortcut.Save() Write-Host "" Write-Host "========================================================================" -ForegroundColor Green Write-Host "๐ŸŽ‰ NomSod Successfully Installed!" -ForegroundColor Green Write-Host "๐Ÿ“ Location: $installDir" -ForegroundColor White Write-Host "๐Ÿ–ฅ๏ธ Desktop Shortcut: $shortcutPath" -ForegroundColor White Write-Host "========================================================================" -ForegroundColor Green Write-Host "" Write-Host "๐Ÿš€ Launching NomSod..." -ForegroundColor Cyan Start-Process -FilePath "$installDir\NomSod-Start.cmd" -WorkingDirectory $installDir