用于免交互安装Android11React、卸载以及在部署工具中检测安装状态的命令。只列出确定可用的命令:来自清单文件,或来自安装程序技术的官方默认参数。
相关教程: 静默安装参数大全:MSI、NSIS、Inno Setup · 用注册表或PowerShell卸载程序
使用winget
PowerShell
winget install --id blueedge.android11react -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id blueedge.android11react -e --silentwinget uninstall --id blueedge.android11react -e --silent按安装包
64位 · MSI · en-US
静默安装
msiexec /i Android11React_0.0.3_x64_en-US.msi /qn /norestart输出日志
msiexec /i Android11React_0.0.3_x64_en-US.msi /qn /norestart /l*v "%TEMP%\android11react-install.log"卸载
msiexec /x {98DBB3BA-EB09-4448-9000-6CAE96AA4850} /qn /norestart- MSI产品代码
- {98DBB3BA-EB09-4448-9000-6CAE96AA4850}
- 卸载注册表项
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{98DBB3BA-EB09-4448-9000-6CAE96AA4850}
PowerShell:下载、校验、安装
下载官方文件,校验SHA256后静默安装。
install-android11react.ps1
$url = 'https://github.com/blueedgetechno/androidInReact/releases/download/0.0.3/Android11React_0.0.3_x64_en-US.msi'
$sha256 = '8705CA38B3C6FA48659A1443EDAEEA33417F6F139A5AEEAC0337FDEBEEE223A7'
$file = Join-Path $env:TEMP 'Android11React_0.0.3_x64_en-US.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