Viewpointを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id NibbleNerds.Viewpoint -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NibbleNerds.Viewpoint -e --silentwinget uninstall --id NibbleNerds.Viewpoint -e --silentインストーラー別
64ビット · EXE(Inno Setup)
サイレントインストール
viewpoint_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
viewpoint_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\viewpoint"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-viewpoint.ps1
$url = 'https://nibblenerds.com/static/viewpoint_setup.exe'
$sha256 = 'B9F48E3E043C36B055A6EC39DF06AB7582B0F7995B90D3BC047B53438E08F067'
$file = Join-Path $env:TEMP 'viewpoint_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 /SP-' -Wait