[installer] Change "swift is still running" to an abort/retry dialog

This commit is contained in:
Mat Sutcliffe
2019-10-31 20:02:49 +00:00
parent c1a0c7293d
commit 0dfebcf623

View File

@@ -24,20 +24,14 @@
</include> </include>
</componentList> </componentList>
<preInstallationActionList> <preInstallationActionList>
<actionGroup> <validatedActionGroup>
<explanation>Check that no swift applications running</explanation> <explanation>Check that no swift applications running</explanation>
<text>It seems that some swift application is still in use,
please close it and click Retry.</text>
<severity>warning</severity>
<actionList> <actionList>
<showWarning> <throwError>
<ruleEvaluationLogic>or</ruleEvaluationLogic> <text>Swift is still running. User aborted installation.</text>
<text>It seems that some swift application is still in use, please close
it and relaunch the installer.</text>
</showWarning>
<exit>
<exitCode>1</exitCode>
</exit>
</actionList>
<ruleList>
<ruleGroup>
<ruleList> <ruleList>
<ruleGroup> <ruleGroup>
<ruleEvaluationLogic>or</ruleEvaluationLogic> <ruleEvaluationLogic>or</ruleEvaluationLogic>
@@ -64,9 +58,9 @@ it and relaunch the installer.</text>
<type>windows</type> <type>windows</type>
</platformTest> </platformTest>
</ruleList> </ruleList>
</ruleGroup> </throwError>
</ruleList> </actionList>
</actionGroup> </validatedActionGroup>
<!-- TODO Linux/MacOS: Save and load last install dir --> <!-- TODO Linux/MacOS: Save and load last install dir -->
<setInstallerVariable> <setInstallerVariable>
<name>installBaseDir</name> <name>installBaseDir</name>
@@ -216,20 +210,14 @@ it and relaunch the installer.</text>
</runProgram> </runProgram>
</postInstallationActionList> </postInstallationActionList>
<preUninstallationActionList> <preUninstallationActionList>
<actionGroup> <validatedActionGroup>
<explanation>Check that no swift applications running</explanation> <explanation>Check that no swift applications running</explanation>
<text>It seems that some swift application is still in use,
please close it and click Retry.</text>
<severity>warning</severity>
<actionList> <actionList>
<showWarning> <throwError>
<ruleEvaluationLogic>or</ruleEvaluationLogic> <text>Swift is still running. User aborted installation.</text>
<text>It seems that some swift application is still in use, please close
it and relaunch the uninstaller.</text>
</showWarning>
<exit>
<exitCode>1</exitCode>
</exit>
</actionList>
<ruleList>
<ruleGroup>
<ruleList> <ruleList>
<ruleGroup> <ruleGroup>
<ruleEvaluationLogic>or</ruleEvaluationLogic> <ruleEvaluationLogic>or</ruleEvaluationLogic>
@@ -256,9 +244,9 @@ it and relaunch the uninstaller.</text>
<type>windows</type> <type>windows</type>
</platformTest> </platformTest>
</ruleList> </ruleList>
</ruleGroup> </throwError>
</ruleList> </actionList>
</actionGroup> </validatedActionGroup>
<runProgram> <runProgram>
<program>launchctl</program> <program>launchctl</program>
<programArguments>remove org.freedesktop.dbus-session.plist</programArguments> <programArguments>remove org.freedesktop.dbus-session.plist</programArguments>