bundleWithWinfsp.wxs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0"?>
  2. <!-- For Built in variables, see https://wixtoolset.org/docs/tools/burn/builtin-variables/-->
  3. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
  4. <!-- see https://wixtoolset.org/documentation/manual/v3/xsd/wix/bundle.html-->
  5. <!-- Attributes explicitly not used:
  6. Condition - the single msi files have their own install conditions, no need to copy them here
  7. -->
  8. <Bundle Name="Cryptomator" UpgradeCode="29eea626-2e5b-4449-b5f8-4602925ddf7b" Version="$(var.BundleVersion)" Manufacturer="$(var.BundleVendor)"
  9. AboutUrl="$(var.AboutUrl)" HelpUrl="$(var.HelpUrl)" UpdateUrl="$(var.UpdateUrl)" Copyright="$(var.BundleCopyright)" IconSourceFile="bundle\resources\Cryptomator.ico">
  10. <!-- detect outdated WinFsp installations -->
  11. <util:ProductSearch
  12. Variable="InstalledLegacyWinFspVersion"
  13. Result="version"
  14. UpgradeCode="82F812D9-4083-4EF1-8BC8-0F1EDA05B46B"
  15. />
  16. <!-- for definition of the standard themes, see https://github.com/wixtoolset/wix3/blob/master/src/ext/BalExtension/wixstdba/Resources/-->
  17. <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLargeLicense">
  18. <!-- see https://wixtoolset.org/documentation/manual/v3/xsd/bal/wixstandardbootstrapperapplication.html -->
  19. <!-- Possible Attributes: LaunchTarget -->
  20. <bal:WixStandardBootstrapperApplication
  21. LicenseFile="bundle\resources\license.rtf"
  22. ShowVersion="yes"
  23. SuppressOptionsUI="yes"
  24. ThemeFile="bundle\customBootstrapperTheme.xml"
  25. LocalizationFile="bundle\customBootstrapperTheme.wxl"
  26. LogoFile="bundle\resources\logo.png"
  27. />
  28. <Payload SourceFile="bundle\resources\logoSide.png" />
  29. </BootstrapperApplicationRef>
  30. <Chain>
  31. <ExePackage Cache="yes" PerMachine="yes" Vital="yes" Permanent="no"
  32. SourceFile="resources\winfsp-uninstaller.exe"
  33. DisplayName="Removing outdated WinFsp Driver"
  34. Description="Workaround to remove old winfsp"
  35. DetectCondition="false"
  36. InstallCondition="InstalledLegacyWinFspVersion &lt;&gt; v0.0.0.0"
  37. >
  38. <CommandLine Condition="WixBundleUILevel &lt;= 3" InstallArgument="-q" />
  39. <CommandLine Condition="WixBundleUILevel &gt; 3" InstallArgument="-t &quot;Cryptomator Installer&quot; -m &quot;Cryptomator requires a newer version of the WinFsp driver. The installer will now uninstall WinFsp, reboot, and afterwards proceed with this installation. Do you want to continue?&quot;" />
  40. <ExitCode Behavior="forceReboot" Value="0"/>
  41. <ExitCode Behavior="success" Value="1"/>
  42. <ExitCode Behavior="error" Value="2"/>
  43. <ExitCode Behavior="error" Value="3"/>
  44. </ExePackage>
  45. <!-- see https://wixtoolset.org/documentation/manual/v3/xsd/wix/msipackage.html-->
  46. <MsiPackage
  47. SourceFile="resources\Cryptomator.msi"
  48. CacheId="cryptomator-bundle-cryptomator"
  49. DisplayInternalUI="no"
  50. Visible="no"
  51. />
  52. <MsiPackage
  53. SourceFile="resources\winfsp.msi"
  54. CacheId="cryptomator-bundle-winfsp"
  55. Visible="yes"
  56. DisplayInternalUI="no"
  57. Permanent="yes"
  58. />
  59. </Chain>
  60. </Bundle>
  61. </Wix>