ILSpyを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id icsharpcode.ILSpy.Preview -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id icsharpcode.ILSpy.Preview -e --silentwinget uninstall --id icsharpcode.ILSpy.Preview -e --silentインストーラー別
64ビット · MSI
サイレントインストール
msiexec /i ILSpy_Installer_11.0.0.9223-preview1-x64.msi /qn /norestartログを出力
msiexec /i ILSpy_Installer_11.0.0.9223-preview1-x64.msi /qn /norestart /l*v "%TEMP%\ilspy-icsharpcode-team-install.log"アンインストール
msiexec /x {A12FDAB1-731B-4A98-9749-D4817E8696B3} /qn /norestart- MSIプロダクトコード
- {A12FDAB1-731B-4A98-9749-D4817E8696B3}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A12FDAB1-731B-4A98-9749-D4817E8696B3}
- UpgradeCode
- {A12FDAB1-731B-4A98-9749-D481CE8692AB}
- インストール先フォルダー
- %LocalAppData%/Programs/ILSpy
- DisplayVersion
- 11.0.0.9223
ARM64 · MSI
サイレントインストール
msiexec /i ILSpy_Installer_11.0.0.9223-preview1-arm64.msi /qn /norestartログを出力
msiexec /i ILSpy_Installer_11.0.0.9223-preview1-arm64.msi /qn /norestart /l*v "%TEMP%\ilspy-icsharpcode-team-install.log"アンインストール
msiexec /x {A12FDAB1-731B-4A98-9749-D4817E8696B3} /qn /norestart- MSIプロダクトコード
- {A12FDAB1-731B-4A98-9749-D4817E8696B3}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A12FDAB1-731B-4A98-9749-D4817E8696B3}
- UpgradeCode
- {A12FDAB1-731B-4A98-9749-D481CE8692AB}
- インストール先フォルダー
- %LocalAppData%/Programs/ILSpy
- DisplayVersion
- 11.0.0.9223
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-ilspy-icsharpcode-team.ps1
$url = 'https://github.com/icsharpcode/ILSpy/releases/download/v11.0-preview1/ILSpy_Installer_11.0.0.9223-preview1-x64.msi'
$sha256 = '46293E26D13A5405BFE1B16E06965DB5A0F3CBFDBFE017DE25DDDF5E145153B6'
$file = Join-Path $env:TEMP 'ILSpy_Installer_11.0.0.9223-preview1-x64.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 install-ilspy-icsharpcode-team.ps1
$url = 'https://github.com/icsharpcode/ILSpy/releases/download/v11.0-preview1/ILSpy_Installer_11.0.0.9223-preview1-arm64.msi'
$sha256 = 'AE926A0992E217F585A48E2D2EA99F636AF56ED7BD9ADDDA4941A95A8CFAED55'
$file = Join-Path $env:TEMP 'ILSpy_Installer_11.0.0.9223-preview1-arm64.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