summaryrefslogtreecommitdiffstats
path: root/packaging/wix/Wireshark.wxs
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/wix/Wireshark.wxs')
-rw-r--r--packaging/wix/Wireshark.wxs58
1 files changed, 58 insertions, 0 deletions
diff --git a/packaging/wix/Wireshark.wxs b/packaging/wix/Wireshark.wxs
new file mode 100644
index 00000000..8421bf0d
--- /dev/null
+++ b/packaging/wix/Wireshark.wxs
@@ -0,0 +1,58 @@
+<?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, e.g. REINSTALLMODE + AllowDowngrades:
+ https://stackoverflow.com/questions/1544990/wix-major-upgrade-doesnt-completely-install-app-on-downgrade
+ -->
+ <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>