bundleWithWinfsp.wxs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!-- For Built in variables, see https://wixtoolset.org/docs/tools/burn/builtin-variables/-->
  2. <ns0:Wix xmlns:ns0="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
  3. <ns0:Bundle Name="$(var.BundleName)"
  4. UpgradeCode="29eea626-2e5b-4449-b5f8-4602925ddf7b"
  5. Version="$(var.BundleVersion)"
  6. Manufacturer="$(var.BundleVendor)"
  7. AboutUrl="$(var.AboutUrl)"
  8. HelpUrl="$(var.HelpUrl)"
  9. UpdateUrl="$(var.UpdateUrl)"
  10. Copyright="$(var.BundleCopyright)"
  11. IconSourceFile="bundle\resources\Cryptomator.ico">
  12. <!-- detect outdated WinFsp installations -->
  13. <util:ProductSearch Variable="InstalledLegacyWinFspVersion" Result="version" UpgradeCode="82F812D9-4083-4EF1-8BC8-0F1EDA05B46B" />
  14. <ns0:BootstrapperApplication>
  15. <bal:WixStandardBootstrapperApplication LicenseFile="bundle\resources\license.rtf" ShowVersion="yes"
  16. SuppressOptionsUI="yes"
  17. Theme="rtfLargeLicense"
  18. ThemeFile="bundle\resources\customBootstrapperTheme.xml"
  19. LocalizationFile="bundle\resources\customBootstrapperTheme.wxl"
  20. LogoSideFile="bundle\resources\logoSide.png"
  21. LogoFile="bundle\resources\logo.png"
  22. LaunchTarget="[ProgramFiles64Folder]\$(var.BundleName)\$(var.BundleName).exe" />
  23. <ns0:Payload SourceFile="bundle\resources\logoSide.png"/>
  24. <!-- Required due to https://github.com/wixtoolset/issues/issues/8104 -->
  25. <ns0:Payload Name="Cryptobot.ico" SourceFile="bundle\resources\Cryptomator.ico"/>
  26. </ns0:BootstrapperApplication>
  27. <ns0:Chain>
  28. <ns0:ExePackage Cache="keep" PerMachine="yes" Permanent="no" SourceFile="bundle\resources\winfsp-uninstaller.exe" DisplayName="Removing outdated WinFsp Driver" Description="Executable to remove old winfsp" DetectCondition="false" InstallCondition="(InstalledLegacyWinFspVersion &lt;&gt; v0.0.0.0) AND ((WixBundleAction = 7) OR (WixBundleAction = 5))" UninstallArguments="">
  29. <ns0:CommandLine Condition="WixBundleUILevel &lt;= 3" InstallArgument="-q -l &quot;[WixBundleLog].winfsp-uninstaller.log&quot;" RepairArgument="-q" UninstallArgument="-s" />
  30. <!-- XML allows line breaks in attributes, hence keep the line breaks here -->
  31. <ns0: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.
  32. Do you want to continue?&quot;" RepairArgument="-q" UninstallArgument="-s" />
  33. <ns0:ExitCode Behavior="success" Value="0" />
  34. <ns0:ExitCode Behavior="success" Value="1" />
  35. <ns0:ExitCode Behavior="error" Value="2" />
  36. <ns0:ExitCode Behavior="error" Value="3" />
  37. <ns0:ExitCode Behavior="forceReboot" Value="4" />
  38. <ns0:ExitCode Behavior="success" Value="5" />
  39. </ns0:ExePackage>
  40. <ns0:MsiPackage SourceFile="bundle\resources\Cryptomator.msi" CacheId="cryptomator-bundle-cryptomator" Visible="no" />
  41. <ns0:MsiPackage SourceFile="bundle\resources\winfsp.msi" CacheId="cryptomator-bundle-winfsp" Visible="yes" Permanent="yes" />
  42. </ns0:Chain>
  43. </ns0:Bundle>
  44. </ns0:Wix>