build_msi.py: Klare Fehlermeldung bei fehlendem wix-Befehl
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -48,10 +48,19 @@ def build_msi():
|
|||||||
|
|
||||||
# Schritt 2: MSI kompilieren mit WiX v6
|
# Schritt 2: MSI kompilieren mit WiX v6
|
||||||
print("Schritt 2/2: Kompiliere MSI-Installer...")
|
print("Schritt 2/2: Kompiliere MSI-Installer...")
|
||||||
|
try:
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
["wix", "build", "DocuMentor.wxs", "ProductFiles.wxs", "-o", str(msi_output)],
|
["wix", "build", "DocuMentor.wxs", "ProductFiles.wxs", "-o", str(msi_output)],
|
||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
|
except FileNotFoundError:
|
||||||
|
print("\nFEHLER: 'wix' wurde nicht gefunden!")
|
||||||
|
print("WiX v6 muss installiert sein. Installationsschritte:")
|
||||||
|
print(" 1. .NET SDK installieren: https://dot.net")
|
||||||
|
print(" 2. WiX als dotnet tool installieren:")
|
||||||
|
print(" dotnet tool install --global wix --version 6.*")
|
||||||
|
print(" 3. Neues Terminal öffnen (PATH aktualisieren)")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
print("\nFEHLER: MSI-Kompilierung fehlgeschlagen!")
|
print("\nFEHLER: MSI-Kompilierung fehlgeschlagen!")
|
||||||
|
|||||||
Reference in New Issue
Block a user