免互動安裝ClawSharp、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id ClawSharp.ClawSharp -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ClawSharp.ClawSharp -e --silentwinget uninstall --id ClawSharp.ClawSharp -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者 · en-US
靜默安裝
ClawSharp_0.0.7_windows_x64_setup.exe /S自訂安裝資料夾
ClawSharp_0.0.7_windows_x64_setup.exe /S /D=C:\Apps\clawsharp- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ClawSharp
- 安裝資料夾
- %LocalAppData%\ClawSharp
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i ClawSharp_0.0.7_windows_x64.msi /qn /norestart寫入記錄檔
msiexec /i ClawSharp_0.0.7_windows_x64.msi /qn /norestart /l*v "%TEMP%\clawsharp-install.log"解除安裝
msiexec /x {65636D93-73F5-4567-98BD-2606926271D4} /qn /norestart- MSI產品代碼
- {65636D93-73F5-4567-98BD-2606926271D4}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{65636D93-73F5-4567-98BD-2606926271D4}
- UpgradeCode
- {7D7FA2E9-4651-5A39-95C3-35EFBBAFF6BE}
- 安裝資料夾
- %ProgramFiles%/ClawSharp
- DisplayVersion
- 0.0.7
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-clawsharp.ps1
$url = 'https://github.com/claw-sharp/ClawSharp/releases/download/desktop-v0.0.7/ClawSharp_0.0.7_windows_x64_setup.exe'
$sha256 = '7D3D84B1CD540603195A071AA24DA1ABBB7E8669C22C71CE053620045C80DFF5'
$file = Join-Path $env:TEMP 'ClawSharp_0.0.7_windows_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-clawsharp.ps1
$url = 'https://github.com/claw-sharp/ClawSharp/releases/download/desktop-v0.0.7/ClawSharp_0.0.7_windows_x64.msi'
$sha256 = '96E20617BE3E40D721529D36F2B29F0E09345831FC79BB10B650B46F8101C856'
$file = Join-Path $env:TEMP 'ClawSharp_0.0.7_windows_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