免互動安裝Image Sort、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Lolle2000la.ImageSort -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Lolle2000la.ImageSort -e --silentwinget uninstall --id Lolle2000la.ImageSort -e --silent依安裝檔
64位元 · MSI · en-US
靜默安裝
msiexec /i ImageSort.x64.msi /qn /norestart寫入記錄檔
msiexec /i ImageSort.x64.msi /qn /norestart /l*v "%TEMP%\image-sort-install.log"解除安裝
msiexec /x {E1E8A16F-D9C1-4F18-979B-7E6C2840000F} /qn /norestart- MSI產品代碼
- {E1E8A16F-D9C1-4F18-979B-7E6C2840000F}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E1E8A16F-D9C1-4F18-979B-7E6C2840000F}
ARM64 · MSI · en-US
靜默安裝
msiexec /i ImageSort.ARM64.msi /qn /norestart寫入記錄檔
msiexec /i ImageSort.ARM64.msi /qn /norestart /l*v "%TEMP%\image-sort-install.log"解除安裝
msiexec /x {089C1AE1-18BA-4DC4-8224-2654C32DBCF3} /qn /norestart- MSI產品代碼
- {089C1AE1-18BA-4DC4-8224-2654C32DBCF3}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{089C1AE1-18BA-4DC4-8224-2654C32DBCF3}
32位元 · MSI · en-US
靜默安裝
msiexec /i ImageSort.x86.msi /qn /norestart寫入記錄檔
msiexec /i ImageSort.x86.msi /qn /norestart /l*v "%TEMP%\image-sort-install.log"解除安裝
msiexec /x {1E5A92C3-88AE-492F-A5C7-A7CD62ED801C} /qn /norestart- MSI產品代碼
- {1E5A92C3-88AE-492F-A5C7-A7CD62ED801C}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1E5A92C3-88AE-492F-A5C7-A7CD62ED801C}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-image-sort.ps1
$url = 'https://github.com/Lolle2000la/Image-Sort/releases/download/v2.14.8/ImageSort.x64.msi'
$sha256 = '90823A0348E2340AA9C3482B5D0499AC7022AF7DC337B28636153CD5A370611C'
$file = Join-Path $env:TEMP 'ImageSort.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-image-sort.ps1
$url = 'https://github.com/Lolle2000la/Image-Sort/releases/download/v2.14.8/ImageSort.ARM64.msi'
$sha256 = 'F4258D13D77C1B5A3A6C7481974FA82D6C194DA6644AE525DD05EE9FC3D1BD7F'
$file = Join-Path $env:TEMP 'ImageSort.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-image-sort.ps1
$url = 'https://github.com/Lolle2000la/Image-Sort/releases/download/v2.14.8/ImageSort.x86.msi'
$sha256 = '7720AB5E01EECE116B324E287E0A0C27032ACB8B58EF54C3CA998212423141F6'
$file = Join-Path $env:TEMP 'ImageSort.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