bundleWithWinfsp.wxs 3.5 KB

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