bundleWithWinfsp.wxs 4.0 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. <!-- 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. <ExePackage Cache="yes" PerMachine="yes" Permanent="no"
  30. SourceFile="resources\winfsp-uninstaller.exe"
  31. DisplayName="Removing outdated WinFsp Driver"
  32. Description="Executable to remove old winfsp"
  33. DetectCondition="false"
  34. InstallCondition="(InstalledLegacyWinFspVersion &lt;&gt; v0.0.0.0) AND ((WixBundleAction = 7) OR (WixBundleAction = 5))">
  35. <CommandLine Condition="WixBundleUILevel &lt;= 3" InstallArgument="-q -l &quot;[WixBundleLog].winfsp-uninstaller.log&quot;" RepairArgument="-q" UninstallArgument="-s" />
  36. <!-- XML allows line breaks in attributes, hence keep the line breaks here -->
  37. <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.
  38. Do you want to continue?&quot;" RepairArgument="-q" UninstallArgument="-s" />
  39. <ExitCode Behavior="success" Value="0"/>
  40. <ExitCode Behavior="success" Value="1"/>
  41. <ExitCode Behavior="error" Value="2"/>
  42. <ExitCode Behavior="error" Value="3"/>
  43. <ExitCode Behavior="forceReboot" Value="4"/>
  44. <ExitCode Behavior="success" Value="5"/>
  45. </ExePackage>
  46. <!-- see https://wixtoolset.org/documentation/manual/v3/xsd/wix/msipackage.html-->
  47. <MsiPackage
  48. SourceFile="resources\Cryptomator.msi"
  49. CacheId="cryptomator-bundle-cryptomator"
  50. DisplayInternalUI="no"
  51. Visible="no"/>
  52. <MsiPackage
  53. SourceFile="resources\winfsp.msi"
  54. CacheId="cryptomator-bundle-winfsp"
  55. Visible="yes"
  56. DisplayInternalUI="no"
  57. Permanent="yes"/>
  58. </Chain>
  59. </Bundle>
  60. </Wix>