1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <Include xmlns:
netfx=
"http://schemas.microsoft.com/wix/NetFxExtension">
4 <!-- Check for required dependencies here -->
6 You can debug the logic below (and lots of other things) by running
7 msiexec /i packaging\wix\Wireshark-xxx.msi /l*v msilog.txt
11 <!-- Do not remove: The contents of this "fragment" will not be included in the project,
12 unless we reference at least one item defined within it.
13 This "IncludePrerequisites" property is referenced in the "Product" element,
14 to ensure the entire fragment is included. -->
15 <Property Id=
"IncludePrerequisites">1</Property>
17 <!-- This should match the following:
18 - The NTDDI_VERSION and _WIN32_WINNT parts of cmakeconfig.h.in
19 - The <compatibility><application> section in image\wireshark.exe.manifest.in
20 - The WinVer parts of packaging\nsis\wireshark.nsi
22 <Condition Message=
"Windows 2000 is no longer supported. Please install $(var.WiresharkName) 1.2 or 1.0 instead.">
23 <![CDATA[Installed OR (VersionNT <
500) OR (VersionNT
> 500)]]
>
26 <Condition Message=
"WindowsXP is no longer supported. Please install $(var.WiresharkName) 1.12 or 1.10 instead.">
27 <![CDATA[Installed OR (VersionNT <
501) OR (VersionNT
> 501)]]
>
30 <Condition Message=
"Windows Server 2003 is no longer supported. Please install $(var.WiresharkName) 1.12 or 1.10 instead.">
31 <![CDATA[Installed OR (VersionNT <
502) OR (VersionNT
> 502)]]
>
34 <Condition Message=
"Windows Vista and Server 2008 are no longer supported. Please install $(var.WiresharkName) 2.2 instead.">
35 <![CDATA[Installed OR (VersionNT <
600) OR (VersionNT
> 600)]]
>
38 <Condition Message=
"Windows 7, 8, 8.1, Server 2008R2, and Server 2012 are no longer supported. Please install $(var.WiresharkName) 4.0 instead.">
39 <![CDATA[Installed OR (VersionNT <
601) OR (VersionNT
> 602)]]
>
42 <Condition Message=
"$(var.WiresharkName)$(var.WiresharkVersion) is only supported on Windows 10, Windows Server 2016, or higher.">
43 <![CDATA[Installed OR (VersionNT
>=
603)]]
>
47 NSIS package uninstallation. The NSIS installer writes a bunch of keys to
48 'HKEY_LOCAL_MACHINE\SOFTWARE\{Wow6432Node\,}Microsoft\Windows\CurrentVersion\Uninstall\Wireshark'.
49 See the 'WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}"' statements
50 starting at around line 780 in nsis\wireshark.nsi for a complete list.
52 For now look for 'InstallLocation' and cancel the installation if
53 it's defined and exists. Next steps:
54 - look for 'QuietUninstallString' and offer to run it.
55 - Show properties in condition messages as described below.
58 <Property Id=
"NSIS_INSTALL_LOCATION_32" Secure=
"yes">
59 <RegistrySearch Id='NsisInstallRegistrySearch32'
62 Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Wireshark'
63 Name='InstallLocation'
65 <DirectorySearch Id='NsisInstallDirectorySearch32' AssignToProperty='yes'
/>
69 <Property Id=
"NSIS_DISPLAY_NAME_32" Value=
"Wireshark" Secure=
"yes">
70 <RegistrySearch Id='NsisDisplayNameRegistrySearch32'
73 Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Wireshark'
78 <Condition Message=
"[NSIS_DISPLAY_NAME_32] was installed in [NSIS_INSTALL_LOCATION_32] using the .exe installer. Please uninstall it using Programs and Features.">
79 <![CDATA[Installed OR NOT NSIS_INSTALL_LOCATION_32]]
>
82 <Property Id=
"NSIS_INSTALL_LOCATION_64" Secure=
"yes">
83 <RegistrySearch Id='NsisInstallRegistrySearch64'
86 Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Wireshark'
87 Name='InstallLocation'
89 <DirectorySearch Id='NsisInstallDirectorySearch64' AssignToProperty='yes'
/>
93 <Property Id=
"NSIS_DISPLAY_NAME_64" Value=
"Wireshark" Secure=
"yes">
94 <RegistrySearch Id='NsisDisplayNameRegistrySearch64'
97 Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Wireshark'
102 <Condition Message=
"[NSIS_DISPLAY_NAME_64] was installed in [NSIS_INSTALL_LOCATION_64] using the .exe installer. Please uninstall it using Programs and Features.">
103 <![CDATA[Installed OR NOT NSIS_INSTALL_LOCATION_64]]
>