@@ -20,25 +20,33 @@ REM The OLD_* variables used for upgrade from old installers, which was built wi
20
20
SET OLD_PRODUCT_DIR_REGKEY = SOFTWARE\%COMPANY_NAME% \%ARCH% \%PG_MAJOR_VERSION%
21
21
SET OLD_PREV_PRODUCT_DIR_REGKEY = SOFTWARE\%COMPANY_NAME% \%ARCH% \%PG_PREV_MAJOR_VERSION%
22
22
23
- REM Set Service-Id
24
- SET PG_DEF_SERVICEID = " postgresql-%ARCH% -%PG_MAJOR_VERSION% "
25
- IF " %PRODUCT_NAME% " == " PostgreSQL" SET PG_DEF_SERVICEID = " postgresql-%ARCH% -%PG_MAJOR_VERSION% "
26
- IF " %PRODUCT_NAME% " == " PostgresPro" SET PG_DEF_SERVICEID = " postgrespro-%ARCH% -%PG_MAJOR_VERSION% "
27
- IF " %PRODUCT_NAME% " == " PostgresProEnterprise" SET PG_DEF_SERVICEID = " postgrespro-enterprise-%ARCH% -%PG_MAJOR_VERSION% "
28
-
29
23
IF %ARCH% == X86 (
30
24
SET BITS = 32bit
31
25
) else (
32
26
SET BITS = 64bit
33
27
)
28
+
29
+ REM Set Service-Id
30
+ SET PG_DEF_SERVICEID = " postgresql-%ARCH% -%PG_MAJOR_VERSION% "
31
+ IF " %PRODUCT_NAME% " == " PostgreSQL" (
32
+ SET PG_DEF_SERVICEID = " postgresql-%ARCH% -%PG_MAJOR_VERSION% "
33
+ IF %BITS% == 32bit SET PG_DEF_SERVICEID = postgresql-%PG_MAJOR_VERSION% -%BITS%
34
+ )
35
+ IF " %PRODUCT_NAME% " == " PostgresPro" SET PG_DEF_SERVICEID = " postgrespro-%ARCH% -%PG_MAJOR_VERSION% "
36
+ IF " %PRODUCT_NAME% " == " PostgresProEnterprise" SET PG_DEF_SERVICEID = " postgrespro-enterprise-%ARCH% -%PG_MAJOR_VERSION% "
37
+
38
+
34
39
IF %ONE_C% == YES (
35
- SET PRODUCT_NAME = PostgresPro 1C
36
- SET PG_DEF_SERVICEID = " postgrespro-1C-${PRODUCT_VERSION}"
40
+ SET PRODUCT_NAME = PostgreSQL 1C
41
+ rem SET PG_DEF_SERVICEID="postgrespro-1C-${PRODUCT_VERSION}"
42
+ IF %BITS% == 32bit SET PG_DEF_SERVICEID = postgresql-1c-%PG_MAJOR_VERSION% -%BITS%
43
+ IF %BITS% == 64bit SET PG_DEF_SERVICEID = postgresql-1c-%PG_MAJOR_VERSION%
37
44
SET PG_INS_SUFFIX = " %ARCH% bit_1C_Setup.exe"
38
45
SET PG_REG_KEY = " Software\Postgres Professional\${PRODUCT_NAME}\Installations\postgresql-${PRODUCT_VERSION}"
39
46
SET PG_REG_SERVICE_KEY = " Software\Postgres Professional\${PRODUCT_NAME}\Services\postgresql-${PRODUCT_VERSION}"
40
47
SET PRODUCT_DIR_REGKEY = " Software\Postgres Professional\${PRODUCT_NAME}\${PRODUCT_VERSION}"
41
48
SET PRODUCT_VERSION = " %PG_MAJOR_VERSION% "
49
+ SET WITH_1C = " TRUE"
42
50
) ELSE (
43
51
SET PG_INS_SUFFIX = " %BITS% _Setup.exe"
44
52
SET PRODUCT_VERSION = " %PG_MAJOR_VERSION% (%BITS% )"
@@ -50,6 +58,7 @@ IF %ONE_C% == YES (
50
58
SET PG_OLD_REG_SERVICE_KEY = " %OLD_PRODUCT_DIR_REGKEY% \Services\postgresql-%PG_MAJOR_VERSION% "
51
59
SET PG_OLD_PREV_REG_KEY = " %OLD_PREV_PRODUCT_DIR_REGKEY% \Installations\postgresql-%PG_PREV_MAJOR_VERSION% "
52
60
SET PG_OLD_PREV_REG_SERVICE_KEY = " %OLD_PREV_PRODUCT_DIR_REGKEY% \Services\postgresql-%PG_PREV_MAJOR_VERSION% "
61
+ SET WITH_1C = " FALSE"
53
62
)
54
63
55
64
SET PG_DEF_PORT = " %DEFAULT_PORT% "
@@ -88,6 +97,7 @@ REM PostgreSQL Section
88
97
>> %NSIS_RES_DIR% \postgres.def.nsh ECHO !define PG_INS_SUFFIX %PG_INS_SUFFIX%
89
98
>> %NSIS_RES_DIR% \postgres.def.nsh ECHO !define PG_INS_SOURCE_DIR %PG_INS_SOURCE_DIR%
90
99
>> %NSIS_RES_DIR% \postgres.def.nsh ECHO !define REDIST_YEAR %REDIST_YEAR%
100
+ >> %NSIS_RES_DIR% \postgres.def.nsh ECHO !define WITH_1C %WITH_1C%
91
101
>> %NSIS_RES_DIR% \postgres.def.nsh ECHO !define BUILD_DIR %BUILD_DIR%
92
102
>> %NSIS_RES_DIR% \postgres.def.nsh ECHO !define SDK %SDK%
93
103
>> %NSIS_RES_DIR% \postgres.def.nsh ECHO !addplugindir Plugins
0 commit comments