IdFixを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.IdFix -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.IdFix -e --silentwinget uninstall --id Microsoft.IdFix -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i IdFix.Setup.2.6.0.3.msi /qn /norestartログを出力
msiexec /i IdFix.Setup.2.6.0.3.msi /qn /norestart /l*v "%TEMP%\idfix-install.log"アンインストール
msiexec /x {6C673EDA-F963-40DA-8347-5C019F290BAF} /qn /norestart- MSIプロダクトコード
- {6C673EDA-F963-40DA-8347-5C019F290BAF}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6C673EDA-F963-40DA-8347-5C019F290BAF}
- UpgradeCode
- {81F4A0E0-BE55-4D44-B07C-ED11ABDB6E36}
- インストール先フォルダー
- %ProgramFiles%\Microsoft FastTrack Open Source\Microsoft IdFix
- DisplayVersion
- 1.0.0.0
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-idfix.ps1
$url = 'https://github.com/microsoft/idfix/raw/refs/heads/master/MSIs/IdFix.Setup.2.6.0.3.msi'
$sha256 = 'F5B3103A87104E22AC13F7F393C4C642D6756F9B2A4D035CB6BB7A2B78C98784'
$file = Join-Path $env:TEMP 'IdFix.Setup.2.6.0.3.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' -Wait