|
|
@ -109,6 +109,14 @@ |
|
|
|
</component> |
|
|
|
</componentList> |
|
|
|
<preInstallationActionList> |
|
|
|
<setInstallerVariable> |
|
|
|
<name>previous_installation_exists</name> |
|
|
|
<value>1</value> |
|
|
|
<ruleList> |
|
|
|
<fileTest condition="exists" path="/etc/${project.vendor}-${project.shortName}.ini"/> |
|
|
|
</ruleList> |
|
|
|
</setInstallerVariable> |
|
|
|
|
|
|
|
<!-- Retreive values about previous installer so we can uninstall it --> |
|
|
|
<foreach> |
|
|
|
<values>version oldVersion installdir oldInstalldir</values> |
|
|
@ -121,7 +129,11 @@ |
|
|
|
<section>details</section> |
|
|
|
<variable>${variable}</variable> |
|
|
|
<ruleList> |
|
|
|
<fileTest condition="exists" path="/etc/${project.vendor}-${project.shortName}.ini"/> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${previous_installation_exists}</value1> |
|
|
|
<value2>1</value2> |
|
|
|
</compareValues> |
|
|
|
</ruleList> |
|
|
|
</iniFileGet> |
|
|
|
</actionList> |
|
|
@ -135,11 +147,90 @@ |
|
|
|
<program>${oldInstalldir}/${uninstallerName}</program> |
|
|
|
<programArguments>--mode unattended</programArguments> |
|
|
|
<ruleList> |
|
|
|
<fileExists> |
|
|
|
<path>${oldInstalldir}/${uninstallerName}</path> |
|
|
|
</fileExists> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${previous_installation_exists}</value1> |
|
|
|
<value2>1</value2> |
|
|
|
</compareValues> |
|
|
|
</ruleList> |
|
|
|
</runProgram> |
|
|
|
<deleteFile> |
|
|
|
<explanation>Deleting user data</explanation> |
|
|
|
<path>${user_home_directory}/.iguana</path> |
|
|
|
<progressText>Deleting user data</progressText> |
|
|
|
<ruleList> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${previous_installation_exists}</value1> |
|
|
|
<value2>1</value2> |
|
|
|
</compareValues> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${installation_type}</value1> |
|
|
|
<value2>uninstall</value2> |
|
|
|
</compareValues> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${keep_settings_and_userdata}</value1> |
|
|
|
<value2>0</value2> |
|
|
|
</compareValues> |
|
|
|
</ruleList> |
|
|
|
</deleteFile> |
|
|
|
<deleteFile> |
|
|
|
<explanation>Deleting user settngs</explanation> |
|
|
|
<path>${user_home_directory}/.config/Iguana</path> |
|
|
|
<progressText>Deleting user settngs</progressText> |
|
|
|
<ruleList> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${previous_installation_exists}</value1> |
|
|
|
<value2>1</value2> |
|
|
|
</compareValues> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${installation_type}</value1> |
|
|
|
<value2>uninstall</value2> |
|
|
|
</compareValues> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${keep_settings_and_userdata}</value1> |
|
|
|
<value2>0</value2> |
|
|
|
</compareValues> |
|
|
|
</ruleList> |
|
|
|
</deleteFile> |
|
|
|
<showText> |
|
|
|
<height>100</height> |
|
|
|
<text>Uninstallation completed</text> |
|
|
|
<title>Uninstalled</title> |
|
|
|
<ruleList> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${previous_installation_exists}</value1> |
|
|
|
<value2>1</value2> |
|
|
|
</compareValues> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${installation_type}</value1> |
|
|
|
<value2>uninstall</value2> |
|
|
|
</compareValues> |
|
|
|
</ruleList> |
|
|
|
</showText> |
|
|
|
<exit> |
|
|
|
<explanation>Uninstalled</explanation> |
|
|
|
<progressText>Uninstalled</progressText> |
|
|
|
<ruleList> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${previous_installation_exists}</value1> |
|
|
|
<value2>1</value2> |
|
|
|
</compareValues> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${installation_type}</value1> |
|
|
|
<value2>uninstall</value2> |
|
|
|
</compareValues> |
|
|
|
</ruleList> |
|
|
|
</exit> |
|
|
|
<createDirectory> |
|
|
|
<abortOnError>0</abortOnError> |
|
|
|
<explanation>Creating ZcashParam directory</explanation> |
|
|
@ -289,9 +380,11 @@ |
|
|
|
</labelParameter> |
|
|
|
</parameterList> |
|
|
|
<ruleList> |
|
|
|
<fileExists> |
|
|
|
<path>${oldInstalldir}/${uninstallerName}</path> |
|
|
|
</fileExists> |
|
|
|
<compareValues> |
|
|
|
<logic>equals</logic> |
|
|
|
<value1>${previous_installation_exists}</value1> |
|
|
|
<value2>1</value2> |
|
|
|
</compareValues> |
|
|
|
</ruleList> |
|
|
|
</choiceParameterGroup> |
|
|
|
</parameterList> |
|
|
|