aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/wix/Prerequisites.wxi
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-04-07 19:03:51 -0400
committerMichael Mann <mmann78@netscape.net>2016-05-11 13:09:17 +0000
commitc34996f970ab003bb8566825b38834de00f5159e (patch)
treefda0c581d87baf3cb0264affaaeb861354f66311 /packaging/wix/Prerequisites.wxi
parent980f58bc277df178a15b4c730fb1b0cbd462da0b (diff)
Create a Wix Installer
This is intended to replace the NSIS installer for Windows. It does not include installing WinPcap or USBPcap. From the research I've done, it seems to make more sense to "bundle" them with Wix ("wrapper" installer that would include Wireshark, WinPcap and USBPcap installers together) TODO: 1. Customize installer with Wireshark graphics 2. Better handling flexibility of installing VC CRT Merge module (need build script to provide appropriate macros). Something like (or modifying existing) FindMSVC_REDIST.cmake. 3. Use Wireshark UpgradeProductCode for install/uninstall. Previous NSIS installer did not have an upgrade code, so there are some backwards compatibility concerns. 4. Uninstall considerations (removing whole directories - plugins, configuration profiles?). NSIS needed to do more things "manually" than Wix does by default. Need to merge as best as possible to handle backwards compatibility. Many thanks to Brian Pratt for all the Wix help. Change-Id: Ib50780214fc7707ba2a46fd96ba8797a1763fa0c Reviewed-on: https://code.wireshark.org/review/14858 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'packaging/wix/Prerequisites.wxi')
-rw-r--r--packaging/wix/Prerequisites.wxi30
1 files changed, 30 insertions, 0 deletions
diff --git a/packaging/wix/Prerequisites.wxi b/packaging/wix/Prerequisites.wxi
new file mode 100644
index 0000000000..820d167b87
--- /dev/null
+++ b/packaging/wix/Prerequisites.wxi
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Include xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
+
+ <!-- Check for required dependencies here -->
+ <Fragment>
+
+ <!-- Do not remove: The contents of this "fragment" will not be included in the project,
+ unless we reference at least one item defined within it.
+ This "IncludePrerequisites" property is referenced in the "Product" element,
+ to ensure the entire fragment is included. -->
+ <Property Id="IncludePrerequisites">1</Property>
+
+ <Condition Message="Windows 2000 is no longer supported. Please install $(var.WiresharkName) 1.2 or 1.0 instead.">
+ <![CDATA[Installed OR (VersionNT < 500) OR (VersionNT > 500)]]>
+ </Condition>
+
+ <Condition Message="WindowsXP is no longer supported. Please install $(var.WiresharkName) 1.12 or 1.10 instead.">
+ <![CDATA[Installed OR (VersionNT < 501) OR (VersionNT > 501)]]>
+ </Condition>
+
+ <Condition Message="Windows Server 2003 is no longer supported. Please install $(var.WiresharkName) 1.12 or 1.10 instead.">
+ <![CDATA[Installed OR (VersionNT < 502) OR (VersionNT > 502)]]>
+ </Condition>
+
+ <Condition Message="$(var.WiresharkName)$(var.WiresharkVersion) is only supported on Windows Vista, Windows Server 2008, or higher.">
+ <![CDATA[Installed OR (VersionNT >= 600)]]>
+ </Condition>
+
+ </Fragment>
+</Include>