home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
191.img
/
AA1.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-12-27
|
7KB
|
250 lines
echo off
cls
set drive=
set aasoft=
if %0==install goto badend
if %0==INSTALL goto badend
if %0==a:install set drive=a:
if %0==A:INSTALL set drive=a:
if %0==b:install set drive=b:
if %0==B:INSTALL set drive=b:
if %0==d:install set drive=d:
if %0==D:INSTALL set drive=d:
if %0==e:install set drive=e:
if %0==E:INSTALL set drive=e:
if %0==f:install set drive=f:
if %0==F:INSTALL set drive=f:
if %0==g:install set drive=g:
if %0==G:INSTALL set drive=g:
if %0==h:install set drive=h:
if %0==H:INSTALL set drive=h:
if %0==i:install set drive=i:
if %0==I:INSTALL set drive=i:
if %1NUL==NUL goto badend1
if %1==C:\ goto badend1
if %1==c:\ goto badend1
if %1==D:\ goto badend1
if %1==d:\ goto badend1
if %1==E:\ goto badend1
if %1==e:\ goto badend1
if %1==F:\ goto badend1
if %1==f:\ goto badend1
if %1==G:\ goto badend1
if %1==g:\ goto badend1
if %1==H:\ goto badend1
if %1==h:\ goto badend1
if %1==I:\ goto badend1
if %1==i:\ goto badend1
if not exist %1\acad.exe goto badend2
if %2NUL==NUL goto badend5
if %2==C: goto soft
if %2==c: goto soft
if %2==D: goto soft
if %2==d: goto soft
if %2==E: goto soft
if %2==e: goto soft
if %2==F: goto soft
if %2==f: goto soft
if %2==G: goto soft
if %2==g: goto soft
if %2==H: goto soft
if %2==h: goto soft
if %2==I: goto soft
if %2==i: goto soft
goto badend6
:soft
set aasoft=%2
goto correct
:correct
echo The Auto-Architect R10.3
echo.
echo This installation will DELETE all versions of the Auto-Architect
echo.
echo ** If you have files in which you are not sure that they are backed
echo up cancel this procedure by Answering Yes to abort prompt and
echo then back up your important files. **
echo.
echo Have you made modifications to menus that you want to keep?
echo Have you added symbols to the library files?
echo Have you added/modified user scripts?
echo Have you added/modified layer scripts?
echo Have you added or modified attributes to the library files?
echo Have you been keeping your working drawings in Auto-Architect directories?
echo.
echo ** Warning Loading All of the Auto-Architect software options will
echo require 10 Megs of Disk space, be sure you have enough space **
echo.
echo ** Abort now if you need to check **
echo.
%drive%yn Y N 28 Do you want to Abort (Y/N)?
if ERRORLEVEL 1 goto retry
goto continue
:retry
echo
%drive%yn Y N 30 Sure you want to Abort (Y/N)?
if ERRORLEVEL 1 goto end
goto continue
:continue
cls
echo.
echo ** Copying Auto-Architect configuration & installation files **
echo.
md %aasoft%autoarch
copy %drive%insarch.bat %aasoft%\autoarch >NUL:
copy %drive%yes %aasoft%\autoarch >NUL:
copy %drive%yn.exe %aasoft%\autoarch >NUL:
copy %drive%oops.bat %aasoft%\autoarch >NUL:
copy %drive%check.com %aasoft%\autoarch >NUL:
if %aasoft%==C: copy %drive%\setup\aac.bat %1\aa.bat >NUL:
if %aasoft%==c: copy %drive%\setup\aac.bat %1\aa.bat >NUL:
if %aasoft%==D: copy %drive%\setup\aad.bat %1\aa.bat >NUL:
if %aasoft%==d: copy %drive%\setup\aad.bat %1\aa.bat >NUL:
if %aasoft%==E: copy %drive%\setup\aae.bat %1\aa.bat >NUL:
if %aasoft%==e: copy %drive%\setup\aae.bat %1\aa.bat >NUL:
if %aasoft%==F: copy %drive%\setup\aaf.bat %1\aa.bat >NUL:
if %aasoft%==f: copy %drive%\setup\aaf.bat %1\aa.bat >NUL:
if %aasoft%==G: copy %drive%\setup\aag.bat %1\aa.bat >NUL:
if %aasoft%==g: copy %drive%\setup\aag.bat %1\aa.bat >NUL:
if %aasoft%==H: copy %drive%\setup\aah.bat %1\aa.bat >NUL:
if %aasoft%==h: copy %drive%\setup\aah.bat %1\aa.bat >NUL:
if %aasoft%==I: copy %drive%\setup\aai.bat %1\aa.bat >NUL:
if %aasoft%==i: copy %drive%\setup\aai.bat %1\aa.bat >NUL:
copy %1\acad.cfg %aasoft%\autoarch >NUL:
copy %1\acadd?.ovl %aasoft%\autoarch >NUL:
copy %1\acadp?.ovl %aasoft%\autoarch >NUL:
cls
echo ** Cleaning out old versions of the software **
echo.
if exist %aasoft%\cci\setupnew.lsp goto cci
goto arch
:cci
del %aasoft%\cci <%aasoft%\autoarch\YES >NUL:
rd %aasoft%cci
:arch
if exist %aasoft%\arch\90s1.dwg goto arch1
goto elev
:arch1
del %aasoft%\arch <%aasoft%\autoarch\YES >NUL:
rd %aasoft%arch
:elev
if exist %aasoft%\archelev\crowd.dwg goto elev1
goto del
:elev1
del %aasoft%\archelev <%aasoft%\autoarch\YES >NUL:
rd %aasoft%archelev
:del
del %1\arch*.mnu
del %1\arch*.mnx
del %1\menu.mnu
del %1\door.mnu
%aasoft%
cd\autoarch
echo
echo
insarch %1
pause
goto end
:badend6
cls
echo
echo
echo
cls
echo.
echo ** Installation aborted **
echo.
echo ** Auto-Architect can not be loaded into a sub-directory **
echo.
goto badinfo
:badend5
cls
echo
echo
echo
cls
echo.
echo ** Installation aborted **
echo.
echo ** Drive for Auto-Architect was not Entered **
echo.
goto badinfo
:badend4
cls
echo
echo
echo
echo.
echo ** Incorrect AutoCAD version **
echo.
echo ** Auto-Architect R10 only can used with AutoCAD R10
echo with Drafting Extensions 1,2 & 3 **
echo.
echo.
echo Contact your AutoCAD dealer for update information
echo.
goto end
:badend3
cls
echo
echo
echo
echo.
echo ** Incorrect AutoCAD version **
echo.
echo ** Auto-Architect R10 only can used with AutoCAD R10 **
echo.
echo.
echo Contact your AutoCAD dealer for update information
echo.
goto end
:badend2
cls
echo
echo
echo
cls
echo.
echo ** Installation aborted **
echo.
echo ** AutoCad Files not found in %1 **
echo.
goto badinfo
:badend1
cls
echo
echo
echo
cls
echo.
echo ** Installation aborted **
echo.
echo ** Directory for AutoCAD was not Entered **
echo.
goto badinfo
:badend
cls
echo
echo
echo
cls
echo.
echo ** Installation aborted **
echo.
echo ** Installation should be executed from the Hard disk drive **
echo.
goto badinfo
:badinfo
echo Usage is: (Floppy drive):INSTALL (Path to ACAD) (drive for Auto-Architect)
echo.
echo.
echo ** For example: A:INSTALL C:\ACAD C: would install the Auto-Architect
echo Software from floppy disk drive A: to the root
echo directory of disk drive C: and AutoCad is on the
echo sub-directory ACAD on disk drive C: **
echo.
echo ** NOTE : the \ is not needed for Auto-Architect drive designator **
echo.
goto end
:end