bundleWithWinfsp.wxs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. <!-- for definition of the standard themes, see https://github.com/wixtoolset/wix3/blob/master/src/ext/BalExtension/wixstdba/Resources/-->
  16. <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLargeLicense">
  17. <!-- see https://wixtoolset.org/documentation/manual/v3/xsd/bal/wixstandardbootstrapperapplication.html -->
  18. <!-- Possible Attributes: LaunchTarget -->
  19. <bal:WixStandardBootstrapperApplication
  20. LicenseFile="bundle\resources\license.rtf"
  21. ShowVersion="yes"
  22. SuppressOptionsUI="yes"
  23. ThemeFile="bundle\customBootstrapperTheme.xml"
  24. LocalizationFile="bundle\customBootstrapperTheme.wxl"
  25. LogoFile="bundle\resources\logo.png"/>
  26. <Payload SourceFile="bundle\resources\logoSide.png" />
  27. </BootstrapperApplicationRef>
  28. <Chain>
  29. <!-- WixBundleActions are defined in the BOOTSTRAPPER_ACTION enum, see https://github.com/wixtoolset/wix3/blob/473562c0c3904216f2b6963c0ad244a8cc41e9ee/src/burn/inc/IBootstrapperEngine.h#L15 -->
  30. <ExePackage Cache="yes" PerMachine="yes" Permanent="no"
  31. SourceFile="resources\winfsp-uninstaller.exe"
  32. DisplayName="Removing outdated WinFsp Driver"
  33. Description="Executable to remove old winfsp"
  34. DetectCondition="false"
  35. InstallCondition="(InstalledLegacyWinFspVersion &lt;&gt; v0.0.0.0) AND ((WixBundleAction = 7) OR (WixBundleAction = 5))">
  36. <CommandLine Condition="WixBundleUILevel &lt;= 3" InstallArgument="-q -l &quot;[WixBundleLog].winfsp-uninstaller.log&quot;" RepairArgument="-q" UninstallArgument="-s" />
  37. <!-- XML allows line breaks in attributes, hence keep the line breaks here -->
  38. <CommandLine Condition="WixBundleUILevel &gt; 3" InstallArgument="-l &quot;[WixBundleLog].winfsp-uninstaller.log&quot; -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.
  39. Do you want to continue?&quot;" RepairArgument="-q" UninstallArgument="-s" />
  40. <ExitCode Behavior="success" Value="0"/>
  41. <ExitCode Behavior="success" Value="1"/>
  42. <ExitCode Behavior="error" Value="2"/>
  43. <ExitCode Behavior="error" Value="3"/>
  44. <ExitCode Behavior="forceReboot" Value="4"/>
  45. <ExitCode Behavior="success" Value="5"/>
  46. </ExePackage>
  47. <!-- see https://wixtoolset.org/documentation/manual/v3/xsd/wix/msipackage.html-->
  48. <MsiPackage
  49. Cache="yes"
  50. SourceFile="resources\Cryptomator.msi"
  51. CacheId="cryptomator-bundle-cryptomator"
  52. DisplayInternalUI="no"
  53. Visible="no"/>
  54. <MsiPackage
  55. Cache="yes"
  56. SourceFile="resources\winfsp.msi"
  57. CacheId="cryptomator-bundle-winfsp"
  58. Visible="yes"
  59. DisplayInternalUI="no"
  60. Permanent="yes"/>
  61. </Chain>
  62. </Bundle>
  63. </Wix>