ccMeshを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリと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