Unity DevOps Version Controlを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Codice.PlasticSCM.Enterprise -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Codice.PlasticSCM.Enterprise -e --silentwinget uninstall --id Codice.PlasticSCM.Enterprise -e --silentインストーラー別
32ビット · EXE · すべてのユーザー
サイレントインストール
unity-vcs-on-prem-full-11.0.16.8906-win.exe --mode unattended --unattendedmodeui nonePowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-unity-devops-version-control.ps1
$url = 'https://d26z97tczqnlef.cloudfront.net/releases/11.0.16.8906/plasticscm/windows/unity-vcs-on-prem-full-11.0.16.8906-win.exe'
$sha256 = '1EFF49A72ADCDD9B1CCAF2D24A5E7B4E280B6362249CB1B897411EB77704D509'
$file = Join-Path $env:TEMP 'unity-vcs-on-prem-full-11.0.16.8906-win.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 '--mode unattended --unattendedmodeui none' -Wait