Git-Xetを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id HuggingFace.Git-Xet -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HuggingFace.Git-Xet -e --silentwinget uninstall --id HuggingFace.Git-Xet -e --silentインストーラー別
64ビット · ZIP · en-US
サイレントインストール
msiexec /i git-xet-windows-installer-x86_64.zip /qn /norestartアンインストール
msiexec /x {5392B6CC-7E2A-4CD9-B75E-4002CE595CA9} /qn /norestart- MSIプロダクトコード
- {5392B6CC-7E2A-4CD9-B75E-4002CE595CA9}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5392B6CC-7E2A-4CD9-B75E-4002CE595CA9}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-git-xet.ps1
$url = 'https://github.com/huggingface/xet-core/releases/download/git-xet-v0.2.1/git-xet-windows-installer-x86_64.zip'
$sha256 = '307F783C1A835E97715A043870C0E9F8464A1D7ADA35C59BF80165E2DB20017B'
$file = Join-Path $env:TEMP 'git-xet-windows-installer-x86_64.zip'
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' -Wait