GCompris Educational Softwareを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id KDE.GCompris -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KDE.GCompris -e --silentwinget uninstall --id KDE.GCompris -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
gcompris-teachers-26.2-win64-gcc.exe /Sインストール先を指定
gcompris-teachers-26.2-win64-gcc.exe /S /D=C:\Apps\gcompris-educational-software- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GCompris-Teachers
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i gcompris-qt-26.2-win64-gcc.msi /qn /norestartログを出力
msiexec /i gcompris-qt-26.2-win64-gcc.msi /qn /norestart /l*v "%TEMP%\gcompris-educational-software-install.log"アンインストール
msiexec /x {67197195-9B91-4202-928C-AC7145EFBD9D} /qn /norestart- MSIプロダクトコード
- {67197195-9B91-4202-928C-AC7145EFBD9D}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{67197195-9B91-4202-928C-AC7145EFBD9D}
- UpgradeCode
- {1902A562-DA6F-4E3D-A56F-1B1D4273C724}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-gcompris-educational-software.ps1
$url = 'https://download.kde.org/stable/gcompris/qt/windows/gcompris-teachers-26.2-win64-gcc.exe'
$sha256 = 'D98510A2737D1AF2576356B43561FAF09CF93E7C069ACE6542D141CFCB0D315F'
$file = Join-Path $env:TEMP 'gcompris-teachers-26.2-win64-gcc.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 '/S' -Wait install-gcompris-educational-software.ps1
$url = 'https://download.kde.org/stable/gcompris/qt/windows/gcompris-qt-26.2-win64-gcc.msi'
$sha256 = '61CEC34B90D5BD4058DAAC225882CFBF2119CA26E6BAF0B7F38CB0F981E6F72E'
$file = Join-Path $env:TEMP 'gcompris-qt-26.2-win64-gcc.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