免互動安裝cronstable、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id ptweezy.cronstable -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ptweezy.cronstable -e --silentwinget uninstall --id ptweezy.cronstable -e --silent依安裝檔
64位元 · EXE(WiX Burn) · 所有使用者
靜默安裝
cronstable-windows-amd64-setup.exe /quiet /norestart解除安裝
msiexec /x {48C7E8E7-859D-473C-B37A-291115D5231B} /qn /norestart- MSI產品代碼
- {48C7E8E7-859D-473C-B37A-291115D5231B}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{48C7E8E7-859D-473C-B37A-291115D5231B}
- UpgradeCode
- {E8D4C05B-5ED5-4850-826D-8BA6163E4F8A}
- DisplayVersion
- 1.2.72
ARM64 · EXE(WiX Burn) · 所有使用者
靜默安裝
cronstable-windows-arm64-setup.exe /quiet /norestart解除安裝
msiexec /x {36B9FA9C-EDDD-4E7A-BE40-4016F704D859} /qn /norestart- MSI產品代碼
- {36B9FA9C-EDDD-4E7A-BE40-4016F704D859}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{36B9FA9C-EDDD-4E7A-BE40-4016F704D859}
- UpgradeCode
- {E8D4C05B-5ED5-4850-826D-8BA6163E4F8A}
- DisplayVersion
- 1.2.72
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-cronstable.ps1
$url = 'https://github.com/ptweezy/cronstable/releases/download/1.2.72/cronstable-windows-amd64-setup.exe'
$sha256 = '9413D6E2751F11DD1357804740E87046BFA559783F38F3B9B93F02ED7088D552'
$file = Join-Path $env:TEMP 'cronstable-windows-amd64-setup.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 '/quiet /norestart' -Wait install-cronstable.ps1
$url = 'https://github.com/ptweezy/cronstable/releases/download/1.2.72/cronstable-windows-arm64-setup.exe'
$sha256 = '7651345CF9C48E0A245022E9A1FE842BC4B3B07366635FBD214CA4A75C91700A'
$file = Join-Path $env:TEMP 'cronstable-windows-arm64-setup.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 '/quiet /norestart' -Wait