免互動安裝Chatless、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Kamjin.Chatless -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Kamjin.Chatless -e --silentwinget uninstall --id Kamjin.Chatless -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
Chatless_0.7.4_x64-setup.exe /S自訂安裝資料夾
Chatless_0.7.4_x64-setup.exe /S /D=C:\Apps\chatless- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Chatless
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i Chatless_0.7.4_x64_en-US.msi /qn /norestart寫入記錄檔
msiexec /i Chatless_0.7.4_x64_en-US.msi /qn /norestart /l*v "%TEMP%\chatless-install.log"解除安裝
msiexec /x {8E0E30C0-827C-41A6-B17C-C979597C647B} /qn /norestart- MSI產品代碼
- {8E0E30C0-827C-41A6-B17C-C979597C647B}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8E0E30C0-827C-41A6-B17C-C979597C647B}
- UpgradeCode
- {701F5048-B5EF-5865-929A-76016298B01E}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-chatless.ps1
$url = 'https://github.com/kamjin3086/chatless/releases/download/v0.7.4/Chatless_0.7.4_x64-setup.exe'
$sha256 = '50B5FD6546FDB0F6C10F223D73417F3902D35475F2C4E48849B66C822D08A59C'
$file = Join-Path $env:TEMP 'Chatless_0.7.4_x64-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 '/S' -Wait install-chatless.ps1
$url = 'https://github.com/kamjin3086/chatless/releases/download/v0.7.4/Chatless_0.7.4_x64_en-US.msi'
$sha256 = '6003858DC0773EA94A7FF5ABCF77C2F5178E8B442CC1331B97A149061B226B2B'
$file = Join-Path $env:TEMP 'Chatless_0.7.4_x64_en-US.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