Complete FTPを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id EnterpriseDT.CompleteFTP -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id EnterpriseDT.CompleteFTP -e --silentwinget uninstall --id EnterpriseDT.CompleteFTP -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
getInstaller.php /Sインストール先を指定
getInstaller.php /S /D=C:\Apps\complete-ftp- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Complete FTP
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-complete-ftp.ps1
$url = 'https://enterprisedt.com/scripts/getInstaller.php?type=trial'
$sha256 = 'F10FC915CA5BFC7DFE7AB59E093DBD2B13719EFD2D1782BB5F48597DA95F0D32'
$file = Join-Path $env:TEMP 'getInstaller.php'
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