mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add uninstall before installing to Windows installer
This commit is contained in:
parent
9184ae4608
commit
68946ceede
1 changed files with 17 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
!define APP_NAME "Tautulli"
|
!define APP_NAME "Tautulli"
|
||||||
!define COMP_NAME "Tautulli"
|
!define COMP_NAME "Tautulli"
|
||||||
!define WEB_SITE "https://tautulli.com"
|
!define WEB_SITE "https://tautulli.com"
|
||||||
!define COPYRIGHT "Tautulli © 2020"
|
!define COPYRIGHT "Tautulli © 2020"
|
||||||
!define DESCRIPTION "Monitor your Plex Media Server"
|
!define DESCRIPTION "Monitor your Plex Media Server"
|
||||||
!define APP_ICON "..\dist\Tautulli\data\interfaces\default\images\logo-circle.ico"
|
!define APP_ICON "..\dist\Tautulli\data\interfaces\default\images\logo-circle.ico"
|
||||||
!define LICENSE_TXT "..\dist\Tautulli\LICENSE"
|
!define LICENSE_TXT "..\dist\Tautulli\LICENSE"
|
||||||
|
@ -116,6 +116,8 @@ Var /GLOBAL nolaunch
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
Section -MainProgram
|
Section -MainProgram
|
||||||
|
Call UninstallPrevious
|
||||||
|
|
||||||
${INSTALL_TYPE}
|
${INSTALL_TYPE}
|
||||||
SetOverwrite ifnewer
|
SetOverwrite ifnewer
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
|
@ -238,3 +240,17 @@ Function un.onInit
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
Function UninstallPrevious
|
||||||
|
; Check for uninstaller.
|
||||||
|
ReadRegStr $R0 "${REG_ROOT}" "${UNINSTALL_PATH}" "UninstallString"
|
||||||
|
${If} $R0 == ""
|
||||||
|
Goto Done
|
||||||
|
${EndIf}
|
||||||
|
DetailPrint "Removing previous installation."
|
||||||
|
; Run the uninstaller silently.
|
||||||
|
ExecWait '"$R0" /S _?=$INSTDIR'
|
||||||
|
Done:
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue