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