Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitba83a69

Browse files
committed
Disable upgrade mode for installers of previous major version
1 parent89868e0 commitba83a69

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$1HKLM"${PG_OLD_PREV_REG_KEY}""Version"
639-
${if}$1!="";we have install
640-
;get exist options
641-
ReadRegStr$PG_OLD_VERSIONHKLM"${PG_OLD_PREV_REG_KEY}""Version"
642-
ReadRegStr$PG_OLD_DIRHKLM"${PG_OLD_PREV_REG_KEY}""Base Directory"
643-
ReadRegStr$OLD_DATA_DIRHKLM"${PG_OLD_PREV_REG_KEY}""Data Directory"
644-
645-
ReadRegStr$OldServiceAccount_textHKLM"${PG_OLD_PREV_REG_KEY}""Service Account"
646-
ReadRegStr$OldServiceID_textHKLM"${PG_OLD_PREV_REG_KEY}""Service ID"
647-
ReadRegStr$OldUserName_textHKLM"${PG_OLD_PREV_REG_KEY}""Super User"
648-
ReadRegStr$OldBranding_textHKLM"${PG_OLD_PREV_REG_KEY}""Branding"
649-
650-
; StrCpy $PG_OLD_DIR $INSTDIR
651-
${endif}
652-
653-
ReadRegDWORD$1HKLM"${PG_OLD_PREV_REG_SERVICE_KEY}""Port"
654-
${if}$1!="";we have install
655-
StrCpy$TextPort_text$1
656-
${endif}
657-
658-
ReadRegStr$1HKLM"${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$1HKLM"${PG_OLD_REG_KEY}""Version"
@@ -687,31 +687,31 @@ Function ChecExistInstall
687687
${endif}
688688

689689
; check previous major version params
690-
ReadRegStr$1HKLM"${PG_PREV_REG_KEY}""Version"
691-
692-
${if}$1!="";we have install
693-
;get exist options
694-
ReadRegStr$PG_OLD_VERSIONHKLM"${PG_PREV_REG_KEY}""Version"
695-
ReadRegStr$PG_OLD_DIRHKLM"${PG_PREV_REG_KEY}""Base Directory"
696-
ReadRegStr$OLD_DATA_DIRHKLM"${PG_PREV_REG_KEY}""Data Directory"
697-
698-
ReadRegStr$OldServiceAccount_textHKLM"${PG_PREV_REG_KEY}""Service Account"
699-
ReadRegStr$OldServiceID_textHKLM"${PG_PREV_REG_KEY}""Service ID"
700-
ReadRegStr$OldUserName_textHKLM"${PG_PREV_REG_KEY}""Super User"
701-
ReadRegStr$OldBranding_textHKLM"${PG_PREV_REG_KEY}""Branding"
702-
703-
; StrCpy $PG_OLD_DIR $INSTDIR
704-
${endif}
705-
706-
ReadRegDWORD$1HKLM"${PG_PREV_REG_SERVICE_KEY}""Port"
707-
${if}$1!="";we have install
708-
StrCpy$TextPort_text$1
709-
${endif}
710-
711-
ReadRegStr$1HKLM"${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$1HKLM"${PG_REG_KEY}""Version"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp