Browse Source

Win: Uninstall/reinstall done

all-modes
Predrag Manojlovic 8 years ago
parent
commit
4faf12d1a2
  1. 136
      assets/BitRock Installer Files/IgaunaApp-Win.xml

136
assets/BitRock Installer Files/IgaunaApp-Win.xml

@ -168,25 +168,109 @@
</startMenuShortcutList> </startMenuShortcutList>
</component> </component>
</componentList> </componentList>
<readyToInstallActionList> <preInstallationActionList>
<!-- BEGIN: Run uninstaller if found -->
<registryGetMatch> <registryGetMatch>
<key>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${product_fullname} ${product_version}</key> <key>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${product_fullname} ${product_version}</key>
<name>UninstallString</name> <name>UninstallString</name>
<variable>uninstaller_path</variable> <variable>uninstaller_path</variable>
</registryGetMatch> </registryGetMatch>
<setInstallerVariable>
<name>previous_installation_exists</name>
<value>1</value>
<ruleList>
<fileTest condition="exists" path="${uninstaller_path}"/>
</ruleList>
</setInstallerVariable>
</preInstallationActionList>
<readyToInstallActionList>
<runProgram> <runProgram>
<program>${uninstaller_path}</program> <program>${uninstaller_path}</program>
<programArguments>--mode unattended</programArguments> <programArguments>--mode unattended</programArguments>
<ruleList> <ruleList>
<fileTest> <compareValues>
<condition>exists</condition> <logic>equals</logic>
<path>${uninstaller_path}</path> <value1>${previous_installation_exists}</value1>
</fileTest> <value2>1</value2>
</compareValues>
</ruleList> </ruleList>
</runProgram> </runProgram>
<deleteFile>
<!-- END: Run uninstaller if found --> <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>
<showProgressDialog> <showProgressDialog>
<title>Downloading files</title> <title>Downloading files</title>
<actionList> <actionList>
@ -335,6 +419,42 @@
<mustExist>0</mustExist> <mustExist>0</mustExist>
<width>30</width> <width>30</width>
</directoryParameter> </directoryParameter>
<choiceParameterGroup>
<name>installation_type</name>
<title>Instalation type</title>
<description>Existing instalation is detected</description>
<explanation>Existing instalation is detected</explanation>
<value>reinstall</value>
<default>reinstall</default>
<parameterList>
<parameterGroup>
<name>uninstall</name>
<title>Uninstall</title>
<explanation>Uninstall</explanation>
<value></value>
<default></default>
<parameterList>
<booleanParameter name="keep_settings_and_userdata" description="Keep setting and user data" displayStyle="checkbox-left">
<explanation></explanation>
<value>1</value>
<default>1</default>
</booleanParameter>
</parameterList>
</parameterGroup>
<labelParameter name="reinstall" description="Re-install current version">
<title>Re-install</title>
<explanation></explanation>
<image></image>
</labelParameter>
</parameterList>
<ruleList>
<compareValues>
<logic>equals</logic>
<value1>${previous_installation_exists}</value1>
<value2>1</value2>
</compareValues>
</ruleList>
</choiceParameterGroup>
</parameterList> </parameterList>
<platformOptionsList> <platformOptionsList>
<platformOptions> <platformOptions>

Loading…
Cancel
Save