浏览代码

only execute winfsp-uninstaller on install or repair

Armin Schrenk 1 年之前
父节点
当前提交
06f288ef76
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dist/win/bundle/bundleWithWinfsp.wxs

+ 1 - 1
dist/win/bundle/bundleWithWinfsp.wxs

@@ -36,7 +36,7 @@
               DisplayName="Removing outdated WinFsp Driver"
               Description="Executable to remove old winfsp"
               DetectCondition="false"
-              InstallCondition="InstalledLegacyWinFspVersion <> v0.0.0.0">
+              InstallCondition="(InstalledLegacyWinFspVersion <> v0.0.0.0) AND ((WixBundleAction = 7) OR (WixBundleAction = 5))">
                 <CommandLine Condition="WixBundleUILevel &lt;= 3" InstallArgument="-q" RepairArgument="-q" UninstallArgument="-s" />
                 <!-- XML allows line breaks in attributes, hence keep the line breaks here -->
                 <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.