6.6 KiB
6.6 KiB
Quality Print Service - Complete Installation Guide
🎯 Pre-Installation Checklist
System Requirements Verification:
- Windows 10 build 1903+ or Windows Server 2016+
- Administrator access to the system
- Google Chrome browser installed
- At least 100 MB free disk space
- Network/USB printer connected and configured
Python Requirements:
- Python 3.7+ installed OR use included portable Python
- Python accessible via command line (optional)
📦 Installation Methods
Method 1: Complete Automatic Installation (Recommended)
-
Download and Extract:
- Extract the complete package to any folder (e.g., Desktop)
- No need to keep the files permanently
-
Run Installer:
Right-click: install_service_complete.bat Select: "Run as administrator" -
Follow Installation Steps:
[1/6] Administrator privileges confirmed ✓ [2/6] Checking Python installation... [3/6] Creating installation directories... [4/6] Installing service files... [5/6] Installing Windows service... [6/6] Starting service... -
Install Chrome Extension:
- Chrome will open the extension folder automatically
- Go to
chrome://extensions/ - Enable "Developer mode" (top right)
- Click "Load unpacked"
- Select the
chrome_extensionfolder
-
Verify Installation:
- Visit:
http://localhost:8765/health - Expected response:
{"status": "healthy"}
- Visit:
Method 2: Manual Installation
-
Create Directories:
mkdir C:\QualityPrintService mkdir %USERPROFILE%\PrintService\logs -
Copy Files:
copy print_service_complete.py C:\QualityPrintService ``` -
Install Service:
sc create QualityPrintService binPath="python C:\QualityPrintService\print_service_complete.py" sc start QualityPrintService
🔧 Post-Installation Configuration
Service Verification:
# Check service status
sc query QualityPrintService
# Check service configuration
sc qc QualityPrintService
# View service logs (if using NSSM)
type "%USERPROFILE%\PrintService\logs\service_output.log"
Network Testing:
# Test health endpoint
Invoke-RestMethod -Uri http://localhost:8765/health
# Test printer endpoint
Invoke-RestMethod -Uri http://localhost:8765/printers
# Test from browser
start http://localhost:8765/status
Chrome Extension Setup:
- Open Chrome browser
- Navigate to
chrome://extensions/ - Enable "Developer mode" toggle (top-right corner)
- Click "Load unpacked" button
- Browse and select the
chrome_extensionfolder - Verify extension appears in the list with green toggle
🔍 Installation Verification
Health Check Procedure:
-
Service Status: Verify Windows service is running
sc query QualityPrintService | find "RUNNING" -
Network Connectivity: Test HTTP endpoints
curl http://localhost:8765/health -
Printer Detection: Check printer enumeration
curl http://localhost:8765/printers -
Extension Communication: Test from web page
- Open the Quality app in Chrome
- Go to print module
- Verify "Extension ready" status
Expected Responses:
Health Check:
{
"status": "healthy",
"service": "Windows Print Service",
"version": "1.0.0",
"timestamp": "2025-09-25T10:30:00"
}
Printer List:
{
"success": true,
"printers": [
{"name": "HP LaserJet", "type": "Local", "status": "Available"}
],
"count": 1
}
🚨 Troubleshooting Common Issues
Issue: "Administrator privileges required"
Solution:
- Right-click installer file
- Select "Run as administrator"
- Confirm UAC prompt
Issue: "Python not found"
Solutions:
- Install Python from python.org
- Use included portable Python
- Add Python to system PATH
Issue: "Service failed to start"
Solutions:
- Check Windows Event Viewer:
- Windows Logs → Application
- Filter by source: "Service Control Manager"
- Verify port 8765 is not in use:
netstat -an | find "8765" - Check service logs:
type "%USERPROFILE%\PrintService\logs\print_service_*.log"
Issue: "Chrome extension not working"
Solutions:
- Reload extension in
chrome://extensions/ - Check extension permissions
- Verify service is responding at
localhost:8765 - Clear browser cache and cookies
Issue: "PDF printing fails"
Solutions:
- Install Adobe Reader or SumatraPDF
- Check printer permissions
- Verify PDF file accessibility
- Test with different printer
🔄 Maintenance and Updates
Regular Maintenance:
- Log Cleanup: Logs rotate automatically
- Service Monitoring: Check service status weekly
- Chrome Extension: Update when prompted
Manual Service Management:
# Stop service
sc stop QualityPrintService
# Start service
sc start QualityPrintService
# Restart service
sc stop QualityPrintService && timeout /t 3 && sc start QualityPrintService
# Change startup type
sc config QualityPrintService start= auto
Log File Locations:
- Service logs:
%USERPROFILE%\PrintService\logs\ - Windows Event Logs: Event Viewer → Windows Logs → Application
- Chrome Extension: Chrome DevTools → Console
🔧 Advanced Configuration
Custom Port Configuration:
Edit print_service_complete.py:
server_address = ('localhost', 8765) # Change 8765 to desired port
Custom Install Directory:
Edit install_service_complete.bat:
set INSTALL_DIR=C:\CustomPath\PrintService
Service Recovery Options:
sc failure QualityPrintService reset= 86400 actions= restart/5000/restart/10000/restart/30000
📋 Uninstallation
Complete Removal:
- Run
uninstall_service_complete.batas Administrator - Remove Chrome extension manually
- Optional: Delete log files
Manual Removal:
# Stop and remove service
sc stop QualityPrintService
sc delete QualityPrintService
# Remove files
rmdir /s /q C:\QualityPrintService
rmdir /s /q "%USERPROFILE%\PrintService"
📞 Getting Help
Before Contacting Support:
- Check this installation guide
- Review troubleshooting section
- Check service logs for error messages
- Test with simple printer (like Microsoft Print to PDF)
Information to Provide:
- Windows version (run
winver) - Python version (run
python --version) - Service status (run
sc query QualityPrintService) - Recent log entries
- Error messages or screenshots
Installation Guide Version: 1.0.0
Last Updated: September 2025
Support: Internal Quality System Team