Metropoli BBS
VIEWER: instdgis.bat MODE: TEXT (ASCII)
echo off
echo Usage: instdgis [path] [source drive:]

if null%2==null %2=a:
if null%1==null goto default

echo Installing Dgis in %1
echo Making directory %1
md %1 > nul
echo Copying dgis.exe to %1\dgis.exe
copy %2\dgis.exe %1\dgis.exe > nul
if not exist %1\dgis.exe goto error
echo Copying dgis.out to %1\dgis.out
copy %2\dgis.out %1\dgis.out > nul
if not exist %1\dgis.out goto error
echo Copying hwconfig.exe to %1\hwconfig.exe
copy %2\hwconfig.exe %1\hwconfig.exe > nul
if not exist %1\hwconfig.exe goto error
echo Copying hwconfig.inf to %1\hwconfig.inf
copy %2\hwconfig.inf %1\hwconfig.inf > nul
if not exist %1\hwconfig.inf goto error
echo Copying hwconfig.csm to %1\hwconfig.csm
copy %2\hwconfig.csm %1\hwconfig.csm > nul
if not exist %1\hwconfig.csm goto error
echo Copying gsp800.out to %1\gsp800.out
copy %2\gsp800.out %1\gsp800.out > nul
if not exist %1\gsp800.out goto error
echo Copying gsp1024.out to %1\gsp1024.out
copy %2\gsp1024.out %1\gsp1024.out > nul
if not exist %1\gsp1024.out goto error

if not exist @0f5f.adf goto skip1adf
echo Copying @0f5f.adf to %1\@0f5f.adf
copy %2\@0f5f.adf %1\@0f5f.adf > nul
if not exist %1\@0f5f.adf goto error
:skip1adf

echo rem this line loads the graphics controller software > %1\autoexec.new
echo %1\dgis >> %1\autoexec.new

rem Installing AT1050 specific files
if not exist %2\lca.bin goto skip1lca
echo Copying lca.bin to %1\lca.bin
copy %2\lca.bin %1\lca.bin > nul
if not exist %1\lca.bin goto error
:skip1lca

if not exist %2\at1050.sys goto skip1sys
echo Copying at1050.sys to %1\at1050.sys
copy %2\at1050.sys %1\at1050.sys > nul
if not exist %1\at1050.sys goto error
echo rem this line specifies how to load the AT1050 specific device driver >%1\config.new
echo device=%1\at1050.sys >> %1\config.new
:skip1sys

%1\hwconfig

if not exist %1\autoexec.new goto noexec1
echo Insert the lines from file %1\autoexec.new into your autoexec.bat
if not exist %1\config.new goto noexec1
echo file and the lines from file %1\config.new into your config.sys
:noexec1
goto done1

if not exist %1\config.new goto noconfig1
echo Insert the lines from file %1\config.new into your config.sys
:noconfig1

:done1
echo file and reboot.
echo Dgis installation complete
goto end

:default
echo Installing Dgis in c:\dgis
echo Making directory c:\dgis
md c:\dgis > nul
echo Copying dgis.exe to c:\dgis\dgis.exe
copy %2\dgis.exe c:\dgis\dgis.exe > nul
if not exist c:\dgis\dgis.exe goto error
echo Copying dgis.out to c:\dgis\dgis.out
copy %2\dgis.out c:\dgis\dgis.out > nul
if not exist c:\dgis\dgis.out goto error
echo Copying hwconfig.exe to c:\dgis\hwconfig.exe
copy %2\hwconfig.exe c:\dgis\hwconfig.exe > nul
if not exist c:\dgis\hwconfig.exe goto error
echo Copying hwconfig.inf to c:\dgis\hwconfig.inf
copy %2\hwconfig.inf c:\dgis\hwconfig.inf > nul
if not exist c:\dgis\hwconfig.inf goto error
echo Copying hwconfig.csm to c:\dgis\hwconfig.csm
copy %2\hwconfig.csm c:\dgis\hwconfig.csm > nul
if not exist c:\dgis\hwconfig.csm goto error
echo Copying gsp800.out to c:\dgis\gsp800.out
copy %2\gsp800.out c:\dgis\gsp800.out > nul
if not exist c:\dgis\gsp800.out goto error
echo Copying gsp1024.out to c:\dgis\gsp1024.out
copy %2\gsp1024.out c:\dgis\gsp1024.out > nul
if not exist c:\dgis\gsp1024.out goto error

if not exist @0f5f.adf goto skip3adf
echo Copying @0f5f.adf to c:\dgis\@0f5f.adf
copy %2\@0f5f.adf c:\dgis\@0f5f.adf > nul
if not exist c:\dgis\@0f5f.adf goto error
:skip3adf

echo rem this line loads the graphics controller software > c:\dgis\autoexec.new
echo c:\dgis\dgis >> c:\dgis\autoexec.new

rem Installing AT1050 specific files
if not exist %2\lca.bin goto skip2lca
echo Copying lca.bin to c:\dgis\lca.bin
copy %2\lca.bin c:\dgis\lca.bin > nul
if not exist c:\dgis\lca.bin goto error
:skip2lca

if not exist %2\at1050.sys goto skip2sys
echo Copying at1050.sys to c:\dgis\at1050.sys
copy %2\at1050.sys c:\dgis\at1050.sys > nul
if not exist c:\dgis\at1050.sys goto error
echo rem this line specifies how to load the AT1050 specific device driver >c:\dgis\config.new
echo device=c:\dgis\at1050.sys >> c:\dgis\config.new
:skip2sys

c:\dgis\hwconfig

if not exist c:\dgis\autoexec.new goto noexec2
echo Insert the lines from file c:\dgis\autoexec.new into your autoexec.bat
if not exist c:\dgis\config.new goto noexec2
echo file and the lines from file c:\dgis\config.new into your config.sys
:noexec2
goto done2

if not exist c:\dgis\config.new goto noconfig2
echo Insert the lines from file c:\dgis\config.new into your config.sys
:noconfig2

:done2
echo file and reboot.
echo Dgis installation complete
goto end

:error
echo Dgis installation failed

:end
echo on
[ RETURN TO DIRECTORY ]