File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -758,6 +758,27 @@ Function un.DeleteInstallOptions
758
758
DeleteRegValue HKLM " ${PG_REG_SERVICE_KEY}" " Service Account"
759
759
DeleteRegKey /ifempty HKLM " ${PG_REG_KEY}"
760
760
DeleteRegKey /ifempty HKLM " ${PG_REG_SERVICE_KEY}"
761
+
762
+ ReadRegStr $1 HKLM " ${PG_OLD_REG_KEY}" " Version"
763
+ ${if} $1 != " " ; we have old install
764
+ DeleteRegValue HKLM " ${PG_OLD_REG_KEY}" " Version"
765
+ DeleteRegValue HKLM " ${PG_OLD_REG_KEY}" " Base Directory"
766
+ DeleteRegValue HKLM " ${PG_OLD_REG_KEY}" " Data Directory"
767
+ DeleteRegValue HKLM " ${PG_OLD_REG_KEY}" " Service Account"
768
+ DeleteRegValue HKLM " ${PG_OLD_REG_KEY}" " Service ID"
769
+ DeleteRegValue HKLM " ${PG_OLD_REG_KEY}" " Super User"
770
+ DeleteRegValue HKLM " ${PG_OLD_REG_KEY}" " Branding"
771
+ DeleteRegValue HKLM " ${PG_OLD_REG_SERVICE_KEY}" " Port"
772
+ DeleteRegValue HKLM " ${PG_OLD_REG_SERVICE_KEY}" " Locale"
773
+ ; for compatibility
774
+ DeleteRegValue HKLM " ${PG_OLD_REG_SERVICE_KEY}" " Data Directory"
775
+ DeleteRegValue HKLM " ${PG_OLD_REG_SERVICE_KEY}" " Database Superuser"
776
+ DeleteRegValue HKLM " ${PG_OLD_REG_SERVICE_KEY}" " Display Name"
777
+ DeleteRegValue HKLM " ${PG_OLD_REG_SERVICE_KEY}" " Product Code"
778
+ DeleteRegValue HKLM " ${PG_OLD_REG_SERVICE_KEY}" " Service Account"
779
+ DeleteRegKey /ifempty HKLM " ${PG_OLD_REG_KEY}"
780
+ DeleteRegKey /ifempty HKLM " ${PG_OLD_REG_SERVICE_KEY}"
781
+ ${endif}
761
782
FunctionEnd
762
783
763
784
Function un.ChecExistInstall
You can’t perform that action at this time.
0 commit comments