Kommandon för att installera Core FTP Server utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (NSIS) · en-US
Tyst installation
CoreFTPServer64.exe /SEgen mapp
CoreFTPServer64.exe /S /D=C:\Apps\core-ftp-server- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CoreFTPServer(x64)
- Installationsmapp
- %ProgramFiles%\CoreFTPServer
32-bitars · EXE (NSIS) · en-US
Tyst installation
CoreFTPServer.exe /SEgen mapp
CoreFTPServer.exe /S /D=C:\Apps\core-ftp-server- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\CoreFTPServer
- Installationsmapp
- %ProgramFiles(x86)%\CoreFTPServer
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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