海龟编辑器を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Codemao.TurtleEditor.1 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Codemao.TurtleEditor.1 -e --silentwinget uninstall --id Codemao.TurtleEditor.1 -e --silentインストーラー別
64ビット · EXE(NSIS) · zh-CN
サイレントインストール
海龟编辑器x64-1.8.7.exe /Sインストール先を指定
海龟编辑器x64-1.8.7.exe /S /D=C:\Apps\codemao-turtleeditor-1- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cf00a0d9-b34d-53b3-843e-b06a854fcd51
32ビット · EXE(NSIS) · zh-CN
サイレントインストール
海龟编辑器x32-1.8.7.exe /Sインストール先を指定
海龟编辑器x32-1.8.7.exe /S /D=C:\Apps\codemao-turtleeditor-1- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\cf00a0d9-b34d-53b3-843e-b06a854fcd51
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-codemao-turtleeditor-1.ps1
$url = 'https://static.codemao.cn/wood/client/production/win64/%E6%B5%B7%E9%BE%9F%E7%BC%96%E8%BE%91%E5%99%A8x64-1.8.7.exe'
$sha256 = '10104DA659988A484355A70FB32A2AF6D8BCE7E529A80A0C09C373870779C4E7'
$file = Join-Path $env:TEMP '海龟编辑器x64-1.8.7.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-codemao-turtleeditor-1.ps1
$url = 'https://static.codemao.cn/wood/client/production/%E6%B5%B7%E9%BE%9F%E7%BC%96%E8%BE%91%E5%99%A8x32-1.8.7.exe'
$sha256 = '1494627FB39DD5B0B05107FEFC0144BF2F867F7EBD949FB6C99A9A2EC3238562'
$file = Join-Path $env:TEMP '海龟编辑器x32-1.8.7.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