diff --git a/docs/windows_installation.md b/docs/windows_installation.md index d513c0af5..edba2c065 100644 --- a/docs/windows_installation.md +++ b/docs/windows_installation.md @@ -5,6 +5,20 @@ We **strongly** recommend that Windows users use [Docker](docker_quickstart.md) If that is not possible, try using the Windows Linux subsystem (WSL) - for which the Ubuntu instructions should work. Otherwise, please follow the instructions below. +## Install freqtrade automatically + +### Using Invoke-WebRequest + +```powershell +Invoke-WebRequest -Uri "https://raw.githubusercontent.com/freqtrade/freqtrade/stable/setup.ps1" -UseBasicParsing | Invoke-Expression +``` + +### Or using curl + +```powershell +curl -sSL "https://raw.githubusercontent.com/freqtrade/freqtrade/stable/setup.ps1" | powershell -c - +``` + ## Install freqtrade manually !!! Note "64bit Python version" diff --git a/setup.ps1 b/setup.ps1 index a8ae6c47f..aaf3a825b 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -119,12 +119,12 @@ function Test-PythonExecutable { $DeactivateVenv = Join-Path $VenvDir "Scripts\Deactivate.bat" if (Test-Path $DeactivateVenv) { - Write-Host "Deactivating virtual environment..." + Write-Host "Deactivating virtual environment..." 2>&1 | Out-File $LogFilePath -Append & $DeactivateVenv - Write-Host "Virtual environment deactivated." + Write-Host "Virtual environment deactivated." 2>&1 | Out-File $LogFilePath -Append } else { - Write-Host "Deactivation script not found: $DeactivateVenv" + Write-Host "Deactivation script not found: $DeactivateVenv" 2>&1 | Out-File $LogFilePath -Append } $PythonCmd = Get-Command $PythonExecutable -ErrorAction SilentlyContinue @@ -165,7 +165,7 @@ function Main { # Exit on lower versions than Python 3.9 or when Python executable not found $PythonExecutable = Find-PythonExecutable if ($null -eq $PythonExecutable) { - Write-Host "Error: No suitable Python executable found. Please ensure that Python 3.9 or higher is installed and available in the system PATH." + Write-Log "No suitable Python executable found. Please ensure that Python 3.9 or higher is installed and available in the system PATH." -Level 'ERROR' Exit 1 } @@ -190,7 +190,7 @@ function Main { & $ActivateVenv 2>&1 | Out-File $LogFilePath -Append # Check if virtual environment is activated if ($env:VIRTUAL_ENV) { - Write-Host "Virtual environment is activated at: $($env:VIRTUAL_ENV)" + Write-Log "Virtual environment is activated at: $($env:VIRTUAL_ENV)" } else { Write-Log "Failed to activate virtual environment." -Level 'ERROR'