bundleWithWinfsp.wxs 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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" Permanent="no"
  32. SourceFile="resources\winfsp-uninstaller.exe"
  33. DisplayName="Removing outdated WinFsp Driver"
  34. Description="Executable 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" RepairArgument="-q" UninstallArgument="-s" />
  39. <!-- XML allows line breaks in attributes, hence keep the line breaks here -->
  40. <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, possibly reboot, and afterwards proceed with the installation.
  41. Do you want to continue?&quot;" RepairArgument="-q" UninstallArgument="-s" />
  42. <ExitCode Behavior="success" Value="0"/>
  43. <ExitCode Behavior="success" Value="1"/>
  44. <ExitCode Behavior="error" Value="2"/>
  45. <ExitCode Behavior="error" Value="3"/>
  46. <ExitCode Behavior="forceReboot" Value="4"/>
  47. <ExitCode Behavior="success" Value="5"/>
  48. </ExePackage>
  49. <!-- see https://wixtoolset.org/documentation/manual/v3/xsd/wix/msipackage.html-->
  50. <MsiPackage
  51. SourceFile="resources\Cryptomator.msi"
  52. CacheId="cryptomator-bundle-cryptomator"
  53. DisplayInternalUI="no"
  54. Visible="no"
  55. />
  56. <MsiPackage
  57. SourceFile="resources\winfsp.msi"
  58. CacheId="cryptomator-bundle-winfsp"
  59. Visible="yes"
  60. DisplayInternalUI="no"
  61. Permanent="yes"
  62. />
  63. </Chain>
  64. </Bundle>
  65. </Wix>