OpenOrienteering Mapperを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id OpenOrienteering.Mapper -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenOrienteering.Mapper -e --silentwinget uninstall --id OpenOrienteering.Mapper -e --silentインストーラー別
64ビット · EXE(NSIS)
サイレントインストール
OpenOrienteering-Mapper-0.9.6-Windows-x64.exe /Sインストール先を指定
OpenOrienteering-Mapper-0.9.6-Windows-x64.exe /S /D=C:\Apps\openorienteering-mapper32ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
OpenOrienteering-Mapper-0.9.6-Windows-x86.exe /Sインストール先を指定
OpenOrienteering-Mapper-0.9.6-Windows-x86.exe /S /D=C:\Apps\openorienteering-mapperPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-openorienteering-mapper.ps1
$url = 'https://github.com/OpenOrienteering/mapper/releases/download/v0.9.6/OpenOrienteering-Mapper-0.9.6-Windows-x64.exe'
$sha256 = '95EC294133046462D0F7E6474C236813D0EAAA628A9ECD062AC50C8D1E472FE8'
$file = Join-Path $env:TEMP 'OpenOrienteering-Mapper-0.9.6-Windows-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-openorienteering-mapper.ps1
$url = 'https://github.com/OpenOrienteering/mapper/releases/download/v0.9.6/OpenOrienteering-Mapper-0.9.6-Windows-x86.exe'
$sha256 = 'D827099C91DE37B19C682BCE3EFB413F60A4181426DAA734E9562246E67F07E9'
$file = Join-Path $env:TEMP 'OpenOrienteering-Mapper-0.9.6-Windows-x86.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