home *** CD-ROM | disk | FTP | other *** search
- DISCLAIMER
- ----------
- I wrote this software mainly for myself, and it works for me.
- It may not work for you, though. If it breaks your data, PC, reputation
- or anything else you have my condolences. But you don't get a guarantee,
- so I can't acceept any responsibility. Sorry....
-
- This software is distributed as FREEWARE which means that you can copy
- it as much as you like, and you don't have to give me any money.
- But you can't modify it and you must include this text file with any copies.
-
- This software is copyright (c)1995, 1996 Marc Evans.
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
- Installation Expert (v1.0):
-
- Installation (of the installation expert!)
- -------------
-
- 1) Unzip the package. (You must have done that to be reading this...)
- 2) Make sure that delphi is NOT running.
- 3) Run the SETUP.EXE program from wherever you unzipped it to.
- 4) Run delphi.
-
- This will copy the necessary files into the specified directory. It will
- also modify DELPH.INI in the windows directory to include a line that will
- load the install expert, and create a file LEVINST.INI in the windows
- directory.
-
- The newly created LEVINST.INI file in the windows directory will need the
- TempDir item pointing to a directory that can be used for temporary
- files. This MUST point to a valid, existing directory, otherwise the
- expert will not work.
-
- The next time Delphi is loaded, a new menu item 'Leviathan Install Expert'
- will appear on the help menu. Click this to invoke the expert.
-
- Useage
- ------
-
- There are 9 screens in the Expert process. These are described below:
-
- 1) Application Name. This will be used to describe the application
- in the SETUP program, and will also be the name of the program
- manager group used to hold the installed files.
-
- 2) Options: Check the relevant options applicable to the application
- setup process. Compression will only be available if the Microsoft
- program COMPRESS.EXE is found in the Windows directory.
-
- 3) Install drive. The expert will offer a list of available floppy and
- removeable drives. Choose one to create the installation disks on.
-
- 4) File list. Choose the files that need to be installed to make up
- the application. Whenever this list is changed, the program manager
- mappings are reset to their default values. Multiple files can be
- selected by dragging the mouse in the file listbox. If extra tasks
- are being spawned, the files needed for them should NOT be defined
- here. This window is for defining files for the applicaton setup ONLY.
- See the notes on extra files for more information.
-
- An install path also needs to be set. There is no validation done on
- this path, so enter a full (valid) pathname.
-
- 5) Program Manager mappings. A list of all executable and help files
- is displayed. Navigate the list with the cursor keys or mouse and
- type in the program manager name in the entry area at the bottom.
- If the name is blank then no program manager item will be created.
- If all items are blanked, then the program manager group will not
- be created.
-
- 6) BDE Alias. Define the name and path of the alias to be inserted
- into the BDE upon setup. The alias type is always STANDARD.
-
- 7) Ini Files. See separate note.
-
- 8) External tasks. see seperate note.
-
- 9) Create disks. Click the button to make a set of install disks.
- If compression is selected then COMPRESS.EXE will be run from
- DOS. After this, the system will prompt for formatted disks to
- be inserted into the selected drive and the install files will
- be copied.
-
-
- INI Files
- ---------
-
- The Expert allows the editing or creation of INI files during the
- setup process. To edit an INI file, click the 'Include INI File'
- button. Enter the name of the INI file, then enter the section
- name, and finally the actual data to include in the section. This
- usually takes the form of 'Ident=Value'
-
- If the section or item already exist in the specified INI file
- then the current values will be changed to reflect the new ones
- entered. If either section or item does not exist, it will be added.
- If the INI file does not exist it will be created, and the sections
- and items defined will be added to it.
-
- Whenever a path needs to be defined in the INI file editor, whether
- it is a path to the INI file or a path used in a section, there
- are two substitutions that can be used:
-
- %I will substitute the installaton directory chosen at install time.
- %W will substitute the current Windows directory.
-
- so to modify the WIN.INI the path to the INI file is %W\WIN.INI.
-
- Once you have started to add an INI file, you cannot 'cancel' the
- oprtation. If you change your mind, finish adding the file then remove
- it from the list.
-
-
- Extra Tasks
- -----------
-
- It is sometimes desireable to run external tasks from an installation
- program. The most common use of this is to spawn a second, related
- install program such as a dongle installer, or to execute notepad with
- a set of release notes. The task definition list allows this by
- defining two items: The command line to execute (passed to WinExec) and
- (optionally) any other files that are needed to complete execution
- of this task. In the above example, the command line would be set
- to : 'notepad readme.txt' and the associated file would be
- 'readme.txt'. Notepad is already on the system, so we do not need to
- copy that as well.
-
- The outline view shows the tasks as folders, and any files needed
- to complete the task as items under the folder.
-
- All the extra files needed are in the install script under the
- heading [ExtraFiles].
-
- The Expert checks the free space on the current disk before copying
- extra files. All the extra files must reside on the same disk, so
- there cannot be a larger total extra filesize than the total disk
- capacity. If there is not enough space on the current disk, the IE
- will prompt for an extra disk to complete the creation of the disks.
-
- The extra files are also copied uncompressed, and not copied onto the
- destination disk at install time.
-
- Other Notes
- -----------
- It is only possible to add one BDE alias at the current time.
-
- Files are copied onto the installation floppy disks in the order that
- they occur in the listbox. Intelligent copying to save disk space
- may turn up, if I can be bothered.
-
- COMPRESS.EXE is a M$ Product, so I can't include it with this software.
- It is a command line utility and can be found with the Visual Basic
- Setup Kit included with VB3 Pro. It can probably be found with other M$
- development tools. For the Installation Expert to use it, it must be in
- the windows directory (eg C:\WINDOWS).
-
- INI Files are NOT backed up before being changed, and the user does NOT
- get asked whether they want their INI files stamped over. So if the change
- may need to be undone then document it somewhere with your program
- documetation.
-
- To Do (sometime):
- -----------------
- Delete my temporary files from my temp directory!
- Install into a subdirectory structure.
- Specify files for windows and windows\system dirs.
- Text screen before/after install?
- Interbase BDE aliases?
-
-
- Thanks To:
- ----------
-
- Nick Chappell, }
- Sean Scaplehorn, } For advice and helpful comments.
- Ian Stopher }
-
- Bradly Olsen } BDE Alias setting code - but if you have any problems
- with that, come back to me...
-
- The various Internet web pages and newsgroups for supplying me with the
- code snippets that I plagierized to make this application!
-
- To contact me:
- --------------
-
- Any comments, improvements or offers of 'cute, cartoony pictures'
- can be Emailed to:
-
- marc@leviathn.demon.co.uk.
-
-