This commit is contained in:
2025-09-26 21:56:06 +03:00
parent c17812a0c1
commit 2216f21c47
17 changed files with 3361 additions and 631 deletions

View File

@@ -1,7 +1,10 @@
#!/usr/bin/env python3
"""
Script to create a completely self-contained Windows Print Service package
with embedded Python distribution - Zero external dependencies required!
with embedded Python distribution and comprehensive Error 1053 fixes
- Zero external dependencies required!
- Multiple installation methods with automatic fallback
- Complete Windows Service Error 1053 resolution
"""
import os
@@ -90,11 +93,23 @@ def create_complete_package():
print("📁 Adding service files...")
service_files = [
"print_service_complete.py",
"install_service_complete.bat",
"service_wrapper.py",
"service_installer.py",
"install_service_complete.bat",
"install_service_ENHANCED.bat",
"uninstall_service_complete.bat",
"fix_error_1053.bat",
"test_service.bat",
"build_executable.bat",
"build_package.py",
"create_portable_package.py",
"requirements_complete.txt",
"INSTALLATION_COMPLETE.md",
"PACKAGE_SUMMARY.md",
"README_COMPLETE.md"
"README_COMPLETE.md",
"TROUBLESHOOTING_1053.md",
"ERROR_1053_COMPLETE_FIX.md",
"PORTABLE_PYTHON_INSTRUCTIONS.txt"
]
for file_name in service_files:
@@ -384,23 +399,26 @@ rmdir /s /q C:\\QualityPrintService
zipf.writestr("README_ZERO_DEPENDENCIES.md", readme_content)
files_added += 1
print(f"\n📦 Package created successfully!")
print(f"\n📦 Enhanced Package created successfully!")
print(f"📄 Total files: {files_added}")
print(f"📂 Location: {package_path}")
print(f"📏 Size: {package_path.stat().st_size / 1024 / 1024:.1f} MB")
print(f"🔧 Features: Error 1053 fixes, multiple installation methods")
print(f"🚀 Python: {PYTHON_VERSION} embedded (zero dependencies)")
return True
if __name__ == "__main__":
print("🚀 Creating Complete Zero-Dependencies Package...")
print("=" * 60)
print("🚀 Creating Enhanced Package with Error 1053 Fixes...")
print("=" * 65)
if create_complete_package():
print("\n✅ SUCCESS: Complete package created!")
print("\n✅ SUCCESS: Enhanced package created with Error 1053 fixes!")
print("\n📋 Next steps:")
print("1. Test the package on a clean Windows system")
print("2. Verify zero external dependencies")
print("3. Update Flask app to serve this package")
print("1. Package includes multiple installation methods")
print("2. Error 1053 diagnostic and fix tools included")
print("3. Test on Windows system - should resolve all service issues")
print("4. Update Flask app to serve this enhanced package")
else:
print("\n❌ FAILED: Package creation failed")
sys.exit(1)