aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/wix/Wireshark.wxs
blob: 98e35335d270ac7903f15e0ae40b3b459d7e4c9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <?define WiresharkFileAssociation = "wireshark-capture-file" ?>

  <!-- The path to the installer's End-User License Agreement, displayed during installation -->
  <?define EulaPath="$(var.AssetDir)\COPYING.rtf"?>
  <!-- Windows 8 and later supports PNG. Until then we use cave paintings^W^W BMP. -->
  <?define BannerImagePath="$(var.AssetDir)\banner.bmp"?>
  <?define DialogImagePath="$(var.AssetDir)\dialog.bmp"?>
  <!-- Use the application icon in "Programs and Features"
       This is apparently stored uncompressed, i.e. we should use a dedicated
       .ico file instead of pointing to wireshark.exe.
  -->
  <?define ProgramsFeaturesIconPath="$(var.IconDir)\wireshark.ico"?>
  <Product Id="*" Name="$(var.WiresharkName)" Language="1033" Version="$(var.WiresharkVersion)" Manufacturer="The Wireshark developer community, https://www.wireshark.org/" UpgradeCode="0d67aace-269a-4264-81a3-da8055c1c79c">
        <Package InstallerVersion="500" Compressed="yes" InstallScope="perMachine" />
    <!-- Values for Additional Tasks -->
    <Property Id="WIRESHARK_START_MENU" Value="1" Secure="yes"/>
    <Property Id="WIRESHARK_DESKTOP_ICON" Secure="yes"/>
    <Property Id="WIRESHARK_QUICK_LAUNCH_ICON" Value="1" Secure="yes" />
    <Property Id="WIRESHARK_LEGACY_START_MENU" Value="1" Secure="yes" />
    <Property Id="WIRESHARK_LEGACY_DESKTOP_ICON" Secure="yes"/>
    <Property Id="WIRESHARK_LEGACY_QUICK_LAUNCH_ICON" Value="1" Secure="yes" />
    <Property Id="WIRESHARK_FILE_EXTENSIONS" Value="1"/>

    <!-- We set AllowSameVersionUpgrade so that automated builds (which
         only differ by micro version numbers) won't get installed side
         by side. The WiX documentation seems to warn against this, so we
         might want to find a better fix.
    -->
    <MajorUpgrade
      DowngradeErrorMessage="A newer version of $(var.WiresharkName) is already installed."
      AllowSameVersionUpgrades="yes"
    />


    <MediaTemplate EmbedCab="yes" CompressionLevel="high" />

    <!-- Include the prerequisites, by referencing the placeholder property -->
    <PropertyRef Id="IncludePrerequisites" />

    <!-- Include the top-most parent feature -->
    <FeatureRef Id="Fe.Wireshark" />

    <!-- Include the installer UI definition -->
    <UIRef Id="UI.Wireshark"/>
  </Product>

  <?include InputPaths.wxi ?>
  <?include DirectoryStructure.wxi ?>
  <?include Prerequisites.wxi ?>
  <?include ComponentGroups.wxi ?>
  <?include Plugins.wxi ?>
  <?include Features.wxi ?>
  <?include UserInterface.wxi ?>
</Wix>