Complete guide for auto-running the React CRM Business Predictor application with custom icons and executables.
Simply double-click: auto-run.bat
This will automatically:
- ✓ Check for required dependencies
- ✓ Install missing packages
- ✓ Start backend server (http://localhost:8000)
- ✓ Start frontend server (http://localhost:5173)
- ✓ Open in separate windows
Best for: First-time users and troubleshooting
Features:
- Automatic dependency checking
- Runs installation if needed
- Creates backend configuration
- Shows detailed status messages
- Opens servers in separate windows
Usage:
# Double-click the file, or run:
auto-run.batBest for: Regular use after initial setup
Features:
- Fast startup
- Minimal messages
- Quick dependency check
- Same functionality, less verbose
Usage:
# Double-click the file, or run:
auto-run.cmdBest for: Complete automation
Features:
- Launches application
- Automatically opens browser after 8 seconds
- Minimal user interaction
Usage:
# Double-click the file, or run:
wscript launcher.vbsBest for: Silent background startup
Features:
- No command windows shown
- Runs completely in background
- Shows notification when started
- Perfect for startup scripts
Usage:
# Double-click the file, or run:
wscript launcher-silent.vbsBest for: Professional deployment with custom icon
Features:
- Standalone executable
- Custom application icon
- Can be pinned to taskbar
- Professional appearance
- Creates desktop shortcuts
Setup:
- Run
create-icon.ps1to create the icon - Run
create-exe.ps1to build the executable - Double-click
CRM-Launcher.exe
Run PowerShell as Administrator:
.\create-icon.ps1This script will:
- Check for ImageMagick (optional)
- Create icon from SVG file
- Provide alternative methods if needed
Manual Icon Creation: If automated creation fails, use one of these:
Option A: Online Converter
- Upload
app-icon.svgto: https://convertio.co/svg-ico/ - Download as
app-icon.ico - Save in project root
Option B: GIMP (Free)
- Download GIMP: https://www.gimp.org/
- Open
app-icon.svg - Export as
app-icon.ico(256x256 recommended)
Run PowerShell as Administrator:
.\create-exe.ps1This script will:
- Verify dependencies exist
- Compile C# launcher code
- Embed the custom icon
- Create
CRM-Launcher.exe - Optionally create desktop shortcut
Requirements:
- .NET Framework 4.0+ (pre-installed on Windows 7+)
- C# compiler (csc.exe)
Once created, you can:
- Double-click
CRM-Launcher.exeto start - Create desktop shortcuts
- Pin to taskbar
- Pin to Start menu
- Add to Windows startup
When the application starts:
| Service | URL | Purpose |
|---|---|---|
| Backend | http://localhost:8000 | API and ML processing |
| Frontend | http://localhost:5173 | User interface |
- Wait for both servers to start (3-5 seconds)
- Open browser to: http://localhost:5173
- Backend API is at: http://localhost:8000
- Press
Win + R - Type:
shell:startup - Press Enter
- Create shortcut to
launcher-silent.vbsorCRM-Launcher.exe
- Open Task Scheduler
- Create Basic Task
- Trigger: "At log on"
- Action: Start program
- Program: Path to
launcher-silent.vbsorCRM-Launcher.exe
The script prompts to create a desktop shortcut automatically.
- Right-click on desktop
- New → Shortcut
- Browse to
auto-run.batorCRM-Launcher.exe - Name it: "CRM Business Predictor"
- (Optional) Right-click shortcut → Properties → Change Icon → Browse to
app-icon.ico
Edit backend/.env:
HOST=0.0.0.0
PORT=8000 # Change backend port hereFor frontend port, edit package.json:
"scripts": {
"dev": "vite --port 5173" // Change frontend port here
}To automatically open browser, use:
launcher.vbs- opens browser after 8 seconds- Or modify
auto-run.batto add at the end:timeout /t 8 start http://localhost:5173
For completely silent operation:
- Use
launcher-silent.vbs - Comment out the MsgBox line if you don't want notifications
Solution: Install Node.js 18+ from https://nodejs.org/
Solution: Install Python 3.9-3.12 from https://www.python.org/
Solution:
- Check if application is already running
- Close other processes using ports 8000 or 5173
- Or change ports in configuration (see Customization)
Solution:
- Run
install.batmanually - Check
backend/.envexists - Activate venv and run:
pip install -r requirements.txt
Solution:
- Delete
node_modulesfolder - Run:
npm install - Try again
Solution:
- Run PowerShell as Administrator
- Install .NET Framework 4.0+
- Or use alternative methods (ps2exe)
Solution:
- Ensure
app-icon.icoexists - Use online converter if
create-icon.ps1fails - Rebuild executable after creating icon
| File | Type | Purpose |
|---|---|---|
auto-run.bat |
Batch | Full-featured launcher with checks |
auto-run.cmd |
CMD | Quick launcher for regular use |
launcher.vbs |
VBScript | Auto-opens browser |
launcher-silent.vbs |
VBScript | Silent background launcher |
app-icon.svg |
SVG | Source icon file |
app-icon.ico |
Icon | Windows icon (created by script) |
create-icon.ps1 |
PowerShell | Icon creation script |
create-exe.ps1 |
PowerShell | Executable builder |
CRM-Launcher.exe |
Executable | Standalone launcher with icon |
set PORT=9000 && auto-run.batcd backend
call venv\Scripts\activate.bat
python app.pynpm run dev- Use
auto-run.batfor detailed feedback - Keep command windows open to see logs
- Check both windows for errors
- Use
CRM-Launcher.exewith custom icon - Pin to taskbar for quick access
- Use
launcher-silent.vbsfor startup automation
- Share entire project folder
- Include
auto-run.batfor easy setup - Users just double-click to start
- All launchers run locally on your machine
- No external connections required (after initial setup)
- Backend runs on localhost only (0.0.0.0:8000)
- Frontend runs on localhost only (0.0.0.0:5173)
To expose to network, edit backend/.env:
HOST=0.0.0.0 # Already set - accessible from networkThen access from other devices: http://YOUR_IP:5173
To remove the launchers:
- Delete the launcher files listed above
- Remove shortcuts from Desktop/Taskbar
- Remove from Startup folder if added
- Remove Task Scheduler entry if created
To fully uninstall the application:
# Delete dependencies
rmdir /s /q node_modules
rmdir /s /q backend\venv
# Keep project files, remove launchers
del auto-run.bat auto-run.cmd launcher*.vbs create-*.ps1 CRM-Launcher.exe app-icon.*If you encounter issues:
- Check the Troubleshooting section above
- Review error messages in command windows
- Ensure all prerequisites are installed
- Try running
install.batmanually
MIT License - Same as main project
Enjoy your automated CRM Business Predictor! 🚀