Skip to content

Commit ba83a69

Browse files
committed
Disable upgrade mode for installers of previous major version
1 parent 89868e0 commit ba83a69

File tree

1 file changed

+49
-49
lines changed

1 file changed

+49
-49
lines changed

nsis/postgresql.nsi

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -635,30 +635,30 @@ Function ChecExistInstall
635635
StrCpy $Locale_text "$(DEF_LOCALE_NAME)"
636636

637637
; check old previous major version params
638-
ReadRegStr $1 HKLM "${PG_OLD_PREV_REG_KEY}" "Version"
639-
${if} $1 != "" ;we have install
640-
;get exist options
641-
ReadRegStr $PG_OLD_VERSION HKLM "${PG_OLD_PREV_REG_KEY}" "Version"
642-
ReadRegStr $PG_OLD_DIR HKLM "${PG_OLD_PREV_REG_KEY}" "Base Directory"
643-
ReadRegStr $OLD_DATA_DIR HKLM "${PG_OLD_PREV_REG_KEY}" "Data Directory"
644-
645-
ReadRegStr $OldServiceAccount_text HKLM "${PG_OLD_PREV_REG_KEY}" "Service Account"
646-
ReadRegStr $OldServiceID_text HKLM "${PG_OLD_PREV_REG_KEY}" "Service ID"
647-
ReadRegStr $OldUserName_text HKLM "${PG_OLD_PREV_REG_KEY}" "Super User"
648-
ReadRegStr $OldBranding_text HKLM "${PG_OLD_PREV_REG_KEY}" "Branding"
649-
650-
; StrCpy $PG_OLD_DIR $INSTDIR
651-
${endif}
652-
653-
ReadRegDWORD $1 HKLM "${PG_OLD_PREV_REG_SERVICE_KEY}" "Port"
654-
${if} $1 != "" ;we have install
655-
StrCpy $TextPort_text $1
656-
${endif}
657-
658-
ReadRegStr $1 HKLM "${PG_OLD_PREV_REG_SERVICE_KEY}" "Locale"
659-
${if} $1 != ""
660-
StrCpy $Locale_text $1
661-
${endif}
638+
; ReadRegStr $1 HKLM "${PG_OLD_PREV_REG_KEY}" "Version"
639+
; ${if} $1 != "" ;we have install
640+
; ;get exist options
641+
; ReadRegStr $PG_OLD_VERSION HKLM "${PG_OLD_PREV_REG_KEY}" "Version"
642+
; ReadRegStr $PG_OLD_DIR HKLM "${PG_OLD_PREV_REG_KEY}" "Base Directory"
643+
; ReadRegStr $OLD_DATA_DIR HKLM "${PG_OLD_PREV_REG_KEY}" "Data Directory"
644+
645+
; ReadRegStr $OldServiceAccount_text HKLM "${PG_OLD_PREV_REG_KEY}" "Service Account"
646+
; ReadRegStr $OldServiceID_text HKLM "${PG_OLD_PREV_REG_KEY}" "Service ID"
647+
; ReadRegStr $OldUserName_text HKLM "${PG_OLD_PREV_REG_KEY}" "Super User"
648+
; ReadRegStr $OldBranding_text HKLM "${PG_OLD_PREV_REG_KEY}" "Branding"
649+
650+
; ; StrCpy $PG_OLD_DIR $INSTDIR
651+
; ${endif}
652+
653+
; ReadRegDWORD $1 HKLM "${PG_OLD_PREV_REG_SERVICE_KEY}" "Port"
654+
; ${if} $1 != "" ;we have install
655+
; StrCpy $TextPort_text $1
656+
; ${endif}
657+
658+
; ReadRegStr $1 HKLM "${PG_OLD_PREV_REG_SERVICE_KEY}" "Locale"
659+
; ${if} $1 != ""
660+
; StrCpy $Locale_text $1
661+
; ${endif}
662662

663663
; check old major version params
664664
ReadRegStr $1 HKLM "${PG_OLD_REG_KEY}" "Version"
@@ -687,31 +687,31 @@ Function ChecExistInstall
687687
${endif}
688688

689689
; check previous major version params
690-
ReadRegStr $1 HKLM "${PG_PREV_REG_KEY}" "Version"
691-
692-
${if} $1 != "" ;we have install
693-
;get exist options
694-
ReadRegStr $PG_OLD_VERSION HKLM "${PG_PREV_REG_KEY}" "Version"
695-
ReadRegStr $PG_OLD_DIR HKLM "${PG_PREV_REG_KEY}" "Base Directory"
696-
ReadRegStr $OLD_DATA_DIR HKLM "${PG_PREV_REG_KEY}" "Data Directory"
697-
698-
ReadRegStr $OldServiceAccount_text HKLM "${PG_PREV_REG_KEY}" "Service Account"
699-
ReadRegStr $OldServiceID_text HKLM "${PG_PREV_REG_KEY}" "Service ID"
700-
ReadRegStr $OldUserName_text HKLM "${PG_PREV_REG_KEY}" "Super User"
701-
ReadRegStr $OldBranding_text HKLM "${PG_PREV_REG_KEY}" "Branding"
702-
703-
; StrCpy $PG_OLD_DIR $INSTDIR
704-
${endif}
705-
706-
ReadRegDWORD $1 HKLM "${PG_PREV_REG_SERVICE_KEY}" "Port"
707-
${if} $1 != "" ;we have install
708-
StrCpy $TextPort_text $1
709-
${endif}
710-
711-
ReadRegStr $1 HKLM "${PG_PREV_REG_SERVICE_KEY}" "Locale"
712-
${if} $1 != ""
713-
StrCpy $Locale_text $1
714-
${endif}
690+
; ReadRegStr $1 HKLM "${PG_PREV_REG_KEY}" "Version"
691+
692+
; ${if} $1 != "" ;we have install
693+
; ;get exist options
694+
; ReadRegStr $PG_OLD_VERSION HKLM "${PG_PREV_REG_KEY}" "Version"
695+
; ReadRegStr $PG_OLD_DIR HKLM "${PG_PREV_REG_KEY}" "Base Directory"
696+
; ReadRegStr $OLD_DATA_DIR HKLM "${PG_PREV_REG_KEY}" "Data Directory"
697+
698+
; ReadRegStr $OldServiceAccount_text HKLM "${PG_PREV_REG_KEY}" "Service Account"
699+
; ReadRegStr $OldServiceID_text HKLM "${PG_PREV_REG_KEY}" "Service ID"
700+
; ReadRegStr $OldUserName_text HKLM "${PG_PREV_REG_KEY}" "Super User"
701+
; ReadRegStr $OldBranding_text HKLM "${PG_PREV_REG_KEY}" "Branding"
702+
703+
; ; StrCpy $PG_OLD_DIR $INSTDIR
704+
; ${endif}
705+
706+
; ReadRegDWORD $1 HKLM "${PG_PREV_REG_SERVICE_KEY}" "Port"
707+
; ${if} $1 != "" ;we have install
708+
; StrCpy $TextPort_text $1
709+
; ${endif}
710+
711+
; ReadRegStr $1 HKLM "${PG_PREV_REG_SERVICE_KEY}" "Locale"
712+
; ${if} $1 != ""
713+
; StrCpy $Locale_text $1
714+
; ${endif}
715715

716716
; check current major version params
717717
ReadRegStr $1 HKLM "${PG_REG_KEY}" "Version"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy