home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
vrac
/
fa_ord.zip
/
INSTALFA.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-05-07
|
16KB
|
417 lines
@ECHO OFF
CLS
IF %1NOTHING==NOTHING GOTO HELP
IF %2NOTHING==NOTHING GOTO HELP
IF %3NOTHING==NOTHING GOTO HELP
IF %4==FLOPPY GOTO ERRCSTM
IF %4==floppy GOTO ERRCSTM
IF %4==FASYS GOTO ERRCSTM
IF %4==fasys GOTO ERRCSTM
IF %4==DEMODS GOTO ERRCSTM
IF %4==demods GOTO ERRCSTM
IF %5NOTHING==NOTHING GOTO CP5
IF "%5"=="floppy" GOTO CP5
IF "%5"=="FLOPPY" GOTO CP5
IF "%5"=="demods" GOTO CP5
IF "%5"=="DEMODS" GOTO CP5
IF "%5"=="fasys" GOTO CP5
IF "%5"=="FASYS" GOTO CP5
GOTO ERRCSTM
:CP5
CLS
ECHO .
ECHO .
IF %2==A:\ GOTO BSLASH
IF %2==a:\ GOTO BSLASH
IF %2==B:\ GOTO BSLASH
IF %2==b:\ GOTO BSLASH
IF %2==C:\ GOTO BSLASH
IF %2==c:\ GOTO BSLASH
IF %2==D:\ GOTO BSLASH
IF %2==d:\ GOTO BSLASH
IF %2==E:\ GOTO BSLASH
IF %2==e:\ GOTO BSLASH
IF %3==A:\ GOTO BSLASH
IF %3==a:\ GOTO BSLASH
IF %3==B:\ GOTO BSLASH
IF %3==b:\ GOTO BSLASH
IF %3==C:\ GOTO BSLASH
IF %3==c:\ GOTO BSLASH
IF %3==D:\ GOTO BSLASH
IF %3==d:\ GOTO BSLASH
IF %3==E:\ GOTO BSLASH
IF %3==e:\ GOTO BSLASH
IF NOT EXIST %2\%1.SSD GOTO ERRSRC
IF "%5"=="floppy" GOTO RETURN2
IF "%5"=="FLOPPY" GOTO RETURN2
IF %4==5 GOTO CP3
IF NOT EXIST %3\FS4.EXE GOTO ERRTRGT
IF %4NOTHING==NOTHING GOTO CP4
IF %4==4 GOTO CP4
:CP3
IF EXIST %3\FS5.COM GOTO CP4
IF NOT EXIST %3\FS5.EXE GOTO ERRTRGT
:CP4
IF NOT EXIST %3\*.* GOTO ERRTRGT
CLS
:RETURN2
IF NOT "%4"=="5" ECHO This installation is for FS4.
IF "%4"=="5" ECHO This installation is for FS5.
IF %4NOTHING==NOTHING ECHO No flight sim version designated - default installation is for FS4.
ECHO About to install
IF NOT EXIST %2\VERFA.BAT GOTO OLDVER
CALL %2\VERFA.BAT
:RETURN1
ECHO .
ECHO source drive %2 to %3
IF "%5"=="floppy" ECHO Custom installation of scenery only - to drive %3
IF "%5"=="FLOPPY" ECHO Custom installation of scenery only - to drive %3
IF "%5"=="demods" ECHO Custom installation of Demos & Modes only - to drive %3
IF "%5"=="DEMODS" ECHO Custom installation of Demos & Modes only - to drive %3
IF "%5"=="fasys" ECHO Custom installation of runway selection system to - %3
IF "%5"=="FASYS" ECHO Custom installation of runway selection system to - %3
:CP1
ECHO .
ECHO .
ECHO scenery name is %1
ECHO source drive & path is %2
ECHO target drive & path is %3
ECHO FS version is %4
IF NOT %5NOTHING==NOTHING ECHO custom installation is %5
ECHO .
ECHO Hold down the CTRL key and press BREAK to stop the installation
ECHO or
PAUSE
IF %4NOTHING==NOTHING GOTO IFOUR
IF NOT %4==5 GOTO IFOUR
IF %4==5 GOTO IFIVE
GOTO END
:IFOUR
ECHO Installing Final Approach %1
IF "%5"=="demods" GOTO DEMODS4
IF "%5"=="DEMODS" GOTO DEMODS4
IF "%5"=="floppy" GOTO FLOP4
IF "%5"=="FLOPPY" GOTO FLOP4
MD %3\FA_INFO >NUL
COPY %2\*.1ST %3\FA_INFO /v >NUL
COPY %2\*.INF %3\FA_INFO /v >NUL
IF EXIST %2\AR.BAT COPY %2\AR.BAT %3 /v >NUL
IF EXIST %2\SRUNWAY.EXE COPY %2\SRUNWAY.EXE %3 /v >NUL
IF EXIST %2\RUNWAY.EXE COPY %2\RUNWAY.EXE %3 /v >NUL
IF EXIST %2\*.DEM COPY %2\*.DEM %3 /v >NUL
IF EXIST %2\*.MOD COPY %2\*.MOD %3 /v >NUL
IF "%5"=="fasys" GOTO END
IF "%5"=="FASYS" GOTO END
MD %3\RFRUNWAY >NUL
COPY %2\%1.SSD %3\RFRUNWAY /v >NUL
MD %3\RFRUNWAY\%1 >NUL
COPY %2\*.DYX %3\RFRUNWAY\%1 /v >NUL
COPY %2\*.SCX %3\RFRUNWAY\%1 /v >NUL
GOTO END
:FLOP4 ***FLOP4***
ECHO INSTALL TO FLOPPY - PART 1
MD %3\RFRUNWAY
ECHO 2
COPY %2\%1.SSD %3\RFRUNWAY /v >NUL
ECHO 3
MD %3\RFRUNWAY\%1
ECHO 4
COPY %2\*.DYX %3\RFRUNWAY\%1 /V >NUL
ECHO LAST PART 5
COPY %2\*.SCX %3\RFRUNWAY\%1 /V >NUL
GOTO END
:DEMODS4
CLS
ECHO .
IF EXIST %2\*.DEM ECHO Installing .DEM files.
COPY %2\*.DEM %3 /v >NUL
IF NOT EXIST %2\*.DEM ECHO No .DEM files detected on %2. Were DEM's included with %1?
ECHO .
IF EXIST %2\*.MOD ECHO Installing .MOD files.
COPY %2\*.MOD %3 /v >NUL
IF NOT EXIST %2\*.MOD ECHO No .MOD files detected on %2. Were MOD's included with %1?
GOTO END
:IFIVE
ECHO Installing Final Approach %1
IF "%5"=="floppy" GOTO FLOP5
IF "%5"=="FLOPPY" GOTO FLOP5
IF "%5"=="demods" GOTO ERRDEMODS
IF "%5"=="DEMODS" GOTO ERRDEMODS
MD %3\SCENERY\FA_INFO >NUL
COPY %2\*.1ST %3\SCENERY\FA_INFO /v >NUL
COPY %2\*.INF %3\SCENERY\FA_INFO /v >NUL
IF EXIST %2\AR5.BAT COPY %2\AR5.BAT %3 /v >NUL
IF EXIST %2\SRUNWAY.EXE COPY %2\SRUNWAY.EXE %3\SCENERY /v >NUL
IF EXIST %2\RUNWAY.EXE COPY %2\RUNWAY.EXE %3\SCENERY /v >NUL
IF "%5"=="fasys" GOTO END
IF "%5"=="FASYS" GOTO END
MD %3\SCENERY\RFRUNWAY >NUL
COPY %2\%1.SSD %3\SCENERY\RFRUNWAY /v >NUL
MD %3\SCENERY\RFRUNWAY\%1 >NUL
COPY %2\*.DUM %3\SCENERY\RFRUNWAY\%1\*.DYX >NUL
COPY %2\*.SCX %3\SCENERY\RFRUNWAY\%1 /v >NUL
GOTO END
:FLOP5
ECHO INSTALL TO FLOPPY - PART 1
MD %3\RFRUNWAY
ECHO 2
COPY %2\%1.SSD %3\RFRUNWAY /v >NUL
ECHO 3
MD %3\RFRUNWAY\%1
ECHO 4
COPY %2\*.DUM %3\RFRUNWAY\%1\*.DYX /V >NUL
ECHO LAST PART 5
COPY %2\*.SCX %3\RFRUNWAY\%1 /V >NUL
GOTO END
:HELP
ECHO .
ECHO .
ECHO . HELP for FA (Final Approach) Installation
ECHO .
ECHO If you received FA as a compressed (eg. ZIP) file - You can decompress
ECHO (eg. UNZIP) the file to a temporary directory such as FATEMP on your hard
ECHO drive. You need to show the temporary directory's path as the source when
ECHO you run INSTALFA. If you received more than one FA scenery area DO NOT
ECHO decompress more than one scenery area to the same subdirectory at a time.
ECHO This will mix the files from different scenery areas and the files will not
ECHO be installed properly. Delete all the files from the temporary directory
ECHO before decompressing a second scenery area to the temporary directory.
ECHO .
ECHO With unzipped FA files on a floppy you can install FA from that floppy or
ECHO from a backup floppy. To make a backup of the FA floppy, use the XCOPY
ECHO command with the /S switch to copy subdirectories. eg. XCOPY A: B: /S .
ECHO This ensures the proper placing of scenery subdirectories & files and that
ECHO files from different scenery areas are not mixed together.
ECHO .
ECHO DO NOT copy all the FA files to your Flight Simulator directory. The
ECHO INSTALFA program places many of the FA files in special subdirectories.
ECHO .
ECHO .
ECHO More information and examples follow -
PAUSE
CLS
ECHO .
ECHO .
ECHO When you choose the normal installation or the FASYS only option, the FA
ECHO information, .INF files such as FAMANUAL.INF, README.1ST, or INVOICE.INF
ECHO etc are installed to a subdirectory within your FS4 directory called FA_INFO.
ECHO For FS5 the FA_INFO subdirectory is placed in the SCENERY directory. The FS5
ECHO SCENERY directory is located in the FS5 main directory. Keep the info files
ECHO for viewing or you can print them and then delete them from your hard drive.
ECHO .
ECHO Jot down the the path to the scenery you are going to install (source) and
ECHO the path to your FS4 or 5 directory (target) before running INSTALFA . Your
ECHO drive letters & path may be different from those shown in the examples.
ECHO .
ECHO INSTALFA.BAT can be located on any drive or directory. It doesn't need to
ECHO be located in the same directory as the other FA files.
ECHO .
ECHO When typing the install command, leave a space between parameters as shown
ECHO in the examples. DON'T use a \ (backslash) as the final character in any
ECHO path. eg. A:\CHICAGO (not A:\CHICAGO\) B: (not B:\) C:\FS4 (not C:\fs4\)
ECHO .
ECHO .
ECHO More information and examples follow -
PAUSE
CLS
ECHO .
ECHO STANDARD INSTALLATION (Final Approach program & scenery)
ECHO .
ECHO If you do not designate an FS version number, the installation will
ECHO be for FS4 by default. Remember to leave a space between parameters
ECHO as shown in the examples.
ECHO .
ECHO .
ECHO type - INSTALFA SCENERYNAME SOURCEDRIVE\PATH TARGETDRIVE\PATH FSVERSION
ECHO press ENTER
ECHO .
ECHO Eg. To install Chicago scenery from drive C:\FATEMP to C:\FS4 for FS4 type -
ECHO INSTALFA CHICAGO C:\FATEMP C:\FS4 4 press ENTER
ECHO .
ECHO Eg. To install Milwaukee scenery from drive A:\MILWKEE to C:\SIMS\MFS for FS5
ECHO type - INSTALFA MILWKEE A:\MILWKEE C:\SIMS\MFS 5 press ENTER
ECHO .
ECHO .
ECHO Hold down CTRL then press BREAK to preserve this example or for more examples
PAUSE
CLS
ECHO .
ECHO INSTALL SCENERY ONLY TO FLOPPY DISK
ECHO .
ECHO Final Approach provides a dynamic & static scenery file for each runway
ECHO choice. FA needs to access these files only when you choose a new active
ECHO runway. To conserve hard drive space you may place the FA scenery files on
ECHO floppies. The FA system must be installed on hard drive - see FAMANUAL.INF
ECHO file. Remember to leave a space between parameters as shown in the examples.
ECHO .
ECHO type - INSTALFA SCENERYNAME SOURCEDRIVE\PATH TARGETDRIVE\PATH FSVERSION
ECHO FLOPPY press ENTER
ECHO .
ECHO Eg. To install Milwaukee scenery from drive D:\FATEMP to drive B: for FS4
ECHO type - INSTALFA MILWKEE D:\FATEMP B: 4 FLOPPY press ENTER
ECHO .
ECHO Eg. To install Indianapolis scenry from drive B:\INDAPLS to drive A: for FS5
ECHO type - INSTALFA INDAPLS B:\INDAPLS A: 5 FLOPPY press ENTER
ECHO .
ECHO .
ECHO Hold down CTRL then press BREAK to preserve this example or for more examples
PAUSE
CLS
ECHO .
ECHO INSTALL DEMOS AND MODES ONLY (FS4)
ECHO .
ECHO If you install FA scenery files to a FLOPPY you need to separately install
ECHO any DEMOS and MODES included to your hard drive. DEMOS & MODES are for FS4
ECHO only. The following example installs any DEMOS & MODES provided. Remember
ECHO to leave a space between parameters as shown in the examples.
ECHO .
ECHO .
ECHO type - INSTALFA SCENERYNAME SOURCEDRIVE\PATH TARGETDRIVE\PATH FSVERSION
ECHO DEMODS press ENTER
ECHO .
ECHO Eg. To install GRISSOM demos & modes drive B:\GRISSOM to drive D:\FLIGHT for
ECHO FS4 type -
ECHO INSTALFA GRISSOM B:\GRISSOM D:\FLIGHT 4 DEMODS press ENTER
ECHO .
ECHO Eg. To install CHICAGO demos & modes drive B: root directory, to drive
ECHO D:\FS4 for FS4 type -
ECHO INSTALFA CHICAGO B: D:\FS4 4 DEMODS press ENTER
ECHO .
ECHO .
ECHO Hold down CTRL then press BREAK to preserve this example or for more examples
PAUSE
CLS
ECHO .
ECHO INSTALL FINAL APPROACH SYSTEM ONLY
ECHO .
ECHO The following example installs the runway selection system without scenery.
ECHO When FS version 4 is designated any DEMOS and MODES are also installed.
ECHO Remember to leave a space between parameters as shown in the examples.
ECHO .
ECHO .
ECHO type - INSTALFA SCENERYNAME SOURCEDRIVE\PATH TARGETDRIVE\PATH FSVERSION
ECHO FASYS press ENTER
ECHO .
ECHO Eg. To install selection system only drive D:\FATEMP to drive C:\FS4 for FS4
ECHO type - INSTALFA CHICAGO D:\FATEMP C:\FS4 4 FASYS press ENTER
ECHO .
ECHO Eg. To install selection system only drive A:\CHICAGO to drive C:\FLY5 for FS5
ECHO type - INSTALFA CHICAGO A:\CHICAGO C:\FLY5 5 FASYS press ENTER
ECHO .
ECHO .
ECHO .
ECHO Hold down CTRL then press BREAK to preserve this example or for more examples
PAUSE
CLS
GOTO HELPB1
:OLDVER
COPY %2\*.VER %2\THIS.IS >NUL
FIND "ver" %2\THIS.IS
DEL %2\THIS.IS
GOTO RETURN1
:ERRDEMODS
CLS
ECHO .
ECHO .
ECHO You selected installation of DEMOS & MODES for FS5. The FS4 DEMOS and MODES
ECHO are not compatible with FS5.
ECHO .
ECHO .
GOTO END2
:ERRCSTM
CLS
ECHO .
ECHO .
ECHO You typed %0 %1 %2 %3 %4 %5
ECHO .
IF %5NOTHING==NOTHING ECHO CUSTOM INSTALLATION WITH LESS THAN 5 PARAMETERS TYPED AFTER INSTALFA.
IF %5NOTHING==NOTHING ECHO .
IF NOT %5NOTHING==NOTHING ECHO THE 5th PARAMETER YOU TYPED (after INSTALFA) WASN'T A RECOGNIZED OPTION.
ECHO To select a custom installation you must type all the parameters, including
ECHO FS version (4 or 5). Check to see that you entered all required parameters.
ECHO Check that you typed in an acceptable option. The fifth item is not
ECHO required unless you wish to choose one of the custom installation options
ECHO listed below.
ECHO .
ECHO .
ECHO Options for the fifth parameter - FLOPPY FAYSYS DEMODS
ECHO .
ECHO .
ECHO .
ECHO Hold down CTRL then press BREAK to exit - or for HELP
PAUSE
CLS
GOTO HELP
:BSLASH
CLS
ECHO .
ECHO .
ECHO You typed %0 %1 %2 %3 %4 %5
ECHO .
ECHO Include required backslashes (\) in your source and target paths when
ECHO necessary (Eg. B:\FS4 ) but never end with a backslash.
ECHO .
GOTO END2
:ERRSRC
CLS
ECHO .
ECHO You typed %0 %1 %2 %3 %4 %5
ECHO .
ECHO INSTALFA program didn't detect %1 scenery on drive/path %2 .
ECHO Check the following:
ECHO Make sure that you type the scenery name correctly.
ECHO Type the correct source and target paths.
ECHO When you install from a floppy make sure you inserted the correct disk.
ECHO Include required backslashes (\) in your path. Eg. C:\FS4 , but never
ECHO end with a backslash.
ECHO .
ECHO By typing only INSTALFA with nothing after it and pressing ENTER , you'll
ECHO see the help screens for installation. You can keep any example screen on
ECHO your monitor by holding down CONTROL and then pressing BREAK . You'll be
ECHO asked if you wish to terminate the batch job - press Y .
:HELPB1
ECHO .
ECHO .
ECHO Be sure to correctly type the name of the scenery to be installed.
ECHO Possible scenery names: CHICAGO MILWKEE GRISSOM INDAPLS
ECHO .
ECHO .
GOTO END2
:ERRTRGT
CLS
ECHO CAUTION... read carefully before proceeding!
ECHO .
ECHO You typed %0 %1 %2 %3 %4 %5
ECHO .
ECHO INSTALFA program didn't detect FS%4.EXE or FS%4.COM file on %3 .
ECHO Check the following:
ECHO Make sure that you type the scenery name correctly.
ECHO Type the correct source and target paths.
ECHO Include required backslashes (\) in your path. Eg. C:\FS4 , but never
ECHO end with a backslash.
ECHO .
ECHO By typing only INSTALFA with nothing after it and pressing ENTER , you'll
ECHO see the help screens for installation. You can keep any example screen on
ECHO your monitor by holding down CONTROL and then pressing BREAK . You'll be
ECHO asked if you wish to terminate the batch job - press Y .
ECHO .
ECHO If you want to designate FLOPPY for custom installation of FA scenery files
ECHO to a floppy disk make sure that you correctly typed FLOPPY .
ECHO .
ECHO .
ECHO CAUTION... do you really want the FA files installed to %3 ?
ECHO TO ABORT INSTALLATION hold down CTRL then press BREAK - or
PAUSE
CLS
GOTO RETURN2
:END
ECHO .
ECHO . INSTALL PROGRAM ENDED
ECHO .
GOTO END3
:END2
ECHO . READY TO INSTALL
ECHO .
:END3