Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/apache/directory-studio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPierre-Arnaud Marcelot <pamarcelot@apache.org>2009-04-09 16:14:50 +0400
committerPierre-Arnaud Marcelot <pamarcelot@apache.org>2009-04-09 16:14:50 +0400
commitd246099070a3fee0586546fd1f5229552999c5a5 (patch)
treea078d5aa9ee934f9602e3f08bcf4ee80fed0b8c3 /tools
parent9ff33c4ad0ff2220511bccf06c3f0dfb9bb6c4a4 (diff)
Fixed the launch of the uninstaller when Studio is already installed.
git-svn-id: https://svn.apache.org/repos/asf/directory/studio/trunk@763618 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools')
-rwxr-xr-xtools/Windows Installer/windows_installer.nsi11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/Windows Installer/windows_installer.nsi b/tools/Windows Installer/windows_installer.nsi
index 177fa8176..02c1d7152 100755
--- a/tools/Windows Installer/windows_installer.nsi
+++ b/tools/Windows Installer/windows_installer.nsi
@@ -136,8 +136,12 @@
SetAutoClose false
# Verifying if the application is already installed
- ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Application}" "UninstallString"
+ ReadRegStr $R0 "${INSTDIR_REG_ROOT}" "${INSTDIR_REG_KEY}" "UninstallString"
StrCmp $R0 "" done
+
+ # Getting install location
+ ReadRegStr $R1 "${INSTDIR_REG_ROOT}" "SOFTWARE\${Application}" "InstallDir"
+ StrCmp $R1 "" done
# The application is already installed
# Asking before running the uninstaller
@@ -147,7 +151,7 @@
# Running the uninstaller
uninst:
- ExecWait '$R0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file
+ ExecWait '$R0 _?=$R1'
done:
# Preparing the uninstall log
@@ -181,6 +185,9 @@
# Closing uninstall log
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
+
+ # Storing install location
+ WriteRegStr "${INSTDIR_REG_ROOT}" "SOFTWARE\${Application}" "InstallDir" "$INSTDIR"
# Creating directories in the start menu
CreateDirectory "$SMPROGRAMS\Apache Directory Studio"