免互動安裝NWEA Secure Testing Browser、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id NWEA.NWEASecureTestingBrowser -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NWEA.NWEASecureTestingBrowser -e --silentwinget uninstall --id NWEA.NWEASecureTestingBrowser -e --silent依安裝檔
32位元 · EXE · 所有使用者
靜默安裝
Setup_Lockdown_Browser-5.4.481.0_PROD.exe /S /V/quiet /V/norestart解除安裝
msiexec /x {4062AA2B-BCF8-4F96-835E-B3FABE41DDD1} /qn /norestart- MSI產品代碼
- {4062aa2b-bcf8-4f96-835e-b3fabe41ddd1}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{4062aa2b-bcf8-4f96-835e-b3fabe41ddd1}
- UpgradeCode
- {368DBFFD-FFA5-48C8-8E38-16A39E7B6071}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-nwea-secure-testing-browser.ps1
$url = 'https://cdn.nwea.org/download/Setup_Lockdown_Browser-5.4.481.0_PROD.exe'
$sha256 = 'F512EAD393C2365F1A39ECEE966AE3718B0C43F0532B33B8CB13859C6C9C3029'
$file = Join-Path $env:TEMP 'Setup_Lockdown_Browser-5.4.481.0_PROD.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 /V/quiet /V/norestart' -Wait