Füge WiX v6-kompatiblen MSI-Installer hinzu
- Erstelle generate_wix_files.py zum Ersetzen von 'wix heat' - Migriere DocuMentor.wxs auf WiX v4/v6-Syntax - Füge build_msi.py für automatisierten Build hinzu - Aktualisiere Dokumentation für WiX v6 - Erweitere .gitignore für WiX-Artefakte WiX v6 hat das 'heat' Tool entfernt, daher wurde ein Python-Skript erstellt, das automatisch alle Dateien aus dist/DocuMentor harvested und eine WiX-konforme ProductFiles.wxs generiert. Der neue Build-Prozess: 1. uv run python build_windows.py 2. uv run python generate_wix_files.py 3. wix build DocuMentor.wxs ProductFiles.wxs -o DocuMentor.msi Oder vereinfacht: uv run python build_msi.py
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
||||
|
||||
<!-- Paket-Definition (ersetzt Product in v4) -->
|
||||
<Package
|
||||
Name="DocuMentor"
|
||||
Version="0.1.0"
|
||||
Manufacturer="Ihr Name/Firma"
|
||||
UpgradeCode="F498B66C-726D-44AA-95F4-CB4FBDCEF26E"
|
||||
Language="1031"
|
||||
Compressed="yes"
|
||||
InstallerVersion="500">
|
||||
|
||||
<MajorUpgrade
|
||||
DowngradeErrorMessage="Eine neuere Version ist bereits installiert."
|
||||
AllowSameVersionUpgrades="yes" />
|
||||
|
||||
<!-- Media Template -->
|
||||
<MediaTemplate EmbedCab="yes" />
|
||||
|
||||
<!-- Feature-Definition -->
|
||||
<Feature Id="ProductFeature" Title="DocuMentor" Level="1">
|
||||
<ComponentGroupRef Id="ProductComponents" />
|
||||
<ComponentRef Id="ApplicationShortcut" />
|
||||
<ComponentRef Id="DesktopShortcut" />
|
||||
</Feature>
|
||||
|
||||
<!-- Minimal UI (Standard Windows Installer Dialog) -->
|
||||
|
||||
<!-- Icon -->
|
||||
<Icon Id="icon.ico" SourceFile="resources\icon.ico"/>
|
||||
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
|
||||
<Property Id="ARPHELPLINK" Value="https://github.com/IhrRepo/DocuMentor" />
|
||||
</Package>
|
||||
|
||||
<!-- Fragment: Verzeichnisstruktur -->
|
||||
<Fragment>
|
||||
<StandardDirectory Id="ProgramFilesFolder">
|
||||
<Directory Id="INSTALLFOLDER" Name="DocuMentor" />
|
||||
</StandardDirectory>
|
||||
|
||||
<StandardDirectory Id="ProgramMenuFolder">
|
||||
<Directory Id="ApplicationProgramsFolder" Name="DocuMentor"/>
|
||||
</StandardDirectory>
|
||||
|
||||
<StandardDirectory Id="DesktopFolder" />
|
||||
</Fragment>
|
||||
|
||||
<!-- Fragment: Shortcuts -->
|
||||
<Fragment>
|
||||
<Component Id="ApplicationShortcut" Directory="ApplicationProgramsFolder" Guid="A498B66C-726D-44AA-95F4-CB4FBDCEF26E">
|
||||
<Shortcut
|
||||
Id="ApplicationStartMenuShortcut"
|
||||
Name="DocuMentor"
|
||||
Description="XSL-Transformations-Verwaltung"
|
||||
Target="[INSTALLFOLDER]DocuMentor.exe"
|
||||
WorkingDirectory="INSTALLFOLDER"
|
||||
Icon="icon.ico" />
|
||||
<RemoveFolder Id="CleanUpShortCut" On="uninstall"/>
|
||||
<RegistryValue
|
||||
Root="HKCU"
|
||||
Key="Software\DocuMentor"
|
||||
Name="installed"
|
||||
Type="integer"
|
||||
Value="1"
|
||||
KeyPath="yes"/>
|
||||
</Component>
|
||||
|
||||
<Component Id="DesktopShortcut" Directory="DesktopFolder" Guid="B498B66C-726D-44AA-95F4-CB4FBDCEF26E">
|
||||
<Shortcut
|
||||
Id="DesktopShortcutId"
|
||||
Name="DocuMentor"
|
||||
Target="[INSTALLFOLDER]DocuMentor.exe"
|
||||
WorkingDirectory="INSTALLFOLDER"
|
||||
Icon="icon.ico" />
|
||||
<RegistryValue
|
||||
Root="HKCU"
|
||||
Key="Software\DocuMentor"
|
||||
Name="desktopShortcut"
|
||||
Type="integer"
|
||||
Value="1"
|
||||
KeyPath="yes"/>
|
||||
</Component>
|
||||
</Fragment>
|
||||
|
||||
</Wix>
|
||||
Reference in New Issue
Block a user