This guide provides comprehensive instructions for deploying the VFS Global automation system as a Windows executable (.exe) file.
- Operating System: Windows 10 or later (64-bit)
- RAM: 4GB minimum (8GB recommended)
- Storage: 2GB free disk space
- Network: Internet connection required
- Permissions: Administrator privileges recommended for camera access
- Python 3.8+ (for building from source)
- Virtual environment support
- Git (for source code deployment)
# Clone or download the project
cd Guinea_python_autoscript/task
# Create virtual environment
python -m venv .venv
# Activate virtual environment
.venv\Scripts\activate # Windows
source .venv/bin/activate # Linux/Mac
# Install dependencies
pip install -r requirements.txt# Build desktop application
.\build_desktop.bat
# Build mobile application
.\build_mobile.batThe build scripts automatically:
- Install Playwright browsers
- Create required data directories
- Copy configuration files
- Set up OpenCV cascade files
Best for: Single-user deployment, simple distribution
Steps:
- Run the build script:
.\build_desktop.bat - Copy the entire
dist/folder to target machine - Run
VFS-Desktop.exefrom the dist folder
Advantages:
- No Python installation required
- Self-contained with all dependencies
- Easy to distribute
Disadvantages:
- Large file size (~140MB)
- Slower startup time
- Limited customization
Best for: Development, customization, multiple users
Steps:
- Copy entire project folder to target machine
- Install Python 3.8+ on target machine
- Run setup script:
python setup.py install - Run application:
python -m app.main
Advantages:
- Smaller deployment size
- Faster startup
- Easy to modify and update
- Better debugging capabilities
Disadvantages:
- Requires Python installation
- More complex setup
- Dependency management needed
Best for: Controlled environments, enterprise deployment
Steps:
- Create virtual environment on target machine
- Copy project files
- Install dependencies in virtual environment
- Run from virtual environment
Advantages:
- Isolated dependencies
- Consistent environment
- Easy updates
Disadvantages:
- Requires Python on target machine
- More complex setup
After first run, the application creates:
VFS-Desktop/
├── VFS-Desktop.exe
├── clients.csv # Client data
├── proxies.txt # Proxy configuration
├── config.py # Application settings
├── info/ # Image capture data
├── documents/ # Uploaded documents
└── logs/ # Application logs
Edit proxies.txt to add working proxies:
host1:port1:username1:password1
host2:port2:username2:password2
The clients.csv file stores client information:
- First Name, Last Name
- Email, Password
- Mobile number, Date of birth
- Visa type, Application details
- Run
VFS-Desktop.exe - Grant camera permissions if prompted
- Wait for Playwright browser download (first run only)
- Configure proxy settings if needed
- Account Tab: Register new clients
- Order Tab: Configure visa application details
- Application Tab: Enter personal information
- Image Tab: Capture passport photos
- Service Tab: Upload required documents
- Review & Payment: Complete booking process
- Enter target URL in the URL field
- Configure headless/visible browser mode
- Click "Start Bot" to begin automation
- Monitor status light for operation status
Symptoms: Status light turns yellow, then off Solutions:
- Check internet connection
- Verify proxy configuration
- Run as administrator
- Check antivirus settings
Symptoms: Camera preview shows error Solutions:
- Grant camera permissions
- Close other applications using camera
- Run as administrator
- Check camera hardware
Symptoms: Changes not persisted between sessions Solutions:
- Check write permissions to EXE directory
- Run as administrator
- Verify disk space
- Check antivirus interference
Symptoms: EXE stops unexpectedly Solutions:
- Check Windows Event Viewer
- Run from command line for error details
- Verify all files present in EXE directory
- Check system requirements
Run from command line to see detailed errors:
cd dist
VFS-Desktop.exe --debugCheck logs in the logs/ directory for detailed error information.
If modules are missing:
- Rebuild with updated spec files
- Check hiddenimports in PyInstaller spec
- Verify all dependencies in requirements.txt
- Client data is stored locally in CSV format
- No data is transmitted to external servers
- Use encryption for sensitive deployments
- Proxy credentials are stored in plain text
- Use secure proxies for production
- Consider VPN for additional security
- Run with minimal required permissions
- Use Windows user accounts for access control
- Regular security updates
- Close unnecessary applications
- Ensure adequate RAM available
- Use SSD storage for better performance
- Use fast, reliable internet connection
- Configure working proxies
- Monitor bandwidth usage
- Use headless mode for better performance
- Limit concurrent operations
- Regular cleanup of log files
- Update proxy lists regularly
- Monitor for VFS Global website changes
- Update application as needed
- Regular backup of
clients.csv - Backup uploaded documents
- Archive log files
- Monitor application logs
- Check system performance
- Verify automation success rates
EXE_TROUBLESHOOTING_GUIDE.md: Detailed troubleshootingREADME.md: Project overviewrequirements.txt: Dependencies list
- Check troubleshooting guide first
- Review application logs
- Test with minimal configuration
- Verify system requirements
When reporting issues, include:
- Operating system version
- Application version
- Error messages from logs
- Steps to reproduce
- System configuration
The VFS Global automation system can be deployed in multiple ways depending on your needs. The standalone EXE deployment is recommended for most users due to its simplicity and self-contained nature. For development or customization needs, source code deployment provides more flexibility.
Always test the deployment in a controlled environment before production use, and maintain regular backups of important data.