-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
56 lines (46 loc) · 1.05 KB
/
start.bat
File metadata and controls
56 lines (46 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@echo off
chcp 65001 >nul 2>&1
title UniversalInvoiceMail
echo ========================================
echo UniversalInvoiceMail v2.3.0
echo ========================================
echo.
REM Prüfe ob Python verfügbar ist
where python >nul 2>&1
if %errorlevel% neq 0 (
echo [FEHLER] Python nicht gefunden!
echo Bitte Python installieren: https://python.org
pause
exit /b 1
)
REM Wechsle ins Script-Verzeichnis
cd /d "%~dp0"
echo Prüfe Abhängigkeiten...
REM Prüfe PySide6
pip show PySide6 >nul 2>&1
if %errorlevel% neq 0 (
echo Installiere PySide6...
pip install PySide6
)
REM Prüfe xhtml2pdf
pip show xhtml2pdf >nul 2>&1
if %errorlevel% neq 0 (
echo Installiere xhtml2pdf...
pip install xhtml2pdf
)
REM Prüfe keyring
pip show keyring >nul 2>&1
if %errorlevel% neq 0 (
echo Installiere keyring...
pip install keyring
)
echo.
echo Starte Anwendung...
echo.
REM Starte die App
python UniversalInvoiceMail.py
if %errorlevel% neq 0 (
echo.
echo [FEHLER] Anwendung beendet mit Fehlercode %errorlevel%
pause
)