**************************************
*                                    *
*  Setup program for Windows v 5.00b *
* ---------------------------------- *
*                                    *
* (c)1996 by J. BERTRAND - L. TANNER *
*                                    *
**************************************


This program is Freeware !!!

Use it without warranty.


**********
* Thanks *
**********

	I want to thanks Herve DEQUANT a friend from my
job, who give me advices about color (I am color blind) 
and teach now Delphi with me.

	
**************
* Components *
**************


	For all project I use :
	  TVersionInfo component by W. Murto (CIS 73730,2505)
	     (VerInfo.zip FREEWARE)
	For Setup I use :
	  TW95Meter by J. Newlin (CIS 71535,66)
	    (W95Meter.zip FREEWARE)
	  TGradientFill by Adrock Software (CIS 100353,110)
	    (AdGrad.zip SHAREWARE 10$ please register to Adrock)


****************
* Introduction *
****************


	*********
	* SETUP *
	*********

	This program is able to install files from floppys to
your hard disk and create groups and icons in your Program
Manager. It create his own log install file. Setup is able to
create, delete or modify section, lines or value on Ini file
where you want on target drives.

	You can move from window to window using buttons Next
and Back. At anytime you can exit from installation by clicking
on Cancel button.

	User can choose between standard and custom install. With
standard install all files will be copy onto hard drive. With
custom install user can choose differents ways.

	User is allow to change target drive and directory. To
make or not an uninstall file (it will use by Unsetup 4.xx) ; to
copy or not uninstall application.

	User is allow to choose some parts of files by choose grouped
file making by the Author (E g Main programm, examples, help files).


	Nota :

		If you want to use compress files from COMPRESS.EXE
(making by Microsoft), compress your files with -r option !
		All the source files are provided in Delphi 1.0


***************
* Improvments *
***************

	Setup ask you between standard and custom install

	Now Setup is able to create directory C:\TRY1\TRY2 even
if C:\TRY1 doesn't exist (Thanks Larry for this Tips).

	Now Setup is able to install files in differents target
drives or directories (C:\INSTALL for main application and 
C:\UNINSTAL for UNINSTALL files). You just have to say that in 
Setup.ins file on %x variables. You can to hard coded on setup.ins
file directory you want for E g : C:\CHUCK. See Setup.ins file
given with.

	Setup use only one copy procedure for compress or
regular file (Larry again ! but who write this application in 
fact me or Larry). I have modify this procedure and now Setup
show you a progress bar graph during copy.

	Setup is a Windows 95 like install application, I mean 
that you can move around some windows to customize your
installation.

	Setup can access your Ini file or Windows Ini files to
make some modification (creation, deletion and modification) on
file, section or line. For E g, you are allow to create an
association between your application and current suffix of your
data files.

	Now Setup is able to create and install items in multiple
groups (maximum 5 groups).

	Now Setup install only files that user choose by packet file.

	Now if you do not give in Setup.ins file a source drive and
directory Setup use current drive and directory for installation,
so you can use this improvement when you do not know if you will
use drive A: or B: to install (or any drive in fact)


**********************
* Future improvments *
**********************


	I am waiting for your suggestions but I want to put it
in 32 bits version when I will have Delphi 2.0 (so LFN too).


******************
* How to install *
******************

	Just lauch SETUP.EXE from A: or from C: (if you want to
modify the source drive edit SETUP.INS file and modifiy the
letter on the ODSK parameter in [ORIGIN] section or OPAT in same
parameter section).

	This program copies all the files onto your hard disk (you
can specify the path) and creates a SETUP.GRP group in your
program manager. It creates a UNSETUP.INS file, this is the log of
installation.

	I have given you all the source files so you can edit and 
modify as you want. If you add any facilities please write to me 
on Compuserve (ID 100621,3247).
	
	If you use part of install pack (Create, Unsetup, Setup),
please let name into or notify that to users, I will be very
gratefull on that. Thanks in advance.


