mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-13 13:20:03 +02:00
168 lines
7.2 KiB
XML
168 lines
7.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
QElectroTech.wxs — WiX v7 installer definition
|
|
Génère un MSI x64 pour QElectroTech (build MSYS2/UCRT64).
|
|
|
|
Variables passées depuis la ligne de commande wix build :
|
|
-d FilesDir=<chemin absolu vers artifact\files>
|
|
-d Version=<version numérique ex. 0.100.1.0>
|
|
-d ProductVersion=<version lisible ex. 0.100.1-r8770-abc1234_x86_64-win64>
|
|
-->
|
|
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
|
|
|
<Package
|
|
Name="QElectroTech"
|
|
Manufacturer="QElectroTech Team"
|
|
Version="!(bind.Variable.Version)"
|
|
UpgradeCode="A1B2C3D4-E5F6-7890-ABCD-EF1234567890"
|
|
Language="1033"
|
|
Codepage="1252"
|
|
InstallerVersion="500"
|
|
Scope="perMachine">
|
|
|
|
<!-- Mise à jour en place : désinstalle l'ancienne version automatiquement -->
|
|
<MajorUpgrade
|
|
DowngradeErrorMessage="Une version plus récente de QElectroTech est déjà installée."
|
|
Schedule="afterInstallInitialize" />
|
|
|
|
<!-- Répertoire d'installation -->
|
|
<StandardDirectory Id="ProgramFiles64Folder">
|
|
<Directory Id="INSTALLDIR" Name="QElectroTech" />
|
|
</StandardDirectory>
|
|
|
|
<!-- ============================================================
|
|
Exe principal + bat lanceur
|
|
============================================================ -->
|
|
<ComponentGroup Id="CG_Exe" Directory="INSTALLDIR">
|
|
<Component Id="C_MainExe" Guid="B1C2D3E4-F5A6-7890-BCDE-F12345678901">
|
|
<File Id="qelectrotech_exe"
|
|
Source="!(bind.Variable.FilesDir)\bin\qelectrotech.exe"
|
|
KeyPath="yes" />
|
|
</Component>
|
|
<Component Id="C_LauncherBat" Guid="C2D3E4F5-A6B7-8901-CDEF-123456789012">
|
|
<File Id="lancer_qet_bat"
|
|
Source="!(bind.Variable.FilesDir)\Lancer QET.bat"
|
|
KeyPath="yes" />
|
|
</Component>
|
|
<Component Id="C_License" Guid="E0F1A2B3-C4D5-6789-4567-901234567890">
|
|
<File Id="LICENSE"
|
|
Source="!(bind.Variable.FilesDir)\LICENSE"
|
|
KeyPath="yes" />
|
|
</Component>
|
|
</ComponentGroup>
|
|
|
|
<!-- ============================================================
|
|
DLLs et sous-dossiers de bin\ (harvest automatique)
|
|
En WiX v7, Files est enfant direct de ComponentGroup
|
|
============================================================ -->
|
|
<ComponentGroup Id="CG_Bin" Directory="INSTALLDIR">
|
|
<Files Include="!(bind.Variable.FilesDir)\bin\**"
|
|
Exclude="!(bind.Variable.FilesDir)\bin\qelectrotech.exe" />
|
|
</ComponentGroup>
|
|
|
|
<!-- ============================================================
|
|
Données applicatives — harvest automatique par dossier
|
|
============================================================ -->
|
|
<ComponentGroup Id="CG_Elements" Directory="INSTALLDIR">
|
|
<Files Include="!(bind.Variable.FilesDir)\elements\**" />
|
|
</ComponentGroup>
|
|
|
|
<ComponentGroup Id="CG_Lang" Directory="INSTALLDIR">
|
|
<Files Include="!(bind.Variable.FilesDir)\lang\**" />
|
|
</ComponentGroup>
|
|
|
|
<ComponentGroup Id="CG_Titleblocks" Directory="INSTALLDIR">
|
|
<Files Include="!(bind.Variable.FilesDir)\titleblocks\**" />
|
|
</ComponentGroup>
|
|
|
|
<ComponentGroup Id="CG_Examples" Directory="INSTALLDIR">
|
|
<Files Include="!(bind.Variable.FilesDir)\examples\**" />
|
|
</ComponentGroup>
|
|
|
|
<ComponentGroup Id="CG_Fonts" Directory="INSTALLDIR">
|
|
<Files Include="!(bind.Variable.FilesDir)\fonts\**" />
|
|
</ComponentGroup>
|
|
|
|
<ComponentGroup Id="CG_Icons" Directory="INSTALLDIR">
|
|
<Files Include="!(bind.Variable.FilesDir)\ico\**" />
|
|
</ComponentGroup>
|
|
|
|
<!-- ============================================================
|
|
Raccourcis bureau + menu Démarrer
|
|
============================================================ -->
|
|
<ComponentGroup Id="CG_Shortcuts" Directory="INSTALLDIR">
|
|
<Component Id="C_ShortcutDesktop" Guid="F1A2B3C4-D5E6-7890-5678-012345678901">
|
|
<Shortcut Id="DesktopShortcut"
|
|
Directory="DesktopFolder"
|
|
Name="QElectroTech"
|
|
Target="[INSTALLDIR]Lancer QET.bat"
|
|
Icon="qet.ico"
|
|
WorkingDirectory="INSTALLDIR" />
|
|
<RegistryValue Root="HKCU"
|
|
Key="Software\QElectroTech"
|
|
Name="DesktopShortcut"
|
|
Type="integer" Value="1"
|
|
KeyPath="yes" />
|
|
</Component>
|
|
<Component Id="C_ShortcutStartMenu" Guid="A2B3C4D5-E6F7-8901-6789-123456789012">
|
|
<Shortcut Id="StartMenuShortcut"
|
|
Directory="ProgramMenuFolder"
|
|
Name="QElectroTech"
|
|
Target="[INSTALLDIR]Lancer QET.bat"
|
|
Icon="qet.ico"
|
|
WorkingDirectory="INSTALLDIR" />
|
|
<RegistryValue Root="HKCU"
|
|
Key="Software\QElectroTech"
|
|
Name="StartMenuShortcut"
|
|
Type="integer" Value="1"
|
|
KeyPath="yes" />
|
|
</Component>
|
|
</ComponentGroup>
|
|
|
|
<!-- ============================================================
|
|
Association fichier .qet
|
|
============================================================ -->
|
|
<ComponentGroup Id="CG_FileAssoc" Directory="INSTALLDIR">
|
|
<Component Id="C_FileAssoc" Guid="B3C4D5E6-F7A8-9012-7890-234567890123">
|
|
<RegistryValue Root="HKCR" Key=".qet" Type="string" Value="QElectroTech.Document" KeyPath="yes" />
|
|
<RegistryValue Root="HKCR" Key="QElectroTech.Document" Type="string" Value="QElectroTech Project" />
|
|
<RegistryValue Root="HKCR" Key="QElectroTech.Document\DefaultIcon" Type="string"
|
|
Value="[INSTALLDIR]ico\qelectrotech.ico" />
|
|
<RegistryValue Root="HKCR" Key="QElectroTech.Document\shell\open\command" Type="string"
|
|
Value=""[INSTALLDIR]bin\qelectrotech.exe" "%1"" />
|
|
</Component>
|
|
</ComponentGroup>
|
|
|
|
<!-- ============================================================
|
|
Icône pour les raccourcis
|
|
============================================================ -->
|
|
<Icon Id="qet.ico" SourceFile="!(bind.Variable.FilesDir)\ico\qelectrotech.ico" />
|
|
|
|
<!-- ============================================================
|
|
Feature principale (tout inclus)
|
|
============================================================ -->
|
|
<Feature Id="ProductFeature" Title="QElectroTech" Level="1">
|
|
<ComponentGroupRef Id="CG_Exe" />
|
|
<ComponentGroupRef Id="CG_Bin" />
|
|
<ComponentGroupRef Id="CG_Elements" />
|
|
<ComponentGroupRef Id="CG_Lang" />
|
|
<ComponentGroupRef Id="CG_Titleblocks" />
|
|
<ComponentGroupRef Id="CG_Examples" />
|
|
<ComponentGroupRef Id="CG_Fonts" />
|
|
<ComponentGroupRef Id="CG_Icons" />
|
|
<ComponentGroupRef Id="CG_Shortcuts" />
|
|
<ComponentGroupRef Id="CG_FileAssoc" />
|
|
</Feature>
|
|
|
|
<!-- UI minimale Windows Installer -->
|
|
<UIRef Id="WixUI_Minimal" />
|
|
|
|
<!-- Propriétés affichées dans Programmes et fonctionnalités -->
|
|
<Property Id="ARPPRODUCTICON" Value="qet.ico" />
|
|
<Property Id="ARPHELPLINK" Value="https://qelectrotech.org" />
|
|
<Property Id="ARPURLINFOABOUT" Value="https://qelectrotech.org" />
|
|
<Property Id="ARPCOMMENTS" Value="Logiciel libre de schémas électriques" />
|
|
|
|
</Package>
|
|
</Wix>
|