Files
OmniOilPersonal/services/edge-agent/wix/main.wxs
Wilman Yesid Farfan Diaz 78b56807b0
Some checks failed
Build, MSI & Deploy / Build Docker images (push) Failing after 6m30s
Build, MSI & Deploy / Deploy to Dokploy (push) Has been skipped
Build, MSI & Deploy / Build Edge Agent Binaries (push) Failing after 1s
Build, MSI & Deploy / Send notification (push) Successful in 0s
Build, MSI & Deploy / Build Edge Agent MSI (push) Has been skipped
fix(ci): secuenciar build y push de tags para evitar perdida de etiquetas
2026-07-11 19:57:24 -05:00

127 lines
6.5 KiB
XML

<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product Name='OmniOil Edge Agent'
Id='*'
UpgradeCode='6F9619FF-8B49-4D6C-8D4C-9B6C24B55FCD'
Language='1033'
Codepage='1252'
Version='0.3.0'
Manufacturer='OmniOil'>
<Package Id='*'
Keywords='Installer'
Description="OmniOil Edge Agent Installer"
Comments='Edge computing agent for OmniOil'
Manufacturer='OmniOil'
InstallerVersion='200'
Languages='1033'
Compressed='yes'
SummaryCodepage='1252' />
<MajorUpgrade DowngradeErrorMessage="Una versión más reciente de [ProductName] ya está instalada." />
<Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" />
<Property Id='DiskPrompt' Value="OmniOil Edge Agent Installation [1]" />
<!-- Icono para Agregar o Quitar Programas (Panel de Control) -->
<Icon Id="ProductIcon" SourceFile="icon_app.ico" />
<Property Id="ARPPRODUCTICON" Value="ProductIcon" />
<!-- Estilo Visual Personalizado (Bitmaps corporativos y Licencia EULA) -->
<WixVariable Id="WixUIBannerBmp" Value="banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="dialog.bmp" />
<WixVariable Id="WixUILicenseRtf" Value="license.rtf" />
<!-- Opciones de Auto-inicio al finalizar -->
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch OmniOil Edge Tray now" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" />
<Property Id="WixShellExecTarget" Value="[INSTALLDIR]edge-tray.exe" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
<!-- Configuración de Directorios -->
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='SystemFolder' />
<!-- Carpeta en el Menú Inicio -->
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="OmniOil" />
</Directory>
<Directory Id='ProgramFiles64Folder' Name='PFiles'>
<Directory Id='OmniOilFolder' Name='OmniOil'>
<Directory Id='INSTALLDIR' Name='EdgeAgent'>
<!-- Servicio de Windows (Ejecutándose recurrentemente) -->
<Component Id='MainExecutable' Guid='B278D874-45B5-4CBA-A840-3F02AB62F9FD'>
<File Id='EdgeAgentEXE' Source='target/x86_64-pc-windows-msvc/release/edge-agent.exe' KeyPath='yes' />
<!-- Instalación del servicio Windows -->
<ServiceInstall Id="ServiceInstaller"
Type="ownProcess"
Name="OmniOilEdgeAgent"
DisplayName="OmniOil Edge Agent"
Description="Edge agent for OmniOil Analytics."
Start="auto"
Account="LocalSystem"
ErrorControl="normal" />
<ServiceControl Id="StartService" Start="install" Stop="both" Remove="uninstall" Name="OmniOilEdgeAgent" Wait="yes" />
</Component>
<!-- Aplicación de Bandeja de Sistema (Tray Icon) -->
<Component Id='TrayExecutable' Guid='*'>
<File Id='EdgeTrayEXE' Source='target/x86_64-pc-windows-msvc/release/edge-tray.exe' KeyPath='yes' />
<!-- Registrar para ejecutar al iniciar sesión de usuario -->
<RegistryValue Root="HKCU" Key="Software\Microsoft\Windows\CurrentVersion\Run" Name="OmniOilEdgeTray" Value="[INSTALLDIR]edge-tray.exe" Type="string" />
</Component>
<Component Id='IconFile' Guid='*'>
<File Id='AppIcon' Source='icon.ico' KeyPath='yes'/>
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<!-- Accesos Directos en el Menú Inicio -->
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="7C59E3F1-9876-4CBA-8051-D2BC584A22F2">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="OmniOil Edge Tray"
Description="Monitor and configure OmniOil Edge Agent"
Target="[INSTALLDIR]edge-tray.exe"
WorkingDirectory="INSTALLDIR"
Icon="ProductIcon"/>
<Shortcut Id="UninstallProduct"
Name="Uninstall OmniOil Edge Agent"
Description="Uninstalls OmniOil Edge Agent"
Target="[SystemFolder]msiexec.exe"
Arguments="/x [ProductCode]"/>
<RemoveFolder Id="CleanUpShortcuts" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\OmniOil\EdgeAgent" Name="installed" Type="integer" Value="1" KeyPath="yes" />
</Component>
</DirectoryRef>
<!-- Interfaz Gráfica Minimalista (Muestra EULA y progreso sin pedir carpetas) -->
<UI>
<UIRef Id="WixUI_Minimal" />
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
</UI>
<!-- Feature principal -->
<Feature Id='MainFeature' Title='Main Feature' Level='1'>
<ComponentRef Id='MainExecutable' />
<ComponentRef Id='TrayExecutable' />
<ComponentRef Id='IconFile' />
<ComponentRef Id='ApplicationShortcut' />
</Feature>
<!-- Custom Action para cerrar el Tray Icon antes de desinstalar o actualizar -->
<CustomAction Id="KillTray" Directory="SystemFolder" ExeCommand="taskkill /F /IM edge-tray.exe" Execute="immediate" Return="ignore" />
<InstallExecuteSequence>
<Custom Action="KillTray" Before="InstallValidate" />
</InstallExecuteSequence>
</Product>
</Wix>