Add uninstall before installing to Windows installer
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
!define APP_NAME "Tautulli"
|
||||
!define COMP_NAME "Tautulli"
|
||||
!define WEB_SITE "https://tautulli.com"
|
||||
!define COPYRIGHT "Tautulli <EFBFBD> 2020"
|
||||
!define COPYRIGHT "Tautulli © 2020"
|
||||
!define DESCRIPTION "Monitor your Plex Media Server"
|
||||
!define APP_ICON "..\dist\Tautulli\data\interfaces\default\images\logo-circle.ico"
|
||||
!define LICENSE_TXT "..\dist\Tautulli\LICENSE"
|
||||
@@ -116,6 +116,8 @@ Var /GLOBAL nolaunch
|
||||
######################################################################
|
||||
|
||||
Section -MainProgram
|
||||
Call UninstallPrevious
|
||||
|
||||
${INSTALL_TYPE}
|
||||
SetOverwrite ifnewer
|
||||
SetOutPath "$INSTDIR"
|
||||
@@ -238,3 +240,17 @@ Function un.onInit
|
||||
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
|
||||
|
||||
######################################################################
|
||||
|
Reference in New Issue
Block a user