免互動安裝ccMesh、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id VkRainB.ccMesh -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id VkRainB.ccMesh -e --silentwinget uninstall --id VkRainB.ccMesh -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
ccMesh_0.2.11_x64-setup.exe /S自訂安裝資料夾
ccMesh_0.2.11_x64-setup.exe /S /D=C:\Apps\ccmesh- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ccMesh
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i ccMesh_0.2.11_x64_en-US.msi /qn /norestart寫入記錄檔
msiexec /i ccMesh_0.2.11_x64_en-US.msi /qn /norestart /l*v "%TEMP%\ccmesh-install.log"解除安裝
msiexec /x {CA7E3A0E-C0B4-4EBE-9553-30923C02CAD6} /qn /norestart- MSI產品代碼
- {CA7E3A0E-C0B4-4EBE-9553-30923C02CAD6}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CA7E3A0E-C0B4-4EBE-9553-30923C02CAD6}
- UpgradeCode
- {8BEEC28E-C3F5-5630-8198-CE0F62A2C5BB}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-ccmesh.ps1
$url = 'https://github.com/VkRainB/ccMesh/releases/download/v0.2.11/ccMesh_0.2.11_x64-setup.exe'
$sha256 = '0736D1607E26A890B5329220CC6A3CEC0FC66F82868C5C5426E088B8C9097473'
$file = Join-Path $env:TEMP 'ccMesh_0.2.11_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-ccmesh.ps1
$url = 'https://github.com/VkRainB/ccMesh/releases/download/v0.2.11/ccMesh_0.2.11_x64_en-US.msi'
$sha256 = 'DCFF257E4786C0E9DBB298D7EF92F301C3D4F2F67B744FCAA7D8DE40A133ED37'
$file = Join-Path $env:TEMP 'ccMesh_0.2.11_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