-
Notifications
You must be signed in to change notification settings - Fork 1
/
brand_hpcc_odbc32.bat
69 lines (59 loc) · 3.86 KB
/
brand_hpcc_odbc32.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
if "%PROGRESS_SDK32_DIR%".=="". set PROGRESS_SDK32_DIR=C:\Program Files (x86)\Progress\DataDirect\oaodbclocal72
@echo on
@echo ===============================================================================
@echo This batch file performs the branding of the 32 bit HPCC-ODBC Connector and the
@echo Management Console plug-in. This assumes the "Progress DataDirect OEM SDK
@echo Local, version 7.2"
@echo ===============================================================================
@echo Ensure SDK is properly installed and mirrored
if not exist "%PROGRESS_SDK32_DIR%\admin.ORIGINAL\mmcoa.dll" goto :MISSING_SDK_BRANCH
if not exist "%PROGRESS_SDK32_DIR%\custom\install.ORIGINAL\basic\setup.ini" goto :MISSING_SDK_BRANCH
@echo ------------------------------------------------------------------------------
@echo Restore original Progress DataDirect SDK "image" folder
@echo ------------------------------------------------------------------------------
rmdir "%PROGRESS_SDK32_DIR%\custom\install" /S /Q
xcopy "%PROGRESS_SDK32_DIR%\custom\install.ORIGINAL" "%PROGRESS_SDK32_DIR%\custom\install\*.*" /s /y /q
del "%PROGRESS_SDK32_DIR%\custom\install\image\cla*.inp"
del "%PROGRESS_SDK32_DIR%\custom\install\image\custom*.ini"
@echo ------------------------------------------------------------------------------
@echo Brand the MMC management console plug-in
@echo Refer to the "OpenAccess™ SDK Distribution Guide" for details
@echo ------------------------------------------------------------------------------
rmdir "%PROGRESS_SDK32_DIR%\admin" /S /Q
xcopy "%PROGRESS_SDK32_DIR%\admin.ORIGINAL" "%PROGRESS_SDK32_DIR%\admin\*.*" /s /y /q
"%PROGRESS_SDK32_DIR%\custom\branding\brandmmc" "%PROGRESS_SDK32_DIR%\admin\mmcoa.dll" local -c "HPCC Systems" -s "HPCC Systems" -p "HPCC-ODBC32 Connector" -v 0.50
if not exist "%PROGRESS_SDK32_DIR%\admin\prepmsc.reg" goto :MISSING_MMC
@echo ------------------------------------------------------------------------------
@echo Brand the drivers. We specify the "HS" prefix which is registered with Progress
@echo Refer to the "OpenAccess™ SDK Distribution Guide" for details
@echo ------------------------------------------------------------------------------
"%PROGRESS_SDK32_DIR%\custom\branding\brandodbc" "%PROGRESS_SDK32_DIR%\custom\install\image\bin" local -N HS -P HPCC4Me -X n -S n -c "HPCC Systems" -s "HPCC Systems" -p "HPCC-ODBC32 Connector" -v 0.50
if not exist "%PROGRESS_SDK32_DIR%\custom\install\image\bin\HSoal25.dll" goto :MISSING_DRIVER
@echo ------------------------------------------------------------------------------
@echo Please ensure the following branded files were created for the Local
@echo ODBC client, in the %PROGRESS_SDK32_DIR%\custom\install\image\bin folder
@echo .
@echo HSoal25.dll - Branded Local ODBC client Driver
@echo HSoald25.dll - Branded Local ODBC driver dialog file
@echo HSoals25.dll - Branded Local ODBC driver setup file
@echo HSoal25m.dll - Branded Local ODBC driver message file
@echo .
@echo HSmgan25.dll - Branded “Anonymous” authentication MGSS module
@echo HSmghu25.dll - Branded “Host User” authentication MGSS module
@echo HSmgsp25.dll - Branded “SSPI (NTLM or Kerberos)” authentication MGSS module
@echo .
@echo HSoal25.ini - Branded ODBC Driver config file. References are modified with the branded DLL names.
@echo HS.SHA - Branded Product license file
@echo ------------------------------------------------------------------------------
goto :DONE
:MISSING_SDK_BRANCH
@echo ERROR! "Progress DataDirect OEM SDK Local, version 7.2" missing or not mirrored. Please ensure it
@echo is installed, and create "%PROGRESS_SDK32_DIR%\admin.ORIGINAL" and "%PROGRESS_SDK32_DIR%\custom\install.ORIGINAL" !!!
goto :DONE
:MISSING_MMC
@echo ERROR! Branded MMC files appear to be missing (mmcoa.dll, prepmsc.reg, unprepmsc.reg) !!!
goto :DONE
:MISSING_DRIVER
@echo ERROR! Branded Driver files appear to be missing (HS*.dll) !!!
goto :DONE
:DONE