免互動安裝Grunt、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Grunt.Grunt -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Grunt.Grunt -e --silentwinget uninstall --id Grunt.Grunt -e --silent依安裝檔
64位元 · MSI · en-US
靜默安裝
msiexec /i grunt-2026.1-r10-6118-x64.msi /qn /norestart寫入記錄檔
msiexec /i grunt-2026.1-r10-6118-x64.msi /qn /norestart /l*v "%TEMP%\grunt-install.log"解除安裝
msiexec /x {E98C1BF9-9AF8-47CF-940B-14F8338A5D83} /qn /norestart- MSI產品代碼
- {E98C1BF9-9AF8-47CF-940B-14F8338A5D83}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E98C1BF9-9AF8-47CF-940B-14F8338A5D83}
- UpgradeCode
- {E98C1BF9-9AF8-47CF-940B-14F8937CED83}
- 安裝資料夾
- %ProgramFiles%\Grunt\6118
- DisplayVersion
- 26.0.6118
32位元 · MSI · en-US
靜默安裝
msiexec /i grunt-2026.1-r10-6118-x86.msi /qn /norestart寫入記錄檔
msiexec /i grunt-2026.1-r10-6118-x86.msi /qn /norestart /l*v "%TEMP%\grunt-install.log"- 安裝資料夾
- %ProgramFiles(x86)%\Grunt\6118
- DisplayVersion
- 26.0.6118
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-grunt.ps1
$url = 'https://altuarm.blob.core.windows.net/download/grunt-2026.1-r10-6118-x64.msi'
$sha256 = 'B73CB82B5BD649BFFC409C22DF7E03EC6CBAEF6C8ACD996520BA81510A81D1DF'
$file = Join-Path $env:TEMP 'grunt-2026.1-r10-6118-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-grunt.ps1
$url = 'https://altuarm.blob.core.windows.net/download/grunt-2026.1-r10-6118-x86.msi'
$sha256 = 'D28542DBD24F1125860EB80BD54ACF44448E1F6A7C8A19705655785BCB9ECAE5'
$file = Join-Path $env:TEMP 'grunt-2026.1-r10-6118-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