mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
[Installer] Check if swift application is running before (un-)installation
ref T33
This commit is contained in:
committed by
Klaus Basan
parent
8ed01b0259
commit
8a4b101393
@@ -24,6 +24,49 @@
|
|||||||
</include>
|
</include>
|
||||||
</componentList>
|
</componentList>
|
||||||
<preInstallationActionList>
|
<preInstallationActionList>
|
||||||
|
<actionGroup>
|
||||||
|
<explanation>Check that no swift applications running</explanation>
|
||||||
|
<actionList>
|
||||||
|
<showWarning>
|
||||||
|
<ruleEvaluationLogic>or</ruleEvaluationLogic>
|
||||||
|
<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>
|
||||||
|
<ruleGroup>
|
||||||
|
<ruleEvaluationLogic>or</ruleEvaluationLogic>
|
||||||
|
<ruleList>
|
||||||
|
<processTest>
|
||||||
|
<logic>is_running</logic>
|
||||||
|
<name>swiftcore.exe</name>
|
||||||
|
</processTest>
|
||||||
|
<processTest>
|
||||||
|
<logic>is_running</logic>
|
||||||
|
<name>swiftguistd.exe</name>
|
||||||
|
</processTest>
|
||||||
|
<processTest>
|
||||||
|
<logic>is_running</logic>
|
||||||
|
<name>swiftlauncher.exe</name>
|
||||||
|
</processTest>
|
||||||
|
<processTest>
|
||||||
|
<logic>is_running</logic>
|
||||||
|
<name>swiftdata.exe</name>
|
||||||
|
</processTest>
|
||||||
|
</ruleList>
|
||||||
|
</ruleGroup>
|
||||||
|
<platformTest>
|
||||||
|
<type>windows</type>
|
||||||
|
</platformTest>
|
||||||
|
</ruleList>
|
||||||
|
</ruleGroup>
|
||||||
|
</ruleList>
|
||||||
|
</actionGroup>
|
||||||
<!-- 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>
|
||||||
@@ -144,6 +187,49 @@
|
|||||||
</writeFile>
|
</writeFile>
|
||||||
</postInstallationActionList>
|
</postInstallationActionList>
|
||||||
<preUninstallationActionList>
|
<preUninstallationActionList>
|
||||||
|
<actionGroup>
|
||||||
|
<explanation>Check that no swift applications running</explanation>
|
||||||
|
<actionList>
|
||||||
|
<showWarning>
|
||||||
|
<ruleEvaluationLogic>or</ruleEvaluationLogic>
|
||||||
|
<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>
|
||||||
|
<ruleGroup>
|
||||||
|
<ruleEvaluationLogic>or</ruleEvaluationLogic>
|
||||||
|
<ruleList>
|
||||||
|
<processTest>
|
||||||
|
<logic>is_running</logic>
|
||||||
|
<name>swiftcore.exe</name>
|
||||||
|
</processTest>
|
||||||
|
<processTest>
|
||||||
|
<logic>is_running</logic>
|
||||||
|
<name>swiftguistd.exe</name>
|
||||||
|
</processTest>
|
||||||
|
<processTest>
|
||||||
|
<logic>is_running</logic>
|
||||||
|
<name>swiftlauncher.exe</name>
|
||||||
|
</processTest>
|
||||||
|
<processTest>
|
||||||
|
<logic>is_running</logic>
|
||||||
|
<name>swiftdata.exe</name>
|
||||||
|
</processTest>
|
||||||
|
</ruleList>
|
||||||
|
</ruleGroup>
|
||||||
|
<platformTest>
|
||||||
|
<type>windows</type>
|
||||||
|
</platformTest>
|
||||||
|
</ruleList>
|
||||||
|
</ruleGroup>
|
||||||
|
</ruleList>
|
||||||
|
</actionGroup>
|
||||||
<deleteFile>
|
<deleteFile>
|
||||||
<path>${installdir}/update.ini</path>
|
<path>${installdir}/update.ini</path>
|
||||||
</deleteFile>
|
</deleteFile>
|
||||||
|
|||||||
Reference in New Issue
Block a user