home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / lyrisos2.exe / INSTALL.DAT < prev    next >
Text File  |  1996-01-13  |  21KB  |  742 lines

  1. // Lyris installation script for OS/2
  2. // Copyright 1996 Walter Shelby Group Ltd.
  3. // http://www.shelby.com  sales@shelby.com
  4.  
  5. @DefineProject
  6.   @Name = "Lyris"
  7.   @Version = "1.0"
  8.   @OutDrive = C
  9.   @SubDir = "\\LYRIS"
  10.   @Immediate = @True
  11. @EndProject
  12.  
  13. @NumberOfDisks = 1
  14.  
  15. @DefineVars
  16.   @Dir        @PerlDir    = "\\PERL\\"   
  17.   @Drive      @PerlDrive  = C
  18.  
  19.   @Dir        @PLibDir    = "\\PERL\\LIB"   
  20.   @Drive      @PLibDrive  = C
  21.  
  22.   @Dir        @LyrisDir   = "\\LYRIS\\"
  23.   @Drive      @LyrisDrive = C
  24.  
  25.   @Dir        @CgiDir     = "\\"
  26.   @Drive      @CgiDrive   = C
  27.  
  28.   @Dir        @GifDir     = "\\"
  29.   @Drive      @GifDrive   = C
  30.  
  31.   @Dir        @NetscapeDir = "\\NETSCAPE"
  32.   @Drive      @NetscapeDrive   = C
  33.  
  34.   @Drive      @OS2Drive   = C
  35.  
  36.   @QString    @Hostname   = ""
  37.   @QString    @DnsServer  = ""
  38.  
  39.   @QString    @FinalConf  = ""
  40.  
  41.   @Integer    @SlashPos   = 0    
  42.   @QString    @CgiUrl     = ""
  43.                     
  44.   // needed by uninstaller
  45.   @QString @UIScriptPath = ""
  46.   @QString @TmpStr = ""   // Needed for @Backslash function, needed for events.dat
  47.   @Integer @Position = 0  // Needed for @Backslash function, needed for events.dat
  48.   @Integer @Index  = 0    // Needed for @UnMkDir,  needed for events.dat
  49.   @Dir @TempDir = ""
  50.   @QString @TempString
  51.   
  52. @EndVars
  53.  
  54.   @IncludeScript("EVENTS.DAT")
  55.   @IncludeScript("REXXUTIL.DAT")
  56.  
  57. ///////////////////////////////////
  58. // Display Welcome
  59. ///////////////////////////////////
  60.  
  61.   @Display
  62.     Welcome to Lyris Setup for OS/2
  63.   
  64.     This program will install Lyris on your computer.
  65.   
  66.     Note: this program will create an uninstall icon, so that if
  67.     you decide that Lyris does not meet your needs, you will
  68.     be able to easily remove it from your computer.
  69.   
  70.     By installing this product, you accept the terms of the Software
  71.     License agreement as specified in the "license.txt" file.
  72.   
  73.   @pause
  74.   @EndDisplay
  75.  
  76.  
  77. ///////////////////////////////////
  78. // New or Upgrade
  79. ///////////////////////////////////
  80.  
  81. NewOrUpgrade:
  82.  
  83.   //@FlushOptions()
  84.   @ClearOption(1000)
  85.   @ClearOption(1001)
  86.   @GetOption
  87.   @Cls
  88.     Is this a new installation of Lyris, or are you upgrading
  89.     an existing, already installed copy of Lyris?
  90.   
  91.     @Option 1000 = "New installation"
  92.     @Option 1001 = "Upgrade"
  93.     @Option 1002 = "Exit Setup Program"
  94.   @EndOption
  95.  
  96.   // exit installation
  97.   @if (@OptionIsSet(1002))
  98.     @Exit
  99.   @endif
  100.  
  101. ///////////////////////////////////
  102. // Show requirements
  103. ///////////////////////////////////
  104.  
  105.   // show requirements if new installation
  106.   @if (@OptionIsSet(1000))
  107.     @Display
  108.       Before installing Lyris the first time, please confirm
  109.       that your system meets these requirements.
  110.       
  111.       In order to install Lyris, you will need:
  112.       
  113.         * A TCP/IP Internet or Intranet connection
  114.         * Netscape Navigator for OS/2
  115.         * A Web Server installed on this machine (recommended)
  116.         * A CGI directory configured on your web server
  117.         * 10 megabytes of disk space
  118.       
  119.         * You must NOT be running an SMTP server (such as UltiMail)
  120.       
  121.       @pause
  122.     @EndDisplay
  123.   @Endif
  124.  
  125. ///////////////////////////////////
  126. // Select Server destination
  127. ///////////////////////////////////
  128.  
  129. @GetOutDrive @LyrisDrive
  130. @Cls
  131. @if (@OptionIsSet(1000))
  132.   Install the Lyris Server to which drive?
  133. @else
  134.   On which drive is your Lyris Server installed?
  135. @endif
  136.  
  137. @EndOutDrive
  138.  
  139.  
  140. @GetSubDir @LyrisDir
  141.   @Cls
  142.   @if (@OptionIsSet(1000))
  143.     Into which directory do you want to install the Lyris Server?
  144.   @else
  145.     On which directory is your Lyris Server installed?
  146.   @endif
  147.  
  148. @EndSubDir
  149.  
  150. // for upgrade, check to see if Lyris really is installed there.
  151. @if (@OptionIsSet(1001))
  152.   @if (@Exists("@LyrisDrive:@LyrisDir\\lyris.exe"))
  153.     // file exists, so do nothing, update will be OK
  154.   @else
  155.     // file does not exist, so notify and make them try again
  156.     @Display
  157.       Sorry, but the directory @LyrisDrive:@LyrisDir does not have 
  158.       Lyris installed.
  159.   
  160.       In order to upgrade an existing Lyris installation, you must
  161.       specify a directory where the file "LYRIS.EXE" exists.
  162.       @pause
  163.     @EndDisplay
  164.     @goto NewOrUpgrade
  165.   @endif
  166. @endif
  167.   
  168.  
  169. ///////////////////////////////////
  170. // Ask for Netscape location
  171. ///////////////////////////////////
  172.  
  173. NetscapeLocation:
  174.  
  175. @if (@OptionIsSet(1000))
  176. @GetOutDrive @NetscapeDrive
  177.   @Cls
  178.   On which drive is Netscape Navigator for OS/2 installed?
  179.  
  180. @EndOutDrive
  181.  
  182.  
  183. @GetSubDir @NetscapeDir
  184.   @cls
  185.   On which directory is Netscape Navigator for OS/2 installed?
  186.  
  187. @EndSubDir
  188.  
  189.   @if (@Exists("@NetscapeDrive:@NetscapeDir\\netscape.exe"))
  190.     // file exists, so do nothing, update will be OK
  191.   @else
  192.     // file does not exist, so notify and make them try again
  193.     @Display
  194.       Sorry, but the directory @NetscapeDrive:@NetscapeDir does not have 
  195.       Netscape Navigator for OS/2 installed.
  196.  
  197.       In order to install Lyris, you must have Netscape 
  198.       Navigator for OS/2 already installed.
  199.  
  200.       You can download Netscape Navigator for OS/2 from
  201.       www.software.ibm.com
  202.  
  203.       To continue, specify a directory with "NETSCAPE.EXE".
  204.  
  205.       @pause
  206.     @EndDisplay
  207.     @goto NetscapeLocation
  208.   @endif
  209. @endif
  210.  
  211. ///////////////////////////////////
  212. // Ask if Startup (for new install)
  213. ///////////////////////////////////
  214.  
  215.   @if (@OptionIsSet(1000))
  216.     //@FlushOptions()
  217.     @ClearOption(2000)
  218.     @ClearOption(2001)
  219.     @GetOption
  220.       @Cls
  221.       Should the Lyris Server start automatically when you start OS/2?
  222.     
  223.     
  224.     
  225.     
  226.     
  227.     
  228.     
  229.     
  230.     
  231.       Note: If you choose "Start Lyris Server Automatically",
  232.       your STARTUP.CMD file will be modified to do this.
  233.     
  234.       @Option 2000 = "Start Lyris Server Automatically"
  235.       @Option 2001 = "I will start the Lyris Server Myself"
  236.       @Option 2002 = "Exit Setup Program"
  237.     
  238.     
  239.     @EndOption
  240.   
  241.     // exit installation
  242.     @if (@OptionIsSet(2002))
  243.       @Exit
  244.     @endif
  245.   @endif
  246.  
  247. ///////////////////////////////////
  248. // GIFS
  249. ///////////////////////////////////
  250.  
  251. GetGifs:
  252.   // ask if should copy GIFs
  253.   //@FlushOptions()
  254.   @ClearOption(3000)
  255.   @ClearOption(3001)
  256.   @GetOption
  257.     @Cls
  258.     Lyris requires that several GIF graphic files be available in your Web
  259.     Server's HTML document directory.  Would you like to copy these now?
  260.  
  261.     @Option 3000 = "Yes, please do this for me"
  262.     @Option 3001 = "No, I will copy them myself"
  263.     @Option 3002 = "Exit Setup Program"
  264.  
  265.   @EndOption
  266.  
  267.   // exit installation
  268.   @if (@OptionIsSet(3002))
  269.     @Exit
  270.   @endif
  271.  
  272.   // ask for GIF destination
  273.   @if (@OptionIsSet(3000))
  274.     @GetOutDrive @GifDrive
  275.       @Cls
  276.       On what drive is your Web server document directory located?
  277.     @EndOutDrive
  278.   
  279.     @GetSubDir @GifDir
  280.       @Cls
  281.       In what directory is your Web server document directory located?
  282.     @EndSubDir
  283.  
  284.     @if (@DirExists("@GifDrive:@GifDir"))
  285.     @else
  286.       @Display
  287.         Sorry, your Web Server Document directory must already exist.
  288.         @pause
  289.       @EndDisplay
  290.       @goto GetGifs
  291.     @endif
  292.   @endif
  293.  
  294.  
  295. ///////////////////////////////////
  296. // CGI
  297. ///////////////////////////////////
  298.  
  299. GetCgi:
  300.  
  301.   @ClearOption(4000)
  302.   @ClearOption(4001)
  303.   //@FlushOptions()
  304.   @GetOption
  305.     @Cls
  306.     Lyris requires that several programs be available in your Web Server's
  307.     CGI directory.  Would you like to copy these now?
  308.  
  309.     @Option 4000 = "Yes, please do this for me"
  310.     @Option 4001 = "No, I will copy them myself"
  311.     @Option 4002 = "Exit Setup Program"
  312.  
  313.   @EndOption
  314.  
  315.   // exit installation
  316.   @if (@OptionIsSet(4002))
  317.     @Exit
  318.   @endif
  319.  
  320.   @if (@OptionIsSet(4000))
  321.   
  322.     @GetOutDrive @CgiDrive
  323.       @Cls
  324.       On what drive is your Web server CGI directory located?
  325.   
  326.       @EndOutDrive
  327.   
  328.       @GetSubDir @CGIDir
  329.       @Cls
  330.       In what directory is your Web server CGI directory located?
  331.     @EndSubDir
  332.  
  333.     @if (@DirExists("@CgiDrive:@CGIDir"))
  334.     @else
  335.       @Display
  336.         Sorry, your Web Server CGI directory must already exist.
  337.         @pause
  338.       @EndDisplay
  339.       @goto GetCgi
  340.     @endif
  341.  
  342.     @SlashPos = @StrRFind("@CGIDir", "\\")
  343.     @CgiUrl = @StrMid("@CGIDir", @SlashPos + 1, 999)
  344.  
  345.   @endif
  346.  
  347. ///////////////////////////////////
  348. // Create DBs?
  349. ///////////////////////////////////
  350.  
  351.   //@FlushOptions()
  352.   @ClearOption(5000)
  353.   @ClearOption(5001)
  354.  
  355.   @if (@OptionIsSet(1000))
  356.     @GetOption
  357.       @Cls
  358.       Lyris uses a number of database files for storing information.
  359.       Would you like to create these?
  360.   
  361.   
  362.   
  363.   
  364.   
  365.   
  366.   
  367.   
  368.   
  369.       These files are necessary in order for Lyris to function.  
  370.   
  371.       @Option 5000 = "Yes, please do this for me"
  372.       @Option 5001 = "No, I will run \"lyris dbcreate\" myself"
  373.       @Option 5002 = "Exit Setup Program"
  374.     @EndOption
  375.   @else
  376.     @GetOption
  377.       @Cls
  378.       Do you want Lyris to use your current Lyris databases, or delete
  379.       and recreate them?
  380.   
  381.   
  382.   
  383.   
  384.   
  385.   
  386.   
  387.   
  388.       If you are unsure what to do, Exit the Setup Program and make
  389.       a backup of your \LYRIS\DB directory before proceeding.  
  390.   
  391.       @Option 5001 = "Use the existing databases"
  392.       @Option 5000 = "Delete and recreate them (all existing data will be lost)"
  393.       @Option 5002 = "Exit Setup Program"
  394.     @EndOption
  395.   @endif
  396.  
  397.   // exit installation
  398.   @if (@OptionIsSet(5002))
  399.     @Exit
  400.   @endif
  401.  
  402.   @if (@OptionIsSet(5000))
  403. GetHostName:
  404.     @GetString @Hostname
  405.       Please enter the full Internet host name of this machine:
  406.   
  407.       For example, if your machine name is "luna" and your domain name
  408.       is "acme.com", then your host machine name is "luna.acme.com"
  409.        
  410.       @EndString
  411.       @if(@StrLen("@Hostname") < 2)
  412.         @Display
  413.           Sorry, you must enter your machine name in order to continue.
  414.           @pause
  415.         @EndDisplay
  416.         @goto GetHostName
  417.       @endif
  418. GetDns:
  419.     @GetString @DnsServer
  420.       Please enter the TCP/IP address of your DNS server:
  421.   
  422.       For example: 207.105.6.2
  423.     @EndString
  424.  
  425.     @if(@StrLen("@DnsServer") < 2)
  426.       @Display
  427.         Sorry, you must enter your DNS Server in order to continue.
  428.         @pause
  429.       @EndDisplay
  430.       @goto GetDns
  431.     @endif
  432.  
  433.   @endif
  434.  
  435. ///////////////////////////////////
  436. // Perl
  437. ///////////////////////////////////
  438.  
  439.   //@FlushOptions()
  440.   @ClearOption(6000)
  441.   @ClearOption(6001)
  442.   @GetOption
  443.     @Cls
  444.     Lyris requires that Perl be installed on your system.
  445.     Would you like to install it now?
  446.  
  447.     @Option 6000 = "Yes, please do this for me"
  448.     @Option 6001 = "No, I will install Perl myself"
  449.     @Option 6002 = "Exit Setup Program"
  450.  
  451.   @EndOption
  452.  
  453.   // exit installation
  454.   @if (@OptionIsSet(6002))
  455.     @Exit
  456.   @endif
  457.  
  458.   @if (@OptionIsSet(6000))
  459.     @GetOutDrive @PerlDrive
  460.       @Cls
  461.       Install Perl to what drive?
  462.   
  463.       @EndOutDrive
  464.   
  465.     @GetSubDir @PerlDir
  466.       @Cls
  467.       Install Perl to what directory?
  468.   
  469.     @EndSubDir
  470.   @endif
  471.  
  472. GetPerlLib:
  473.   @if (@OptionIsSet(6001))
  474.     @ClearOption(7000)
  475.     @ClearOption(7001)
  476.     //@FlushOptions()
  477.     @GetOption
  478.       @Cls
  479.       Lyris requires several Perl library files to be installed on your
  480.       system.  Would you like to install these now?
  481.   
  482.       @Option 7000 = "Yes, please do this for me"
  483.       @Option 7001 = "No, I will copy these files myself"
  484.       @Option 7002 = "Exit Setup Program"
  485.   
  486.     @EndOption
  487.   @endif
  488.  
  489.   // exit installation
  490.   @if (@OptionIsSet(7002))
  491.     @Exit
  492.   @endif
  493.   @if (@OptionIsSet(7000))
  494.     @GetOutDrive @PLibDrive
  495.       @Cls
  496.       Install Perl Library files to what drive?
  497.   
  498.       @EndOutDrive
  499.   
  500.     @GetSubDir @PLibDir
  501.       @Cls
  502.       Install Perl Library Files to what directory?
  503.   
  504.     @EndSubDir                                                                              
  505.  
  506.     @if (@DirExists("@PLibDrive:@PLibDir"))
  507.     @else
  508.       @Display
  509.         Sorry, your Perl Library directory must already exist.
  510.         @pause
  511.       @EndDisplay
  512.       @goto GetPerlLib
  513.     @endif
  514.  
  515.   @endif
  516.  
  517. ///////////////////////////////////
  518. // Final confirmation
  519. ///////////////////////////////////
  520.  
  521.   @FinalConf = "Lyris Setup is about to do the following:\n\n    "
  522.  
  523.   @if (@OptionIsSet(1000))
  524.     @FinalConf = "@FinalConf * Install Lyris Server in @LyrisDrive:@LyrisDir\n    "
  525.   @else
  526.     @FinalConf = "@FinalConf * Upgrade Lyris Installation in @LyrisDrive:@LyrisDir\n    "
  527.   @endif
  528.  
  529.   @if (@OptionIsSet(2000))
  530.     @FinalConf = "@FinalConf * Lyris Server will start automatically\n    "
  531.   @endif
  532.  
  533.   @if (@OptionIsSet(3000))
  534.     @FinalConf = "@FinalConf * Copy graphic files to @GifDrive:@GifDir\\LYRIS\n    "
  535.   @endif
  536.  
  537.   @if (@OptionIsSet(4000))
  538.     @FinalConf = "@FinalConf * Copy CGI programs to @CgiDrive:@CgiDir\n    "
  539.   @endif
  540.  
  541.   @if (@OptionIsSet(5000))
  542.     @FinalConf = "@FinalConf * Create Lyris Database files\n    "
  543.     @FinalConf = "@FinalConf     Hostname: @Hostname\n    "
  544.     @FinalConf = "@FinalConf     DNS Server: @DnsServer\n    "
  545.   @else
  546.     @FinalConf = "@FinalConf * Do not create Lyris database files\n    "
  547.   @endif
  548.  
  549.   @if (@OptionIsSet(6000))
  550.     @FinalConf = "@FinalConf * Install Perl to @PerlDrive:@PerlDir\n    "
  551.   @endif
  552.  
  553.   @if (@OptionIsSet(7000))
  554.     @FinalConf = "@FinalConf * Install Perl library files to @PLibDrive:@PLibDir\n    "
  555.   @endif
  556.  
  557.   @Display
  558.    @FinalConf
  559.   @pause
  560.   @EndDisplay
  561.  
  562. ///////////////////////////////////
  563. // Do Installation
  564. ///////////////////////////////////
  565.  
  566. // Copy files
  567.  
  568.     @GetOS2Drive(@OS2Drive)
  569.  
  570.   // initialize uninstaller
  571.   @MkDir("@LyrisDrive:@LyrisDir")
  572.  
  573.   // remove old uninstall script, if there is one
  574.   @Delete("@LyrisDrive:@LyrisDir\\install.dat")
  575.  
  576.   @CreateUIDISKID("@LyrisDrive:@LyrisDir")
  577.   @CreateUIScriptHdr("@LyrisDrive:@LyrisDir")
  578.   @TempDir = "@LyrisDrive:@LyrisDir"
  579.   @UIScriptPath = "@LyrisDrive:@LyrisDir"
  580.   @MapEventHandlers()
  581.  
  582.   // add a uninstall command to remove the Lyris directory
  583.   @UNDO("@UIScriptPath\\BODY.DAT", "PT", "@@RmDir(\"@LyrisDrive:@LyrisDir\")\n")
  584.   //@UNDO("@UIScriptPath\\BODY.DAT", "PT", "@@Delete(\"@LyrisDrive:@LyrisDir\\DELICONS.CMD\")\n")
  585.   //@UNDO("@UIScriptPath\\BODY.DAT", "PT", "@@Spawn(\"@LyrisDrive:@LyrisDir\\DELICONS.CMD\")\n")
  586.     
  587.   //@UNDO("@UIScriptPath\\BODY.DAT", "PT", "@@Delete(\"@LyrisDrive:@LyrisDir\\DISK.ID\")\n")
  588.   @UNDO("@UIScriptPath\\BODY.DAT", "PT", "@@Delete(\"@LyrisDrive:@LyrisDir\\README.HTM\")\n")
  589.   @UNDO("@UIScriptPath\\BODY.DAT", "PT", "@@Delete(\"@LyrisDrive:@LyrisDir\\LYRWEB.CMD\")\n")
  590.   @UNDO("@UIScriptPath\\BODY.DAT", "PT", "@@Delete(\"@LyrisDrive:@LyrisDir\\README.CMD\")\n")
  591.  
  592. // copy the files
  593. @DefineDisk
  594.   @Label = "Lyris"
  595.  
  596.   @BeginLib ROOT.RED
  597.     @File *.* @Out @LyrisDrive:@LyrisDir\\*.*
  598.   @EndLib
  599.  
  600.   @BeginLib WEB.RED
  601.     @File *.* @Out @LyrisDrive:@LyrisDir\\WEB\\*.*
  602.     @if (@OptionIsSet(4000))
  603.       @File *.* @Out @CgiDrive:@CgiDir\\*.*
  604.     @endif
  605.   @EndLib
  606.  
  607.   @BeginLib GRAPHICS.RED
  608.     @File *.* @Out @LyrisDrive:@LyrisDir\\GRAPHICS\\*.*
  609.  
  610.     @if (@OptionIsSet(3000))
  611.       @File *.* @Out @GifDrive:@GifDir\\lyris\\*.*
  612.     @endif
  613.  
  614.   @EndLib
  615.  
  616.   @BeginLib EMXBIN.RED
  617.     @File *.* @Out @LyrisDrive:@LyrisDir\\EMX\\BIN\\*.*
  618.     @File *.* @Out @OS2Drive:\\OS2\\*.*
  619.   @EndLib
  620.  
  621.   @BeginLib EMXDLL.RED
  622.     @File *.* @Out @LyrisDrive:@LyrisDir\\EMX\\DLL\\*.*
  623.     @File *.* @Out @OS2Drive:\\OS2\DLL\\*.*
  624.   @EndLib
  625.  
  626.   @BeginLib PERLBIN.RED
  627.     @File *.* @Out @LyrisDrive:@LyrisDir\\PERL\\BIN\\*.*
  628.  
  629.     @if(@OptionIsSet(6000))
  630.       @File *.* @Out @PerlDrive:@PerlDir\BIN\\*.*
  631.     @endif
  632.   @EndLib
  633.  
  634.   @BeginLib PERLLIB.RED
  635.     @File *.* @Out @LyrisDrive:@LyrisDir\\PERL\\LIB\\*.*
  636.  
  637.     @if(@OptionIsSet(6000))
  638.       @File *.* @Out @PerlDrive:@PerlDir\\LIB\\*.*
  639.     @endif
  640.  
  641.     @if(@OptionIsSet(7000))
  642.       @File *.* @Out @PerlDrive:@PerlDir\\LIB\\*.*
  643.     @endif
  644.   @EndLib
  645.  
  646.   // copy install program and rename it to be uninstall
  647.   @File INSTALL.EXE @Out @LyrisDrive:@LyrisDir\\UNINSTAL.EXE
  648.  
  649. @EndDisk
  650.  
  651.   // make CGI temp directory
  652.   @if (@OptionIsSet(4000))
  653.     @TempString = "@CgiDrive:@CgiDir\\TEMP"
  654.     @MkDir(@TempString)
  655.   @endif
  656.  
  657.   // add startup command
  658.   @if (@OptionIsSet(2000))
  659.     @Write("@OS2Drive:\\STARTUP.CMD", "PT", "\nstart @LyrisDrive:@LyrisDir\\LYRIS.EXE\n")
  660.   @endif
  661.  
  662.   // create readme.htm
  663.   @Write("@LyrisDrive:@LyrisDir\\README.HTM", "wr", "<html><head><title>Lyris Readme</title><body bgcolor=\"#ffffff\" text=\"#606060\" link=\"#008cc3\" vlink=\"#008cc3\" alink=\"#ffffff\"><h3>Readme file for @Hostname</h3><p><img src=\"graphics\\line.gif\"><p>\n")
  664.   @Write("@LyrisDrive:@LyrisDir\\README.HTM", "at", "<b>Lyris Web Interface</b><p>The Lyris web interface for your machine should be accessible from:<ul>\n")
  665.   @Write("@LyrisDrive:@LyrisDir\\README.HTM", "at", "<li><a href=\"http://@Hostname/@CgiUrl/lyris.cmd\">http://@Hostname/@CgiUrl/lyris.cmd</a><br></ul>Note: your Lyris Server must be running in order for the Web Interface to function correctly.<p>\n")
  666.   @Write("@LyrisDrive:@LyrisDir\\README.HTM", "at", "<img src=\"graphics\\line.gif\"><p><b>Lyris Documentation</b><p>The Lyris manual can be read online at: <a href=\"http://www.lyris.com/help/\">http://www.lyris.com/help/</a><p>\n")
  667.   @Write("@LyrisDrive:@LyrisDir\\README.HTM", "at", "<img src=\"graphics\\line.gif\"><p><b>Technical Support</b><p>If you need technical support, click here: <a href=\"http://www.lyris.com/forms/\">http://www.lyris.com/forms/</a><p><img src=\"graphics\\line.gif\"></body>\n")
  668.  
  669.   // create databases and store dns server in lyris database
  670.   @if (@OptionIsSet(5000))
  671.     @Write("@LyrisDrive:@LyrisDir\\lyrcmd.cmd", "wr", "@@echo off\ncls\n@LyrisDrive:\ncd\\@LyrisDir\n@LyrisDrive:@LyrisDir\\LYRIS.EXE dbcreate\ncls\n@LyrisDrive:@LyrisDir\\LYRIS.EXE dns @DnsServer\nstart @LyrisDrive:@LyrisDir\\LYRIS.EXE\ndel @LyrisDrive:@LyrisDir\\lyrcmd.cmd\nexit")
  672.     @ExecuteREXXCMDFile("@LyrisDrive:@LyrisDir\\lyrcmd.cmd")
  673.     @UNDO("@UIScriptPath\\BODY.DAT", "PT", "@@RmDir(\"@LyrisDrive:@LyrisDir\\DB\")\n")
  674.     @UNDO("@UIScriptPath\\BODY.DAT", "PT", "@@Delete(\"@LyrisDrive:@LyrisDir\\DB\\*.*\")\n")
  675.     @UNDO("@UIScriptPath\\BODY.DAT", "PT", "@@RmDir(\"@LyrisDrive:@LyrisDir\\MAILQ\")\n")
  676.   @endif
  677.  
  678.   @if ((@OptionIsSet(4000)) && (@OptionIsSet(6000)))
  679.     @Write("@LyrisDrive:@LyrisDir\\LYRWEB.CMD", "wr", "@@@NetscapeDrive:@NetscapeDir\\netscape.exe http://@hostname/@CgiUrl/lyris.cmd\n")
  680.   @endif
  681.  
  682.   // rexx script to display readme file
  683.   @Write("@LyrisDrive:@LyrisDir\\README.CMD", "wr", "@@@NetscapeDrive:@NetscapeDir\\netscape.exe file:///readme.htm\n")
  684.  
  685.   // write out lyris.cmd CGI script
  686.   @if ((@OptionIsSet(4000)) && (@OptionIsSet(6000)))
  687.     @Write("@CgiDrive:@CgiDir\\LYRIS.CMD", "wr", "@@@PerlDrive:@PerlDir\\BIN\\PERL.EXE @CgiDrive:@CgiDir\\LYRIS.PL\n")
  688.   @endif
  689.  
  690.   // create OS/2 icons on the desktop
  691.   @CreateREXXCMDFile("@LyrisDrive:@LyrisDir\\rxscript.cmd")
  692.   @CreateWPFolder("Lyris", "WP_DESKTOP", "LYRIS_FOLDER", "")
  693.  
  694.   // add command to create OBJECT (icon)
  695.   @CreateWPIcon("LYRIS_FOLDER", "Lyris Server", "@LyrisDrive:@LyrisDir\\LYRIS.EXE", "@LyrisDrive:@LyrisDir\\LYRIS.ICO", "@LyrisDrive:@LyrisDir", "")
  696.   @CreateWPIcon("LYRIS_FOLDER", "Read This First!", "@LyrisDrive:@LyrisDir\\README.CMD", "@LyrisDrive:@LyrisDir\\NETSCAPE.ICO", "@LyrisDrive:@LyrisDir", "")
  697.  
  698.   @if ((@OptionIsSet(4000)) && (@OptionIsSet(6000)))
  699.     @CreateWPIcon("LYRIS_FOLDER", "Lyris Web Interface", "@LyrisDrive:@LyrisDir\\LYRWEB.CMD", "@LyrisDrive:@LyrisDir\\NETSCAPE.ICO", "@LyrisDrive:@LyrisDir", "")
  700.   @endif
  701.  
  702.   @CreateWPIcon("LYRIS_FOLDER", "Lyris Manual", "@LyrisDrive:@LyrisDir\\GUIDE.CMD", "@LyrisDrive:@LyrisDir\\GUIDE.ICO", "@LyrisDrive:@LyrisDir", "")
  703.  
  704.   @if (@OptionIsSet(1000))
  705.     @CreateWPIcon("LYRIS_FOLDER", "Uninstall Lyris", "@LyrisDrive:@LyrisDir\\DELICONS.CMD", "@LyrisDrive:@LyrisDir\\UNINSTAL.ICO", "@LyrisDrive:@LyrisDir", "")
  706.   @endif
  707.   
  708.   @FinishREXXCMDFile("@LyrisDrive:@LyrisDir\\rxscript.cmd")
  709.   @ExecuteREXXCMDFile("@LyrisDrive:@LyrisDir\\rxscript.cmd")
  710.   @Delete("@LyrisDrive:@LyrisDir\\rxscript.cmd")
  711.   
  712.   // add uninstaller patch for the desktop icons
  713.   //@Write("@LyrisDrive:@LyrisDir\\DELICONS.CMD", "wr", "/* Delete Lyris Folder*/\n\nretval = SysDestroyObject(\"<LYRIS_FOLDER>\")\n\nEXIT")
  714.  
  715. ///////////////////////////////////
  716. // Say Goodbye
  717. ///////////////////////////////////
  718.  
  719. // Finish Uninstall script 
  720. @FinishUIScript("@LyrisDrive:@LyrisDir")
  721.  
  722. @Display
  723.   @cls
  724.   Lyris Setup has successfully completed.
  725.  
  726.   @if (@OptionIsSet(5000))
  727.   You are ready to start using Lyris!
  728.  
  729.   On your OS/2 desktop, you will see a Lyris folder.
  730.   Tip: to get started quickly, read the Tutorial
  731.   contained in the Lyris Manual.
  732.  
  733.   Note: to log in to the Lyris Web Interface as the
  734.   Lyris administrator, use:
  735.     * Name: admin
  736.     * Password: lyris
  737.   @endif
  738.   @pause
  739. @EndDisplay
  740.  
  741. // end-of-file
  742.