Testcontainers Desktopを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id AtomicJar.Testcontainers -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AtomicJar.Testcontainers -e --silentwinget uninstall --id AtomicJar.Testcontainers -e --silentインストーラー別
64ビット · MSI · 現在のユーザー · en-US
サイレントインストール
msiexec /i testcontainers-desktop_windows_x86-64.msi /qn /norestart /quietログを出力
msiexec /i testcontainers-desktop_windows_x86-64.msi /qn /norestart /quiet /l*v "%TEMP%\testcontainers-desktop-install.log"アンインストール
msiexec /x {76B9BB99-C84D-46DC-81F9-2EF619B8E276} /qn /norestart- MSIプロダクトコード
- {76B9BB99-C84D-46DC-81F9-2EF619B8E276}
- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{76B9BB99-C84D-46DC-81F9-2EF619B8E276}
- UpgradeCode
- {20CBEEFE-E269-4E0D-93F1-DB239616AE50}
- インストール先フォルダー
- %AppData%\Testcontainers Desktop
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-testcontainers-desktop.ps1
$url = 'https://app.testcontainers.cloud/download/testcontainers-desktop_windows_x86-64.msi'
$sha256 = '90D03986B84734B876BB3985D195337F88C0ADC154CDD5895255367EEB5CFF29'
$file = Join-Path $env:TEMP 'testcontainers-desktop_windows_x86-64.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', '/quiet' -Wait