免互動安裝Figma、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Figma.Figma -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Figma.Figma -e --silentwinget uninstall --id Figma.Figma -e --silent依安裝檔
64位元 · EXE · 僅目前使用者
靜默安裝
Figma-126.11.7.exe --silent- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Figma
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i Figma-126.11.7.msi /qn /norestart寫入記錄檔
msiexec /i Figma-126.11.7.msi /qn /norestart /l*v "%TEMP%\figma-install.log"- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BDE063B2-459A-4ECE-876D-E449ACCAC237}.msq
- 安裝資料夾
- %ProgramFiles(x86)%\Figma\app-125.5.6
ARM64 · EXE · 僅目前使用者
靜默安裝
Figma-126.11.7.exe --silent- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Figma
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-figma.ps1
$url = 'https://desktop.figma.com/win/build/Figma-126.11.7.exe'
$sha256 = 'FECB92200260DF4FEB53D2B2DAC140EE17E09B60DBD62C09B89FDE8C9A2BADAA'
$file = Join-Path $env:TEMP 'Figma-126.11.7.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 '--silent' -Wait install-figma.ps1
$url = 'https://desktop.figma.com/win/build/Figma-126.11.7.msi'
$sha256 = '052259BFE4065C91E370470328EC9D490CC6EB98D813944E9C24DE5CA9A0C77F'
$file = Join-Path $env:TEMP 'Figma-126.11.7.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-figma.ps1
$url = 'https://desktop.figma.com/win-arm/build/Figma-126.11.7.exe'
$sha256 = '043D6FE5238E72A4A5446B282DC3CF389556F38B4E311CC223AFE2FB1B250227'
$file = Join-Path $env:TEMP 'Figma-126.11.7.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 '--silent' -Wait