]> git.lyx.org Git - features.git/commitdiff
installer: uninstall JabRef also silently if necessary
authorUwe Stöhr <uwestoehr@lyx.org>
Wed, 19 Feb 2014 00:23:31 +0000 (01:23 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Wed, 19 Feb 2014 00:23:31 +0000 (01:23 +0100)
development/Win32/packaging/installer/setup/uninstall.nsh

index 38d3be841b1ba663c0d633712bf15e7bad825155..cc96d61387b4061b5f36559bfc019ebd06f9f74c 100644 (file)
@@ -126,6 +126,8 @@ Section "un.JabRef" un.SecUnJabRef
   ${If} $MultiUser.Privileges == "Admin"
   ${OrIf} $MultiUser.Privileges == "Power"
    ReadRegStr $1 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "UninstallString"
+   IfSilent 0 +2
+   ExecWait "$1 /S" # run JabRef's uninstaller
    ExecWait "$1" # run JabRef's uninstaller
   ${else}
    # in this case we can only read the start menu location and then start the linked uninstaller