NexusPilotを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id GuqierMcl.NexusPilot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GuqierMcl.NexusPilot -e --silentwinget uninstall --id GuqierMcl.NexusPilot -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
NexusPilot_0.10.2_x64-setup.exe /Sインストール先を指定
NexusPilot_0.10.2_x64-setup.exe /S /D=C:\Apps\nexuspilot- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NexusPilot
- インストール先フォルダー
- %LocalAppData%\Programs\NexusPilot
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
NexusPilot_0.10.2_x64-setup.exe /Sインストール先を指定
NexusPilot_0.10.2_x64-setup.exe /S /D=C:\Apps\nexuspilot- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NexusPilot
- インストール先フォルダー
- %LocalAppData%\Programs\NexusPilot
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-nexuspilot.ps1
$url = 'https://github.com/GuqierMcl/NexusPilot/releases/download/v0.10.2/NexusPilot_0.10.2_x64-setup.exe'
$sha256 = '713C0222B48C63DB59E7C815118A692041B58A9A297D22EE141186FE96F4F8FD'
$file = Join-Path $env:TEMP 'NexusPilot_0.10.2_x64-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 '/S' -Wait install-nexuspilot.ps1
$url = 'https://github.com/GuqierMcl/NexusPilot/releases/download/v0.10.2/NexusPilot_0.10.2_x64-setup.exe'
$sha256 = '713C0222B48C63DB59E7C815118A692041B58A9A297D22EE141186FE96F4F8FD'
$file = Join-Path $env:TEMP 'NexusPilot_0.10.2_x64-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 '/S' -Wait