免互動安裝Moises、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Moises.Moises -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Moises.Moises -e --silentwinget uninstall --id Moises.Moises -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
"Moises Setup 2.1.0 - Build 261021a1gygumpb-x64.exe" /S自訂安裝資料夾
"Moises Setup 2.1.0 - Build 261021a1gygumpb-x64.exe" /S /D=C:\Apps\moises- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\5bd5b589-114e-52ce-b8c8-e099ed1b620a
ARM64 · EXE(NSIS) · 僅目前使用者
靜默安裝
"Moises Setup 2.1.0 - Build 261021a1gygumpb-arm64.exe" /S自訂安裝資料夾
"Moises Setup 2.1.0 - Build 261021a1gygumpb-arm64.exe" /S /D=C:\Apps\moises- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\5bd5b589-114e-52ce-b8c8-e099ed1b620a
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-moises.ps1
$url = 'https://download.todesktop.com/220410vabqjud82/Moises%20Setup%202.1.0%20-%20Build%20261021a1gygumpb-x64.exe'
$sha256 = '00FE2B6115EDF41FB307CA1725B224B23280C73DDEB037555574A83E43A50833'
$file = Join-Path $env:TEMP 'Moises Setup 2.1.0 - Build 261021a1gygumpb-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-moises.ps1
$url = 'https://download.todesktop.com/220410vabqjud82/Moises%20Setup%202.1.0%20-%20Build%20261021a1gygumpb-arm64.exe'
$sha256 = 'B4DA033CA4209B2D6B0908D8B8EAD5E783F7570FEA31CDEF3198B698A931E3F1'
$file = Join-Path $env:TEMP 'Moises Setup 2.1.0 - Build 261021a1gygumpb-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