免互動安裝iconsmaker、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id ideocentric.iconsmaker -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ideocentric.iconsmaker -e --silentwinget uninstall --id ideocentric.iconsmaker -e --silent依安裝檔
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i iconsmaker-0.1.3-x86_64.msi /qn /norestart寫入記錄檔
msiexec /i iconsmaker-0.1.3-x86_64.msi /qn /norestart /l*v "%TEMP%\iconsmaker-install.log"解除安裝
msiexec /x {88AB9F91-F310-4A12-B9EE-ECBD4A3E54F8} /qn /norestart- MSI產品代碼
- {88AB9F91-F310-4A12-B9EE-ECBD4A3E54F8}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{88AB9F91-F310-4A12-B9EE-ECBD4A3E54F8}
- UpgradeCode
- {6F3A1C24-9E7B-4B2E-A5D1-2C0F8B6E4A11}
- 安裝資料夾
- %ProgramFiles%/iconsmaker
ARM64 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i iconsmaker-0.1.3-arm64.msi /qn /norestart寫入記錄檔
msiexec /i iconsmaker-0.1.3-arm64.msi /qn /norestart /l*v "%TEMP%\iconsmaker-install.log"解除安裝
msiexec /x {EA138ECB-E428-4BEB-B2E0-2B5F56223461} /qn /norestart- MSI產品代碼
- {EA138ECB-E428-4BEB-B2E0-2B5F56223461}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{EA138ECB-E428-4BEB-B2E0-2B5F56223461}
- UpgradeCode
- {6F3A1C24-9E7B-4B2E-A5D1-2C0F8B6E4A11}
- 安裝資料夾
- %ProgramFiles%/iconsmaker
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-iconsmaker.ps1
$url = 'https://github.com/ideocentric/iconsmaker/releases/download/v0.1.3/iconsmaker-0.1.3-x86_64.msi'
$sha256 = '729B47EC13A35BB1383323FC956A0C579D49812E76E4482122F10B143DE1DE33'
$file = Join-Path $env:TEMP 'iconsmaker-0.1.3-x86_64.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-iconsmaker.ps1
$url = 'https://github.com/ideocentric/iconsmaker/releases/download/v0.1.3/iconsmaker-0.1.3-arm64.msi'
$sha256 = 'B73A809A5833D391AA01ECDC37A1240302DA18F9EB95B4233440B5578076939A'
$file = Join-Path $env:TEMP 'iconsmaker-0.1.3-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