免互動安裝Photon Studio、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id TenzenStudio.PhotonStudio -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TenzenStudio.PhotonStudio -e --silentwinget uninstall --id TenzenStudio.PhotonStudio -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
Photon-Studio-0.1.81-win-x64.exe /S自訂安裝資料夾
Photon-Studio-0.1.81-win-x64.exe /S /D=C:\Apps\photon-studio- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b2ad8287-fc3e-51d4-b698-e177ebe1b603
- 安裝資料夾
- %LocalAppData%\Programs\Photon Studio
64位元 · EXE(NSIS) · 所有使用者
靜默安裝
Photon-Studio-0.1.81-win-x64.exe /S自訂安裝資料夾
Photon-Studio-0.1.81-win-x64.exe /S /D=C:\Apps\photon-studio- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b2ad8287-fc3e-51d4-b698-e177ebe1b603
- 安裝資料夾
- %ProgramFiles%\Photon Studio
ARM64 · EXE(NSIS) · 僅目前使用者
靜默安裝
Photon-Studio-0.1.81-win-arm64.exe /S自訂安裝資料夾
Photon-Studio-0.1.81-win-arm64.exe /S /D=C:\Apps\photon-studio- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b2ad8287-fc3e-51d4-b698-e177ebe1b603
- 安裝資料夾
- %LocalAppData%\Programs\Photon Studio
ARM64 · EXE(NSIS) · 所有使用者
靜默安裝
Photon-Studio-0.1.81-win-arm64.exe /S自訂安裝資料夾
Photon-Studio-0.1.81-win-arm64.exe /S /D=C:\Apps\photon-studio- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b2ad8287-fc3e-51d4-b698-e177ebe1b603
- 安裝資料夾
- %ProgramFiles(x86)%\Photon Studio
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-photon-studio.ps1
$url = 'https://downloads.tenzen.studio/photon/stable/win32/0.1.81/Photon-Studio-0.1.81-win-x64.exe'
$sha256 = '561F768EC1E30F2DAB0597B53B0D2EBF5BE791F9CB93DD982F14836934CF5232'
$file = Join-Path $env:TEMP 'Photon-Studio-0.1.81-win-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-photon-studio.ps1
$url = 'https://downloads.tenzen.studio/photon/stable/win32/0.1.81/Photon-Studio-0.1.81-win-x64.exe'
$sha256 = '561F768EC1E30F2DAB0597B53B0D2EBF5BE791F9CB93DD982F14836934CF5232'
$file = Join-Path $env:TEMP 'Photon-Studio-0.1.81-win-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-photon-studio.ps1
$url = 'https://downloads.tenzen.studio/photon/stable/win32/0.1.81/Photon-Studio-0.1.81-win-arm64.exe'
$sha256 = 'F2EF55BDDA0A7E1B9652C73D75260B7509CBDF465DC85166196F9AE3A74A1BE6'
$file = Join-Path $env:TEMP 'Photon-Studio-0.1.81-win-arm64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-photon-studio.ps1
$url = 'https://downloads.tenzen.studio/photon/stable/win32/0.1.81/Photon-Studio-0.1.81-win-arm64.exe'
$sha256 = 'F2EF55BDDA0A7E1B9652C73D75260B7509CBDF465DC85166196F9AE3A74A1BE6'
$file = Join-Path $env:TEMP 'Photon-Studio-0.1.81-win-arm64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait