GDevelopを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id GDevelop.GDevelop -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GDevelop.GDevelop -e --silentwinget uninstall --id GDevelop.GDevelop -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
GDevelop-5-Setup-5.6.285.exe /Sインストール先を指定
GDevelop-5-Setup-5.6.285.exe /S /D=C:\Apps\gdevelop- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\c2a9b91e-8206-5b4e-b81d-9aa27463c28e
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
GDevelop-5-Setup-5.6.285.exe /Sインストール先を指定
GDevelop-5-Setup-5.6.285.exe /S /D=C:\Apps\gdevelop- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\c2a9b91e-8206-5b4e-b81d-9aa27463c28e
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-gdevelop.ps1
$url = 'https://github.com/4ian/GDevelop/releases/download/v5.6.285/GDevelop-5-Setup-5.6.285.exe'
$sha256 = '8B8321C9819FE667BEFF68AECCCBC2AE8F081909956F9149D3920564D29BAD4C'
$file = Join-Path $env:TEMP 'GDevelop-5-Setup-5.6.285.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-gdevelop.ps1
$url = 'https://github.com/4ian/GDevelop/releases/download/v5.6.285/GDevelop-5-Setup-5.6.285.exe'
$sha256 = '8B8321C9819FE667BEFF68AECCCBC2AE8F081909956F9149D3920564D29BAD4C'
$file = Join-Path $env:TEMP 'GDevelop-5-Setup-5.6.285.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