- Streamlined .env.example to include only essential Flask and MT5 configs for production environments - Added .vercel directory to .gitignore for clean Vercel deployments - Enabled internationalization by adding data-i18n attributes to strategy switcher UI elements - Updated MT5 setup guide and roadmap documentation for clarity and current focus This change simplifies configuration for server deployment while enhancing UI accessibility across languages.
5.4 KiB
QuantumBotX Windows Packaging Guide
This guide explains how to package your QuantumBotX trading application into a Windows installer for distribution to non-technical users.
🎯 What This Packaging Solution Provides
✅ Single EXE Installer - Professional Windows installer ✅ One-Click Installation - Simple for end users ✅ Desktop Shortcuts - Easy application access ✅ Uninstaller - Clean removal capability ✅ Setup Wizard - Automated first-time setup ✅ User-Friendly Scripts - Simple startup process ✅ Comprehensive Documentation - Clear instructions for users
📋 Prerequisites
For Building the Package
- Python 3.8+ (already installed)
- PyInstaller (already installed via this guide)
- NSIS (Optional) - For creating the installer EXE
- Download from: https://nsis.sourceforge.io/Download
- Install and ensure
makensisis in your PATH
For End Users
- Windows 7+ (64-bit recommended)
- MetaTrader 5 - Must be installed separately
- Internet Connection - For initial setup
🚀 Quick Start
Option 1: Build Everything (Recommended)
python build_installer.py
Option 2: Manual Build Process
# 1. Build with PyInstaller
pyinstaller --clean quantumbotx.spec
# 2. Create portable version (optional)
python -c "import zipfile; zipf=zipfile.ZipFile('QuantumBotX-Portable.zip','w',8); [zipf.write(f,f) for d in ['dist/QuantumBotX','.'] for f in [os.path.join(r,d) for r,_,fs in os.walk(d) for f in fs]]"
# 3. Create installer (requires NSIS)
makensis installer.nsi
📁 Generated Files
After successful build, you'll have:
QuantumBotX-Installer.exe # Main Windows installer
QuantumBotX-Portable.zip # Portable version (alternative)
dist/QuantumBotX/ # PyInstaller output (for troubleshooting)
🎮 For End Users
Installation Process
- Download
QuantumBotX-Installer.exe - Run the installer (requires admin privileges)
- Follow the setup wizard
- Launch from desktop shortcut or start menu
Daily Usage
- Start MetaTrader 5 first
- Launch QuantumBotX via desktop shortcut or start menu
- Open browser to http://127.0.0.1:5000
- Configure settings if needed
🔧 Configuration Files
The installer includes these configuration files:
.env.example- Template for environment variablesstart.bat- Windows startup scriptsetup_quantumbotx.py- Setup wizard for first runQUICK_START_GUIDE.md- User instructions
🛠️ Troubleshooting
Build Issues
PyInstaller fails:
# Clean and rebuild
pyinstaller --clean quantumbotx.spec
NSIS not found:
- Install NSIS from https://nsis.sourceforge.io/
- Or use the portable version instead
Missing dependencies:
pip install -r requirements.txt
Runtime Issues
Application won't start:
- Check if MetaTrader 5 is running
- Verify
.envfile has correct credentials - Check Windows Event Viewer for errors
Port already in use:
- Close other applications using port 5000
- Or modify
FLASK_PORTin.envfile
MetaTrader 5 connection fails:
- Verify MT5 credentials in
.env - Ensure MT5 is running and logged in
- Check MT5 terminal for connection status
📦 Distribution
For Technical Users
- Share
QuantumBotX-Installer.exefor full installation - Or share
QuantumBotX-Portable.zipfor manual installation
For Non-Technical Users
- Share the installer
QuantumBotX-Installer.exe - Provide simple instructions:
- Double-click to install
- Follow the setup wizard
- Use desktop shortcut to launch
- Ensure MetaTrader 5 is running
System Requirements for End Users
- OS: Windows 7 SP1+ (64-bit recommended)
- RAM: 4GB minimum, 8GB recommended
- Storage: 500MB free space
- Network: Internet connection for initial setup
- Software: MetaTrader 5 (installed separately)
🔄 Updates and Maintenance
Creating Updates
- Increment version in
installer.nsi - Rebuild using
python build_installer.py - Test on clean system
- Distribute new installer
Uninstallation
- Use Windows Add/Remove Programs
- Or run
Uninstall.exefrom installation directory - Or use the uninstall shortcut in Start Menu
🆘 Support
Common User Questions
"How do I configure my MT5 credentials?"
- Copy
.env.exampleto.env - Edit
.envwith your MT5 account details - Restart the application
"The application says MT5 is not connected"
- Ensure MetaTrader 5 is running
- Check MT5 login credentials
- Verify MT5 server settings
"I can't access the web interface"
- Check if the application is running
- Verify the URL: http://127.0.0.1:5000
- Check firewall settings
🎯 Advanced Configuration
Customizing the Installer
Edit installer.nsi to:
- Change installation directory
- Modify shortcuts
- Add custom messages
- Include additional files
Customizing PyInstaller
Edit quantumbotx.spec to:
- Add/remove files
- Change executable properties
- Modify hidden imports
- Customize build options
📞 Getting Help
- Check the logs in the
logs/directory - Review
QUICK_START_GUIDE.md - Consult
README.mdfor technical details - Check MetaTrader 5 documentation for connection issues
🎉 Your application is now ready for distribution to non-technical users!