免互動安裝NoiseCrypt、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Breizhzion.NoiseCrypt -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Breizhzion.NoiseCrypt -e --silentwinget uninstall --id Breizhzion.NoiseCrypt -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
NoiseCrypt-0.7.2-amd64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART自訂安裝資料夾
NoiseCrypt-0.7.2-amd64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\noisecrypt"- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7D3F1A62-4C58-4E71-9B0D-2A6E5C8F41B3}_is1
ARM64 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
NoiseCrypt-0.7.2-arm64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART自訂安裝資料夾
NoiseCrypt-0.7.2-arm64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\noisecrypt"- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7D3F1A62-4C58-4E71-9B0D-2A6E5C8F41B3}_is1
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-noisecrypt.ps1
$url = 'https://github.com/bzhzion/noisecrypt/releases/download/v0.7.2/NoiseCrypt-0.7.2-amd64-setup.exe'
$sha256 = '67F4E40B25B690BC9496D52A8A459E6654C58B4637855BCFFAE1AC41EB6D1E8F'
$file = Join-Path $env:TEMP 'NoiseCrypt-0.7.2-amd64-setup.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART' -Wait install-noisecrypt.ps1
$url = 'https://github.com/bzhzion/noisecrypt/releases/download/v0.7.2/NoiseCrypt-0.7.2-arm64-setup.exe'
$sha256 = 'C2A8F2ADA2ECAFBC8D20E2F6E6D28605442EDEDD730AAB34DD89A6C94B13DBCD'
$file = Join-Path $env:TEMP 'NoiseCrypt-0.7.2-arm64-setup.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART' -Wait