home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
delphi
/
MDAC_TYP.EXE
/
RCDATA
/
CABINET
/
mdac.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-06-02
|
5KB
|
100 lines
@ECHO OFF
setlocal
ECHO.
ECHO MDAC.CMD
ECHO Batch file to complete the installation of Microsoft Data Access Components
ECHO on Windows NT 4.0 Terminal Server
ECHO.
ECHO.
ECHO Setting File Permissions...
ECHO.
SET ROOT_DIR=%SYSTEMROOT%\SYSTEM32
REM *********************************
REM Setup Filelists..
REM *********************************
REM Complete ODBC 3.51 Filelist that we install to the system32 directory:
SET ODBC351_FILES=(DS16GT.DLL DS32GT.DLL MTXDM.DLL ODBC16GT.DLL ODBC32.DLL ODBC32GT.DLL ODBCAD32.EXE ODBCCP32.CPL ODBCCP32.DLL ODBCCR32.DLL ODBCCU32.DLL ODBCINST.CNT ODBCINST.HLP ODBCINT.DLL ODBCTRAC.DLL)
REM Complete ORACLE ODBC Filelist that we install to the system32 directory:
SET ORACLEODBC_FILES=(MSCPXL32.DLL MSORCL32.CNT MSORCL32.DLL MSORCL32.HLP MSORACLE32README.TXT)
REM Complete MTXOCI Filelist that we install to the system32 directory:
SET MTXOCI_FILES=(MTXOCI.DLL)
REM Complete RDS Filelist that we install to the system32 directory:
SET RDS_SYSTEM_FILES=(MSDATSRC.TLB)
REM Complete SQL Server ODBC Filelist that we install to the system32 directory:
SET SQLODBC_FILES=(12520437.CPX 12520850.CPX CLICONF.HLP CLICONFG.DLL CLICONFG.EXE ODBCBCP.DLL SQLSODBC.HLP SQLSRDME.TXT SQLSRV32.DLL SQLSTR.DLL SQLWID.DLL SQLWOA.DLL)
REM Complete SQL Server OLE DB Filelist that we install to the system32 directory:
SET SQLOLEDB_SYSTEM_FILES=(DBMSADSN.DLL DBMSRPCN.DLL DBMSSHRN.DLL DBMSSOCN.DLL DBMSSPXN.DLL DBMSVINN.DLL DBNMPNTW.DLL INSTCAT.SQL)
REM Complete VC Runtime Filelist that we install to the system32 directory:
SET MSVCRT_FILES=(MSVCRT.DLL MSVCIRT.DLL)
REM Complete Visual FoxPro ODBC Filelist that we install to the system32 directory:
SET VFPODBC_FILES=(DRVVFP.CNT DRVVFP.HLP VFPODBC.DLL VFPODBC.TXT)
REM Complete JetODBC 4.0 Filelist that we install to the system32 directory:
SET JETODBC40_FILES=(ODBCJET.CNT ODBCJET.HLP ODBCJI32.DLL ODBCJT32.DLL ODDBSE32.DLL ODEXL32.DLL ODFOX32.DLL ODPDX32.DLL ODTEXT32.DLL)
REM Complete OA (OLE Automation) Filelist that we install to the system32 directory:
SET OLEAUT_FILES=(OLEAUT32.DLL OLEPRO32.DLL ASYCFILT.DLL STDOLE2.TLB)
REM Complete Jet 4.0 Filelist that we install to the system32 directory:
SET JET40_FILES=(EXPSRV.DLL MSEXCH40.DLL MSEXCL40.DLL MSJET40.DLL MSJETOLEDB40.DLL MSJINT40.DLL MSJTER40.DLL MSJTES40.DLL MSLTUS40.DLL MSPBDE40.DLL MSRCLR40.DLL MSRD2X40.DLL MSRD3X40.DLL MSRECR40.DLL MSREPL40.DLL MSTEXT40.DLL MSWDAT10.DLL MSWSTR10.DLL MSXBDE40.DLL VBAJET32.DLL)
REM Complete JetODBC 3.5 Filelist that we install to the system32 directory:
SET JETODBC35_FILES=(ODBCTL32.DLL)
REM Complete Jet 3.5 Filelist that we install to the system32 directory:
SET JET35_FILES=(MSEXCH35.DLL MSEXCL35.DLL MSJET35.DLL MSJINT35.DLL MSJT4JLT.DLL MSJTER35.DLL MSJTOR35.DLL MSLTUS35.DLL MSPDOX35.DLL MSRD2X35.DLL MSREPL35.DLL MSTEXT35.DLL MSXBSE35.DLL)
REM Misc. MDAC 2.1 files that are not included in the above categories:
SET MISC21_FILES=(ODBCCONF.EXE COMMON98.DLL ODBCKEY.INF ODBCSTF.DLL)
REM Misc. MDAC 2.0 files that are not included in the above categories:
SET MISC20_FILES=(WINDBVER.EXE VBAR332.DLL)
REM *********************************
REM Do the work..
REM *********************************
REM MDAC 2.1 File Set
FOR %%f IN %ODBC351_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %ORACLEODBC_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %MTXOCI_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %RDS_SYSTEM_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %SQLODBC_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %SQLOLEDB_SYSTEM_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %MSVCRT_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %VFPODBC_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %JETODBC40_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %OLEAUT_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %JET40_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
REM MDAC 2.0 File Set (minus the files included in MDAC 2.1)
FOR %%f IN %JETODBC35_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %JET35_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
REM MDAC Misc Files
FOR %%f IN %MISC21_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
FOR %%f IN %MISC20_FILES% DO IF EXIST %ROOT_DIR%\%%f CACLS %ROOT_DIR%\%%f /E /G EVERYONE:R
ECHO.
ECHO Done.
ECHO.
endlocal
REM *********************************
REM End of MDAC.CMD
REM *********************************