home *** CD-ROM | disk | FTP | other *** search
/ PhotoWorks Plus / PhotoWorks Plus.iso / pc / dos / install.dat < prev    next >
Encoding:
INSTALL Professional project  |  1994-02-01  |  11.7 KB  |  334 lines

  1. /*      Seattle FilmWorks PhotoWorks for DOS ver 1.1 install script       */
  2. /*      (C) Copyright 1994 Seattle FilmWorks                              */
  3. /*      This software is a proprietary product of:                        */
  4. /*      Seattle FilmWorks, 1260 16th Ave West, Seattle WA 98119.          */
  5. /*      Unauthorized duplication or use is prohibited under applicable    */
  6. /*      laws.  All rights reserved.                                       */
  7. /*                                                                        */
  8. /*      By: Dan Sanow             Date: 02-17-94                          */
  9. /*                                                                        */
  10. /*      Revisions:                                                        */
  11. /*        04-04-94 Modified to support new 1.1 files                      */
  12.  
  13. @DefineProject
  14.     @Name = "PhotoWorks for DOS"
  15.     @Version = "1.25"
  16.     @Subdir = "\\SFW"
  17.     @OutDrive = C
  18.     @Requires @HardDisk
  19. @EndProject
  20.  
  21. @DefineVars
  22.     @Qstring @NameVer = "PhotoWorks @Version for DOS"
  23.     @Qstring @OverWritePrev = "NO"
  24.     @Qstring @UpdateAutoExec = "YES"
  25. @EndVars
  26.  
  27. @Display
  28.     @Cls
  29.              @NameVer Installation
  30.           Copyright (c) 1994 Seattle FilmWorks, Inc.
  31.  
  32.     Welcome to the @Name installation program.
  33.  
  34.     This program will install @NameVer on your hard disk.
  35.  
  36.     @Name requires a system configuration with a 286 or 
  37.     greater CPU, VGA video card, and MS-DOS 3.0 or greater.
  38.  
  39.     You may press the [Esc] key at any time to quit the
  40.     installation.
  41.         
  42.                   @Pause
  43. @EndDisplay
  44.  
  45. DRIVESELECT:
  46. @GetOutDrive
  47.     @Suppress A
  48.     @Suppress B
  49.     @Cls
  50.              @NameVer Installation
  51.           Copyright (c) 1994 Seattle FilmWorks, Inc.
  52.  
  53.     @Name will be installed on the @OutDrive:
  54.     drive.  Press [Enter] to accept this selection.
  55.  
  56.     If you are able to choose a different drive,
  57.     use the UP and DOWN arrow keys to highlight
  58.     the drive use wish to use.  Press [Enter]
  59.     to continue.
  60.     @MoveCStr(4,58,30,"TARGET DRIVE")
  61.     @LocalWindow(10,65)
  62. @EndOutDrive
  63.  
  64. @GetSubdir
  65.     @Cls
  66.              @NameVer Installation
  67.           Copyright (c) 1994 Seattle FilmWorks, Inc.
  68.  
  69.     @Name will be installed to @SubDir on the @OutDrive:
  70.     drive.  Press [Enter] to accept this path.
  71.     
  72.     If you want to install @Name in a different
  73.     directory, use the backspace key to remove @SubDir
  74.     and type the new path.  Press [Enter] to continue.
  75.                 @Prompt = " Install Path "
  76. @EndSubdir
  77.  
  78. @If (@Exists("@OutDrive:\\@SubDir\\POD2DISK.EXE"))
  79.     @GetOption @FlushOptions()
  80.     A version of @Name appears to already be installed.
  81.     This upgrade will not erase any rolls or images.
  82.     Do you wish to overwrite the version on the hard drive?
  83.  
  84.     Use the UP and DOWN arrow keys to highlight the
  85.     answer you wish to use.  Press [Enter] to continue.
  86.     
  87.     @Option 1 = "Yes  - Overwrite prior version"
  88.     @Option 2 = "No   - Select NEW installation path"
  89.     @Option 3 = "Exit - Stop installation"
  90.     @LocalWindow(11,27)
  91.     @EndOption
  92.  
  93.     @If (1 [= @Option) @OverWritePrev = "YES" @Endif
  94.     @If (2 [= @Option) @Goto DRIVESELECT @Endif
  95.     @If (3 [= @Option) 
  96.      @Display 
  97.       @NameVer was not installed.
  98.       Please refer to the user manual for additional instructions.
  99.  
  100.                 @Pause
  101.       @Exit
  102.      @EndDisplay
  103.     @Endif
  104.  
  105. @ElseIf (@Exists("@OutDrive:\\@SubDir"))
  106.     @GetOption @FlushOptions()
  107.     Another product appears to be installed at @OutDrive:@SubDir.
  108.     Do you wish to continue with the installation of
  109.     @NameVer using this path?
  110.  
  111.     Use the UP and DOWN arrow keys to highlight the
  112.     answer you wish to use.  Press [Enter] to continue.
  113.     
  114.     @Option 1 = "Yes  - Install using current path"
  115.     @Option 2 = "No   - Select NEW installation path"
  116.     @Option 3 = "Exit - Stop installation"
  117.     @LocalWindow(11,27)
  118.     @EndOption
  119.  
  120.     @If (2 [= @Option) @Goto DRIVESELECT @Endif
  121.     @If (3 [= @Option) 
  122.      @Display
  123.       @NameVer was not installed.
  124.       Please refer to the user manual for additional instructions.
  125.  
  126.                 @Pause
  127.       @Exit
  128.      @EndDisplay
  129.     @Endif
  130. @EndIf
  131.  
  132. @GetOption @FlushOptions()
  133.              @NameVer Installation
  134.           Copyright (c) 1994 Seattle FilmWorks, Inc.
  135.  
  136.     To make it easier for you to use @Name, this
  137.     install program needs to modify your AUTOEXEC.BAT file.
  138. /*
  139.     By making changes to the AUTOEXEC.BAT file, the screen saver
  140.     is automatically loaded when booting your computer and you
  141.     can execute @Name from any directory.
  142.     We recommend that you allow this install program to update
  143.     AUTOEXEC.BAT automatically for you.
  144. */
  145.     By making changes to the AUTOEXEC.BAT file, you can
  146.     execute @Name from any directory.
  147.  
  148.     Use the UP and DOWN arrow keys to highlight the
  149.     answer you wish to use.  Press [Enter] to continue.
  150.  
  151.     @Option 1 = "Yes  - Update AUTOEXEC.BAT (recommended)"
  152.     @Option 2 = "No   - Leave AUTOEXEC.BAT unchanged"
  153.     @Option 3 = "Exit - Stop installation"
  154. /*        @LocalWindow(20,30)
  155. */
  156.     @LocalWindow(16,30)
  157. @EndOption
  158.  
  159. @If (3 [= @Option)
  160.     @Display
  161.       @NameVer was not installed.
  162.       Please refer to the user manual for additional instructions.
  163.  
  164.                 @Pause
  165.       @Exit
  166.     @EndDisplay
  167. @Endif
  168.  
  169. @If (1 [= @Option) @UpdateAutoExec = "YES" @Endif
  170. @If (2 [= @Option) @UpdateAutoExec = "NO" @Endif
  171.  
  172. @SetAutoexec
  173.     @if (1 [= @Option)
  174.         @Overwrite
  175.         @Path = "@OutDrive:\\@SubDir;"
  176. /*                @Verbatim = "CALL @OutDrive:\\@SubDir\\SFWSAVER.BAT" */
  177.     @Endif
  178. @EndAutoexec
  179.  
  180. @GetOption @FlushOptions()
  181.              @NameVer Installation
  182.           Copyright (c) 1994 Seattle FilmWorks, Inc.
  183.     
  184.     @MoveCStr(,,64+15," @Name is ready to be installed ")
  185.  
  186.          Target Drive.......... @OutDrive:
  187.          Target Path........... @SubDir
  188.          Update AUTOEXEC.BAT... @UpdateAutoExec
  189.  
  190.     Are these installation options correct?
  191.  
  192.     Use the UP and DOWN arrow keys to highlight the
  193.     answer you wish to use.  Press [Enter] to continue.
  194.     
  195.     @Option 1 = "Yes  - Install using above options"
  196.     @Option 2 = "No   - Change the installation options"
  197.     @Option 3 = "Exit - Stop installation"
  198.     @LocalWindow(18,29)
  199. @EndOption
  200.  
  201. @If (2 [= @Option) @Goto DRIVESELECT @Endif
  202. @If (3 [= @Option) 
  203.      @Display
  204.       @NameVer was not installed.
  205.       Please refer to the user manual for additional instructions.
  206.  
  207.                 @Pause
  208.       @Exit
  209.      @EndDisplay
  210. @Endif
  211.  
  212. @DefineVars
  213.     @Qstring @DataDir = "@OutDrive:\\@SubDir"
  214.     @Qstring @SampleDir = "@DataDir\\99999998.ROL"
  215.     @Qstring @SampleRoll = "@SampleDir\\99999998"
  216. @EndVars
  217.  
  218. @DefineDisk
  219.     @Label = "PhotoWorks Disk #1 of 1"
  220.     @BeginLib SFWPW125.001
  221.         @File PW.BAT @Size 66 @Out PW.BAT
  222.         @File SFWPW.BAT @Size 2215 @Out SFWPW.BAT
  223.         @File SFWPW124.EXE @Size 236178 @Out SFWPW124.EXE
  224.         @File POD2DISK.EXE @Size 112946 @Out POD2DISK.EXE
  225.         @File SFW2DISK.EXE @Size 116898 @Out SFW2DISK.EXE
  226.         @File RESPONSE.COM @Size 128 @Out RESPONSE.COM
  227.         @File SFWPCUBE.EXE @Size 71274 @Out SFWPCUBE.EXE
  228.         @File WHATSVGA.EXE @Size 13568 @Out WHATSVGA.EXE
  229.         @File PODICON.ICO @Size 766 @Out PODICON.ICO
  230.         @File PCUBE.ICO @Size 766 @Out PCUBE.ICO
  231.         @File README.TXT @Size 4077 @Out README.TXT
  232.         @File PWLG.DAT @Size 11490 @Out PWAUX\PWLG.DAT
  233.         @File PWNPG1.DAT @Size 22459 @Out PWAUX\PWNPG1.DAT
  234.         @File PWNPG2.DAT @Size 15887 @Out PWAUX\PWNPG2.DAT
  235.         @File PWNPG3.DAT @Size 15610 @Out PWAUX\PWNPG3.DAT
  236.         @File PWNPG4.DAT @Size 26599 @Out PWAUX\PWNPG4.DAT
  237.         @File PWNPT1.DAT @Size 921 @Out PWAUX\PWNPT1.DAT
  238.         @File PWNPT2.DAT @Size 1465 @Out PWAUX\PWNPT2.DAT
  239.         @File PWNPT3.DAT @Size 1941 @Out PWAUX\PWNPT3.DAT
  240.         @File PWNPT4.DAT @Size 1470 @Out PWAUX\PWNPT4.DAT
  241.         @File PWOFT1.DAT @Size 3052 @Out PWAUX\PWOFT1.DAT
  242.         @File PWOFT2.DAT @Size 3128 @Out PWAUX\PWOFT2.DAT
  243.         @File PWOFT3.DAT @Size 2786 @Out PWAUX\PWOFT3.DAT
  244.         @File PWOFT4.DAT @Size 3025 @Out PWAUX\PWOFT4.DAT
  245.         @File PWOH1.DAT @Size 4291 @Out PWAUX\PWOH1.DAT
  246.         @File PWOH2.DAT @Size 4561 @Out PWAUX\PWOH2.DAT
  247.         @File PWOH3.DAT @Size 4141 @Out PWAUX\PWOH3.DAT
  248.         @File PWOH4.DAT @Size 2542 @Out PWAUX\PWOH4.DAT
  249.         @File PWOH5.DAT @Size 4794 @Out PWAUX\PWOH5.DAT
  250.         @File PWOH6.DAT @Size 1747 @Out PWAUX\PWOH6.DAT
  251.         @File PWOH7.DAT @Size 4025 @Out PWAUX\PWOH7.DAT
  252.         @File PWOH8.DAT @Size 4431 @Out PWAUX\PWOH8.DAT
  253.         @File PWOH9.DAT @Size 2525 @Out PWAUX\PWOH9.DAT
  254.         @File 99999998.INI @Size 73 @Out 99999998.ROL\99999998.INI
  255.         @File 99999998.#01 @Size 64961 @Out 99999998.ROL\99999998.#01
  256.         @File 99999998.#02 @Size 44334 @Out 99999998.ROL\99999998.#02
  257.         @File 99999998.#03 @Size 50489 @Out 99999998.ROL\99999998.#03
  258.         @File 99999998.#04 @Size 54817 @Out 99999998.ROL\99999998.#04
  259.         @File 99999998.#05 @Size 43133 @Out 99999998.ROL\99999998.#05
  260.         @File 99999998.#06 @Size 58157 @Out 99999998.ROL\99999998.#06
  261.         @File 99999998.#07 @Size 49078 @Out 99999998.ROL\99999998.#07
  262.         @File 99999998.#08 @Size 48740 @Out 99999998.ROL\99999998.#08
  263.         @File 99999998.#09 @Size 47402 @Out 99999998.ROL\99999998.#09
  264.         @File 99999998.#10 @Size 53535 @Out 99999998.ROL\99999998.#10
  265.         @File 99999998.#11 @Size 52730 @Out 99999998.ROL\99999998.#11
  266.     @EndLib
  267. @EndDisk
  268.  
  269.  
  270. @Finish
  271.     /* Create the SFWSAVER file */
  272. /*        @Write("@DataDir\\SFWSAVER.BAT", "wt", "@@echo off\n")                 */
  273. /*        @Write( , , "rem Batch file to start & stop screen saver tsr\n")       */
  274. /*        @Write( , , "if \"%1\"==\"U\" goto UNLOAD\n")                          */
  275. /*        @Write( , , "if \"%1\"==\"u\" goto UNLOAD\n")                          */
  276. /*        @Write( , , "@DataDir\\SCRNSVR.EXE @@@DataDir\\SFWSAVER.INI 5 3 10\n") */
  277. /*        @Write( , , "goto EXIT\n")                                             */
  278. /*        @Write( , , ":UNLOAD\n")                                               */
  279. /*        @Write( , , "@DataDir\\SCRNSVR.EXE U\n")                               */
  280. /*        @Write( , , ":EXIT\n")                                                 */
  281. /*        @Write( , , "echo.\n")                                                 */
  282.  
  283.     /* Create a screen saver list of sample images if none exists */
  284. /*        @If (!(@Exists("@DataDir\\SFWSAVER.INI")))                             */
  285. /*                No screen saver script exists, creating one for you.           */
  286. /*                @Write("@DataDir\\SFWSAVER.INI", "wt", "@SampleRoll.#01\n")    */
  287. /*                @Write( , , "@SampleRoll.#02\n")                               */
  288. /*                @Write( , , "@SampleRoll.#03\n")                               */
  289. /*                @Write( , , "@SampleRoll.#04\n")                               */
  290. /*                @Write( , , "@SampleRoll.#05\n")                               */
  291. /*                @Write( , , "@SampleRoll.#06\n")                               */
  292. /*                @Write( , , "@SampleRoll.#07\n")                               */
  293. /*                @Write( , , "@SampleRoll.#08\n")                               */
  294. /*                @Write( , , "@SampleRoll.#09\n")                               */
  295. /*                @Write( , , "@SampleRoll.#10\n")                               */
  296. /*                @Write( , , "@SampleRoll.#11\n")                               */
  297. /*        @Endif                                                                 */
  298.                                          
  299.     /* Create a PHOTOCUBE control file if none exists */
  300.     @If (!(@Exists("@DataDir\\SFWCUBE.DAT")))
  301.         No PhotoCube control file exists, creating one for you.
  302.         @Write("@DataDir\\SFWCUBE.DAT", "wt", "@SampleRoll.#02\n")
  303.         @Write( , , "@SampleRoll.#01\n")
  304.         @Write( , , "@SampleRoll.#03\n")
  305.         @Write( , , "@SampleRoll.#04\n")
  306.         @Write( , , "@SampleRoll.#05\n")
  307.         @Write( , , "@SampleRoll.#06\n")
  308.         @Write( , , "@SampleRoll.#07\n")
  309.         @Write( , , "-p340\n")
  310.         @Write( , , "-X84 -x2\n")
  311.         @Write( , , "-Y55 -y1\n")
  312.         @Write( , , "-Z75\n")
  313.     @Endif
  314.  
  315.     @Delete("@DataDir\\SFWPW.EXE")
  316.     @Delete("@DataDir\\SFWPW11.EXE")
  317.     @Delete("@DataDir\\PWAUX\\PWLG1.DAT")
  318.     @Delete("@DataDir\\PWAUX\\PWLG2.DAT")
  319.  
  320.     @MkDir("@DataDir\\CONVFOTO")
  321.     @MkDir("@DataDir\\SAVERS")
  322.  
  323.     @ChDrive @OutDrive
  324.     @ChDir "@SubDir"
  325.  
  326.     Installation of @Name is now finished.
  327.  
  328.     Type in SFWPW to start @Name
  329.  
  330.     @Pause
  331. @EndFinish
  332.  
  333. /* end-of-file */
  334.