Remove Windows exe auto updater

This commit is contained in:
JonnyWong16 2020-12-24 15:26:35 -08:00
commit 6e160bb8f8
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
10 changed files with 14 additions and 280 deletions

View file

@ -77,13 +77,9 @@ InstallDir "$PROGRAMFILES64\${APP_NAME}"
!include Sections.nsh
Var /GLOBAL norun
Var /GLOBAL nolaunch
!include "MUI.nsh"
!include "FileFunc.nsh"
!insertmacro GetParameters
!insertmacro GetOptions
!define MUI_ABORTWARNING
!define MUI_UNABORTWARNING
@ -129,10 +125,6 @@ SetOverwrite on
SetOutPath "$INSTDIR"
File /nonfatal /a /r "..\dist\${APP_NAME}\"
nsExec::Exec "$INSTDIR\updater.exe --xml"
nsExec::Exec '$SYSDIR\SCHTASKS /Create /TN TautulliUpdateTask /XML "$INSTDIR\TautulliUpdateTask.xml" /F'
StrCmp $norun 1 +3 0
IfSilent 0 +2
ExecShell "" "$INSTDIR\${MAIN_APP_EXE}" $nolaunch
SectionEnd
@ -218,20 +210,11 @@ RmDir "$SMPROGRAMS\${APP_NAME}"
DeleteRegKey ${REG_ROOT} "${REG_APP_PATH}"
DeleteRegKey ${REG_ROOT} "${UNINSTALL_PATH}"
nsExec::Exec "$SYSDIR\SCHTASKS /Delete /TN TautulliUpdateTask /F"
SectionEnd
######################################################################
Function .onInit
StrCpy $norun 0
${GetParameters} $CMDLINE
${GetOptions} "$CMDLINE" "/NORUN" $R0
IfErrors +2 0
StrCpy $norun 1
IfSilent 0 +2
StrCpy $nolaunch "--nolaunch"