免互動安裝GridCraft、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或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