免互動安裝Sunshine、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id LizardByte.Sunshine -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LizardByte.Sunshine -e --silentwinget uninstall --id LizardByte.Sunshine -e --silent依安裝檔
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i Sunshine-Windows-AMD64-installer.msi /qn /norestart寫入記錄檔
msiexec /i Sunshine-Windows-AMD64-installer.msi /qn /norestart /l*v "%TEMP%\sunshine-install.log"解除安裝
msiexec /x {F4B3C08C-F867-4367-9465-6DAB091E5FB6} /qn /norestart- MSI產品代碼
- {F4B3C08C-F867-4367-9465-6DAB091E5FB6}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F4B3C08C-F867-4367-9465-6DAB091E5FB6}
- UpgradeCode
- {512A3D1B-BE16-401B-A0D1-59BBA3942FB8}
- 安裝資料夾
- %ProgramFiles%/./Sunshine
ARM64 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i Sunshine-Windows-ARM64-installer.msi /qn /norestart寫入記錄檔
msiexec /i Sunshine-Windows-ARM64-installer.msi /qn /norestart /l*v "%TEMP%\sunshine-install.log"解除安裝
msiexec /x {652D54E6-96EC-4359-AC7B-A8C0BF541D8D} /qn /norestart- MSI產品代碼
- {652D54E6-96EC-4359-AC7B-A8C0BF541D8D}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{652D54E6-96EC-4359-AC7B-A8C0BF541D8D}
- UpgradeCode
- {512A3D1B-BE16-401B-A0D1-59BBA3942FB8}
- 安裝資料夾
- %ProgramFiles%/./Sunshine
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-sunshine.ps1
$url = 'https://github.com/LizardByte/Sunshine/releases/download/v2026.914.233613/Sunshine-Windows-AMD64-installer.msi'
$sha256 = '1D7FED8BEECD5889DC7FF14CF9F42D6D38F37C3066C13C6C2A5F4E91847E0CCF'
$file = Join-Path $env:TEMP 'Sunshine-Windows-AMD64-installer.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-sunshine.ps1
$url = 'https://github.com/LizardByte/Sunshine/releases/download/v2026.914.233613/Sunshine-Windows-ARM64-installer.msi'
$sha256 = '1E211404B924FCF421657C71E1AAA95CF1F76E172CACF8FF8430BEACC0E30E4A'
$file = Join-Path $env:TEMP 'Sunshine-Windows-ARM64-installer.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait