Core FTP Serverを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id CoreFTP.CoreFTPServer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CoreFTP.CoreFTPServer -e --silentwinget uninstall --id CoreFTP.CoreFTPServer -e --silentインストーラー別
64ビット · EXE(NSIS) · en-US
サイレントインストール
CoreFTPServer64.exe /Sインストール先を指定
CoreFTPServer64.exe /S /D=C:\Apps\core-ftp-server- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CoreFTPServer(x64)
- インストール先フォルダー
- %ProgramFiles%\CoreFTPServer
32ビット · EXE(NSIS) · en-US
サイレントインストール
CoreFTPServer.exe /Sインストール先を指定
CoreFTPServer.exe /S /D=C:\Apps\core-ftp-server- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\CoreFTPServer
- インストール先フォルダー
- %ProgramFiles(x86)%\CoreFTPServer
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-core-ftp-server.ps1
$url = 'https://www.coreftp.com/server/download/CoreFTPServer64.exe'
$sha256 = '178403810098536D9B4690B0B488878B40A3E4D87A0E7EA4CDF19FAADA48442A'
$file = Join-Path $env:TEMP 'CoreFTPServer64.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-core-ftp-server.ps1
$url = 'https://www.coreftp.com/server/download/CoreFTPServer.exe'
$sha256 = 'AD407185DCF029BF23348E99D057C63BFB22D8DF926AEB2C6F988DBD9F6F8BC5'
$file = Join-Path $env:TEMP 'CoreFTPServer.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