********************
* How to uninstall *
********************

	Just lauch UNSETUP.EXE on the directory you install SETUP.
	After click on UnInstall button and choose UNSETUP file on
the main directory you had install your application.


***********
* History *
***********

	1.00a Original version just with dialog
	1.15a Adding a progress bar during copying files
	1.50a Adding blue background
	1.50b Adding big titles with gradient background
	      Adding display of space require for installation
	2.00  Adding possibility to have compressed file
	3.00  Windows 95 like install application
	3.00a Adding standard/custom installation
	      Adding multi target drives and directories in %x
	3.00b Adding multi target drives and directories but
	      hard coded in setup.ins file
	3.00c Adding a progress bar graph during copy
	4.00a Adding support of Ini file so modify,delete and create
	4.00b Windows version check for Progman calls with DDE
	4.00c Littles modifications on INI traitments
	4.00d Spelling check (by Larry 'cause he's american & I'am french)
	4.00e Increasing number of files and icons to 160
	4.50a Adding possibilities to create multi groups
	5.00a Adding packet file function to choose grouped file
	5.00b Adding possibility to not set source drive and directory so
		  using location of Setup.exe drive and directory


*************************
* Setup.Ins description *
*************************

; %1 : Target directory
; %W : Windows directory
; %S : Windows System directory

[INFORMATION]
TITLE=/Title of program to install/
SUBTITLE=/Sub title of program to install/
VERSION=/Version of the program to install/
AUTHOR=/Author of the program/
COPYRIGHT=/Year of creation/

[DISKS]
; This is the number of floppies needed 
DSK=/Number of floppy needed/
SPC=/Size in bytes on application to install/

[ORIGIN]
; Source drive and path (only one !)
ODSK=/Source drive/
OPAT=/Source directory/

[DESTINATION]
; Target drives and paths (multiple is allowed)
NUM=/Number of targets you want/
DDSK=/Target Drive #1/
DPAT=/Target path #1/
DDSK=/Target Drive #2/
DPAT=/Target path #2/

[GROUP]
;x=GroupName,FileName
NUM=/Number of group to create/
1=/Name of the group/,/Name of .GRP file/

[PACKED FILE]
;x=Packet file description
NUM=/Number of packet file/
1=/Description of packet file #1/
2=/Description of packet file #2/

[ICONS]
;x=#Floppy,FileName,TargetPath,IconName,GroupNumber,PacketFile Number
NUM= /Number of Icon to create/
1=/ID of floppy/,/Name of file/,/Path of file/,/Icon name/,/Number of group/,/Packet number/

[FILES]
;x=#Floppy,FileName,TargetPath,PacketFile number
NUM=/Number of file to copy/
1=/Id of floppy/,/Name of file/,/Path of file/,/Packet number/

[RUN]
;x=FileName,FilePath,DocName,DocPath,PacketFile number
NUM=/Number of application to start/
1=/Name of application/,/path of application/,/Name of document/,/Path of document/,/Packet number/

[INI]
;x=FileName,FilePath,SectionName,LineName,Value
NUM=/Number of lines follows/
1=/Ini file with .INI extension/,/Path of Ini File/,/Ini section/,/Ini line/,/Ini value/


Notes :
=======

	About RUN section :

		If document you want to lauch do not exist on your
	hard drive, you must set his name on Icon or FILE section 
	to copy it, else application you specify (Eg Notepad.exe)
	lauch but with a virgin document.


	About INI section :

		If you want to delete a section, write like that
			1=WIN.INI,%W,Desktop,,
		If you want to clear a line on a section, write like that
			1=WIN.INI,%W,Desktop,Wallpaper,
		If you want to delete an Ini file, write like that
			1=FileNAME.INI,%W,,,
		if you want to modifiy a value in a line in a section, write like that
			1=WIN.INI,%W,Desktop,WallPaper,Picture.Bmp



	I hope that the files above gives you all information you
need to create another installation program or just to use it for
your own program.



	Jrme BERTRAND, PARIS
