@@ -11,6 +11,12 @@ SET DEFAULT_USER=postgres
11
11
SET PRODUCT_PUBLISHER = " Postgres Professional Russia"
12
12
SET COMPANY_NAME = PostgresPro
13
13
SET PRODUCT_WEB_SITE = " http://postgrespro.ru"
14
+
15
+ IF %ARCH% == X86 (
16
+ SET BITS = 32bit
17
+ )else (
18
+ SET BITS = 64bit
19
+ )
14
20
15
21
IF " %PRODUCT_NAME% " == " " SET PRODUCT_NAME = PostgresPro
16
22
@@ -26,18 +32,18 @@ IF "%PRODUCT_NAME%" == "PostgresProEnterprise" SET PG_DEF_SERVICEID="postgrespro
26
32
IF %ONE_C% == YES (
27
33
SET PRODUCT_NAME = PostgresPro 1C
28
34
SET PG_DEF_SERVICEID = " postgrespro-1C-${PRODUCT_VERSION}"
29
- SET PG_INS_SUFFIX = " %ARCH% bit_1C_Setup .exe"
35
+ SET PG_INS_SUFFIX = " %BITS% _1C_Setup .exe"
30
36
SET PG_REG_KEY = " Software\Postgres Professional\${PRODUCT_NAME}\Installations\postgresql-${PRODUCT_VERSION}"
31
37
SET PG_REG_SERVICE_KEY = " Software\Postgres Professional\${PRODUCT_NAME}\Services\postgresql-${PRODUCT_VERSION}"
32
38
SET PRODUCT_DIR_REGKEY = " Software\Postgres Professional\${PRODUCT_NAME}\${PRODUCT_VERSION}"
33
- SET PRODUCT_VERSION = " %PG_MAJOR_VERSION% "
39
+ SET PRODUCT_VERSION = " %PG_MAJOR_VERSION% ( %BITS% ) "
34
40
)ELSE (
35
- SET PG_INS_SUFFIX = " %ARCH% bit_Setup .exe"
41
+ SET PG_INS_SUFFIX = " %BITS% _Setup .exe"
36
42
SET PG_REG_KEY = " %PRODUCT_DIR_REGKEY% \Installations\postgresql-%PG_MAJOR_VERSION% "
37
43
SET PG_REG_SERVICE_KEY = " %PRODUCT_DIR_REGKEY% \Services\postgresql-%PG_MAJOR_VERSION% "
38
44
SET PG_OLD_REG_KEY = " %OLD_PRODUCT_DIR_REGKEY% \Installations\postgresql-%PG_MAJOR_VERSION% "
39
45
SET PG_OLD_REG_SERVICE_KEY = " %OLD_PRODUCT_DIR_REGKEY% \Services\postgresql-%PG_MAJOR_VERSION% "
40
- SET PRODUCT_VERSION = " %PG_MAJOR_VERSION% (%ARCH % )"
46
+ SET PRODUCT_VERSION = " %PG_MAJOR_VERSION% (%BITS % )"
41
47
)
42
48
43
49
SET PG_DEF_PORT = " %DEFAULT_PORT% "