GridCraftを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ArtCraft.GridCraft -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ArtCraft.GridCraft -e --silentwinget uninstall --id ArtCraft.GridCraft -e --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i gridcraft-0.9.0-windows-x64.msi /qn /norestartログを出力
msiexec /i gridcraft-0.9.0-windows-x64.msi /qn /norestart /l*v "%TEMP%\gridcraft-install.log"アンインストール
msiexec /x {923A99B5-32DE-4270-ABCE-026019B0C12F} /qn /norestart- MSIプロダクトコード
- {923A99B5-32DE-4270-ABCE-026019B0C12F}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{923A99B5-32DE-4270-ABCE-026019B0C12F}
- UpgradeCode
- {5511327B-F305-41BE-92D0-EB84944E7C4D}
ARM64 · MSI · すべてのユーザー
サイレントインストール
msiexec /i gridcraft-0.9.0-windows-arm64.msi /qn /norestartログを出力
msiexec /i gridcraft-0.9.0-windows-arm64.msi /qn /norestart /l*v "%TEMP%\gridcraft-install.log"アンインストール
msiexec /x {26BFD1C7-96CB-47A8-8369-27B1F8AD09F2} /qn /norestart- MSIプロダクトコード
- {26BFD1C7-96CB-47A8-8369-27B1F8AD09F2}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26BFD1C7-96CB-47A8-8369-27B1F8AD09F2}
- UpgradeCode
- {5511327B-F305-41BE-92D0-EB84944E7C4D}
32ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i gridcraft-0.9.0-windows-x86.msi /qn /norestartログを出力
msiexec /i gridcraft-0.9.0-windows-x86.msi /qn /norestart /l*v "%TEMP%\gridcraft-install.log"アンインストール
msiexec /x {43B724E8-AC06-4B78-A3F7-4CABDBD54450} /qn /norestart- MSIプロダクトコード
- {43B724E8-AC06-4B78-A3F7-4CABDBD54450}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{43B724E8-AC06-4B78-A3F7-4CABDBD54450}
- UpgradeCode
- {5511327B-F305-41BE-92D0-EB84944E7C4D}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-gridcraft.ps1
$url = 'https://github.com/storytold/gridcraft/releases/download/v0.9.0/gridcraft-0.9.0-windows-x64.msi'
$sha256 = 'CF5C2665AB397900FD51799FB803B0C667A2C7A9A48F309D224DB829A06B25CE'
$file = Join-Path $env:TEMP 'gridcraft-0.9.0-windows-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-gridcraft.ps1
$url = 'https://github.com/storytold/gridcraft/releases/download/v0.9.0/gridcraft-0.9.0-windows-arm64.msi'
$sha256 = '27F78D1164A3B7B442E3CFC4D252DF1C175AE0C1F023F0B3188FF6C1E92AF16C'
$file = Join-Path $env:TEMP 'gridcraft-0.9.0-windows-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 install-gridcraft.ps1
$url = 'https://github.com/storytold/gridcraft/releases/download/v0.9.0/gridcraft-0.9.0-windows-x86.msi'
$sha256 = '34A027C423D9F6CCE11E804730A8FDFEE7D64F2BD41EA5190C27479C0FCC35FE'
$file = Join-Path $env:TEMP 'gridcraft-0.9.0-windows-x86.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