diff options
Diffstat (limited to 'packaging/wix')
-rw-r--r-- | packaging/wix/Prerequisites.wxi | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/packaging/wix/Prerequisites.wxi b/packaging/wix/Prerequisites.wxi index 49de0c53f3..c50b59afb8 100644 --- a/packaging/wix/Prerequisites.wxi +++ b/packaging/wix/Prerequisites.wxi @@ -2,6 +2,10 @@ <Include xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"> <!-- Check for required dependencies here --> + <!-- + You can debug the logic below (and lots of other things) by running + msiexec /i packaging\wix\Wireshark-xxx.msi /l*v msilog.txt + --> <Fragment> <!-- Do not remove: The contents of this "fragment" will not be included in the project, @@ -49,7 +53,6 @@ </RegistrySearch> </Property> - <!-- XXX It looks like messages are compiled before properties are evaluated. <Property Id="NSIS_DISPLAY_NAME_32" Value="Wireshark" Secure="yes"> <RegistrySearch Id='NsisDisplayNameRegistrySearch32' Type='raw' @@ -59,25 +62,10 @@ Win64='no'/> </Property> - <Condition Message="[NSIS_DISPLAY_NAME_32] is installed in [NSIS_INSTALL_LOCATION_32]. Please uninstall it using Programs and Features."> - <![CDATA[Installed OR NSIS_INSTALL_LOCATION_32]]> + <Condition Message="[NSIS_DISPLAY_NAME_32] was installed in [NSIS_INSTALL_LOCATION_32] using the .exe installer. Please uninstall it using Programs and Features."> + <![CDATA[Installed OR NOT NSIS_INSTALL_LOCATION_32]]> </Condition> - --> - <Condition Message="Wireshark was installed using the .exe installer. Please uninstall it using Programs and Features."> - <![CDATA[Installed OR NSIS_INSTALL_LOCATION_32]]> - </Condition> - - <Property Id="NSIS_DISPLAY_NAME_64" Value="Wireshark" Secure="yes"> - <RegistrySearch Id='NsisDisplayNameRegistrySearch64' - Type='raw' - Root='HKLM' - Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Wireshark' - Name='DisplayName' - Win64='yes'/> - </Property> - - <!-- XXX It looks like messages are compiled before properties are evaluated. <Property Id="NSIS_INSTALL_LOCATION_64" Secure="yes"> <RegistrySearch Id='NsisInstallRegistrySearch64' Type='raw' @@ -89,13 +77,17 @@ </RegistrySearch> </Property> - <Condition Message="[NSIS_DISPLAY_NAME_64] is installed in [NSIS_INSTALL_LOCATION_64]. Please uninstall it using Programs and Features."> - <![CDATA[Installed OR NSIS_INSTALL_LOCATION_64]]> - </Condition> - --> + <Property Id="NSIS_DISPLAY_NAME_64" Value="Wireshark" Secure="yes"> + <RegistrySearch Id='NsisDisplayNameRegistrySearch64' + Type='raw' + Root='HKLM' + Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Wireshark' + Name='DisplayName' + Win64='yes'/> + </Property> - <Condition Message="Wireshark was installed using the .exe installer. Please uninstall it using Programs and Features."> - <![CDATA[Installed OR NSIS_INSTALL_LOCATION_64]]> + <Condition Message="[NSIS_DISPLAY_NAME_64] was installed in [NSIS_INSTALL_LOCATION_64] using the .exe installer. Please uninstall it using Programs and Features."> + <![CDATA[Installed OR NOT NSIS_INSTALL_LOCATION_64]]> </Condition> </Fragment> |