101 lines
4.3 KiB
XML
101 lines
4.3 KiB
XML
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
|
||
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
|
||
|
||
<!-- ✅ Safe default in case $(var.Version) is undefined -->
|
||
<?ifndef Version?>
|
||
<?define Version="0.0.0"?>
|
||
<?endif?>
|
||
|
||
<Package
|
||
Name="Oversight"
|
||
Manufacturer="Paragon Systems Group"
|
||
Version="$(var.Version)"
|
||
UpgradeCode="e0e26d46-ed26-425e-a1bb-9bc76523ae6b">
|
||
|
||
<Property Id="DisplayVersion" Value="$(var.Version)" />
|
||
|
||
<!-- 🔁 Automatic major-upgrade behavior -->
|
||
<MajorUpgrade DowngradeErrorMessage="A newer version of this application is already installed." />
|
||
|
||
<!-- ✅ Only define custom ARP metadata that isn’t built-in -->
|
||
<Property Id="ARPPRODUCTICON" Value="DLShortcutIcon" />
|
||
<Property Id="ARPHELPLINK" Value="https://psg.net.au/" />
|
||
<Property Id="ARPCONTACT" Value="support@psg.net.au" />
|
||
<Property Id="ARPINSTALLLOCATION" Value="[INSTALLFOLDER]" />
|
||
|
||
<!-- Optional custom properties -->
|
||
<Property Id="SERVER_URL" Value="http://your-default-server/api/register" />
|
||
<Property Id="APP_EXECUTABLE" Value="PSG-Oversight.exe" />
|
||
|
||
<!-- 💬 EULA -->
|
||
<WixVariable Id="WixUILicenseRtf" Value="bpl.rtf" />
|
||
|
||
<!-- 🔧 UI -->
|
||
<ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER" />
|
||
|
||
<!-- 🎨 Icon for Add/Remove Programs -->
|
||
<Icon Id="DLShortcutIcon" SourceFile="Assets\DLShortcut.ico" />
|
||
|
||
<!-- 📂 Installation Directory -->
|
||
<StandardDirectory Id="ProgramFiles64Folder">
|
||
<Directory Id="PSGROOT" Name="PSG">
|
||
<Directory Id="INSTALLFOLDER" Name="Oversight">
|
||
<!-- Your files and harvested components go here -->
|
||
</Directory>
|
||
</Directory>
|
||
</StandardDirectory>
|
||
|
||
<!-- 📦 Application Files -->
|
||
<ComponentGroupRef Id="AppFiles" />
|
||
|
||
<!-- 📁 Start Menu Shortcut -->
|
||
<StandardDirectory Id="ProgramMenuFolder">
|
||
<Directory Id="ApplicationProgramsFolder" Name="Oversight">
|
||
<Component Id="StartMenuShortcutComponent" Guid="4C5466A9-CE33-48AE-B80C-08915A864DF2">
|
||
<Shortcut Id="StartMenuShortcut"
|
||
Directory="ApplicationProgramsFolder"
|
||
Name="Oversight"
|
||
WorkingDirectory="INSTALLFOLDER"
|
||
Target="[INSTALLFOLDER][APP_EXECUTABLE]"
|
||
Icon="DLShortcutIcon"
|
||
IconIndex="0" />
|
||
<RemoveFile Id="RemoveStartMenuShortcut" Name="Oversight.lnk" On="uninstall" />
|
||
<RemoveFolder Id="RemoveStartMenuFolder" On="uninstall" />
|
||
<RegistryValue Root="HKCU" Key="Software\Oversight"
|
||
Name="StartMenuShortcut" Type="integer" Value="1" KeyPath="yes"/>
|
||
</Component>
|
||
</Directory>
|
||
</StandardDirectory>
|
||
|
||
|
||
<!-- 64-bit component so ARP keys go to HKLM\Software (not Wow6432Node) -->
|
||
<Component Id="AppMetadata" Guid="E62354E8-3C7B-4B13-AFE2-A1E65A7F2E77" Bitness="always64">
|
||
<RegistryKey
|
||
Root="HKLM"
|
||
Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductCode]">
|
||
<!-- Nice, branded ARP entry -->
|
||
<RegistryValue Name="DisplayName" Value="Oversight" Type="string" />
|
||
<RegistryValue Name="Publisher" Value="Paragon Systems Group" Type="string" />
|
||
<!-- Make version show in Control Panel; compile-time value from your wixproj -->
|
||
<RegistryValue Name="DisplayVersion" Value="$(var.Version)" Type="string" KeyPath="yes" />
|
||
</RegistryKey>
|
||
</Component>
|
||
|
||
|
||
|
||
|
||
|
||
<!-- 🧱 Primary Feature -->
|
||
<Feature Id="Main" Title="DL SysInfo" Level="1">
|
||
<ComponentGroupRef Id="AppFiles" />
|
||
<ComponentRef Id="StartMenuShortcutComponent" />
|
||
<ComponentRef Id="cmpOsqueryiExe" />
|
||
<ComponentRef Id="AppMetadata" />
|
||
</Feature>
|
||
|
||
<!-- 💿 Media -->
|
||
<Media Id="1" Cabinet="embedded.cab" EmbedCab="yes" />
|
||
|
||
</Package>
|
||
</Wix>
|