home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
A World of Art - The Ult…ate Multimedia Collection
/
ImpressionismAndItsSources.bin
/
setup.inf
< prev
next >
Wrap
Text File
|
1994-12-15
|
7KB
|
194 lines
SetVariable(ProgPath,"C:\TDC")
SetVariable(ProgName,"ELA.EXE")
SetVariable(InstallName, "Impressionism")
SetVariable(DataSpace,"1.7 Megabytes")
SetVariable(ProgSpace,"1.1 Megabytes")
SetVariable(EbookSize, 1 100 000)
SetVariable(DataSize, 1 700 000)
SetVariable(TitleName,"Impressionism")
SetVariable(IniName,"EBOOK.INI")
GetCurPath (CurPath)
; The following instructions are displayed several times so we put the
; text in a variable.
;
SetVariable (InsAskPath,
"Modify the default path if necessary, and then click on {\b OK} or "
"press {\b Enter} to continue. ")
SetVariable (InsBadPath,
"The path is currently not valid. You must specify a drive "
"letter, a colon, and a directory from the root of the drive. ")
; Set the title of all dialog windows.
;
WindowTitle (<InstallName>" Setup")
; Set the instruction text used in the initial instructions window.
; Add Help instructions if the file SETUP.HLP exists.
;
SetVariable (InitialInstructions,
"Click on {\b OK} or press {\b Enter} to continue. "
"To abort the setup, click on the {\b Exit} button at the "
"bottom right corner of the screen, or press {\b F3}. ")
IfFileExistsGoto ("SETUP.HLP", AddHelpInstructions)
Goto (DisplayInitialMessage)
AddHelpInstructions:
SetVariable (InitialInstructions,
<InitialInstructions> "You can always obtain help by "
"clicking on the {\b Help} button or pressing {\b F1}. ")
; Display the initial message.
;
DisplayInitialMessage:
DisplayMessage (
"The Setup program will install " <InstallName> " on your hard disk."
" There are two options available for installation:%n%n"
"Run " <InstallName> " Entirely off of the CD-ROM.%n%n"
"Copy " <ProgName> " to your Hard Disk to improve execution speed.%n%n",
<InitialInstructions>)
;ask if user wants to copy the ebook files to hard disk
AskYesNo (Prompt, "Yes",
"The " <TitleName> " files require about " <ProgSpace> " of disk "
"space. Would you like to copy them to your hard disk?",
<TitleName> " Can be run from the CD-ROM, but copying it to your "
"Hard disk will improve execution speed.\par\par "
"Click on {\b Yes} or press {\b 'Y'} to copy the " <TitleName>
" files.\par "
"Click on {\b No} or press {\b 'N'} to proceed without copying the "
<TitleName> " source files.")
IfEqualGoto (<Prompt>, "No", DontPromptTitlePath)
AskAgain:
; Ask for where the Ebook files should be installed.
;
PromptEbookPath:
PromptPath (ProgPath, <ProgPath>,
"Where should Setup install the Program files?",
<InsAskPath>, <InsBadPath>)
; Don't allow Ebook to be installed in the Windows directory
;
GetWinPath (WinPath)
GetWinSystemPath (SystemPath)
IfNotEqualGoto (<ProgPath>, <WinPath>, CheckSpace)
DisplayMessage (
"You cannot install this program into the Windows directory. "
"Please enter another directory.",
"Click on {\b OK} or press {\b Enter} to enter another directory "
"for this program.")
Goto (PromptEbookPath)
; Check if there is enough space to install the Ebook files.
;
CheckSpace:
GetSpaceAvailable (SpaceAvailable, <ProgPath>)
IfLowerGoto (<EbookSize>, <SpaceAvailable>, EbookPathOK)
AskYesNo (Prompt, "Yes",
"There may not be enough space to install the "<InstallName>" Files."
" Would you like to enter a new path for the files? ",
"Click on {\b Yes} or press {\b 'Y'} to enter a new path for the "
"program files.\par "
"Click on {\b No} or press {\b 'N'} to continue anyway.\par "
"Click on the {\b Exit} button or press {\b F3} to exit Setup. "
"You may wish to exit Setup and make some more space on your hard "
"disk. Run Setup again when there is enough space on your hard "
"disk. ")
IfEqualGoto (<Prompt>, "Yes", PromptEbookPath)
EbookPathOK:
;create the subdirectory
MakePath(<ProgPath>)
;copy the ebook files
OpenCopyProgress(
"Setup is copying the "<InstallName> " Program files.",
"Please wait while Setup is copying files.")
CopyFile("ELA.EXE",<ProgPath> "ELA.EXE", 250000)
CopyFile("TITLE.DIB",<ProgPath> "TITLE.DIB", 93000)
CopyFile("TITLE.WAV",<ProgPath> "TITLE.WAV", 550000)
CopyFile("EBOOK2.HLP",<ProgPath> "EBOOK2.HLP",50000)
CopyFile("INTRO.EXE",<ProgPath> "INTRO.EXE",50000)
CopyFile("TDC.BMP",<ProgPath> "TDC.BMP",50000)
CopyFile("TDC.ICO",<ProgPath> "TDC.ICO",50000)
CloseCopyProgress()
SetVariable(DataPath,<CurPath>"DATA")
GoTo(EbookCopied)
DontPromptTitlePath:
SetVariable(DataPath,<CurPath>"DATA")
SetVariable(ProgPath,<CurPath>)
GoTo(EbookNotCopied)
EbookCopied:
SetVariable(ProgPath,<ProgPath>)
EbookNotCopied:
;copy the ebook.ini file and add the paths
AddToProfileIni(<IniName>,"PATHS","CDROM",<CurPath>)
AddToProfileIni(<IniName>,"PATHS","PICTURE",<CurPath>"PIX")
AddToProfileIni(<IniName>,"PATHS","DATA",<CurPath>"DATA")
AddToProfileIni(<IniName>,"PATHS","INDEX",<CurPath>"DATA")
AddToProfileIni(<IniName>,"PATHS","PSTAMPPATH",<CurPath>"DATA")
AddToProfileIni(<IniName>,"PATHS","MIDIPATH",<CurPath>"MIDI")
;add the info for this title to ebook.ini
AddToProfileIni(<IniName>,"ELAVOL4","Title","Impressionism and its Sources")
AddToProfileIni(<IniName>,"ELAVOL4","Card","WINCARD4")
AddToProfileIni(<IniName>,"ELAVOL4","NumberIndex","6")
AddToProfileIni(<IniName>,"ELAVOL4","IndexNames","ARTIST4,TITLE4,MEDIUM4,DATE4,OBJ4,CSCHOOL4");
AddToProfileIni(<IniName>,"ELAVOL4","IndexTitles","Artist,Title,Medium,Date,Object,School");
AddToProfileIni(<IniName>,"ELAVOL4","PStamp","1")
AddToProfileIni(<IniName>,"ELAVOL4","BrowseMode","0")
AddToProfileIni(<IniName>,"ELAVOL4","SplitPath","3")
AddToProfileIni(<IniName>,"ELAVOL4","NumberPixColumns","5")
AddToProfileIni(<IniName>,"ELAVOL4","NumberPixRows","3")
AddToProfileIni(<IniName>,"ELAVOL4","NumberMIDI","5")
AddToProfileIni(<IniName>,"ELAVOL4","MidiFiles","ETD9OP25,ETDO1012,BERCEU,FANTAS,POLONA")
AddToProfileIni(<IniName>,"ELAVOL4","MidiTitles","Etude 9/Chopin,Etude 10/Chopin,Berceuse/Faure,Fantasie Imp./Chopin,Polonaise Aflat/Chopin")
;add the program group
OpenProgManProgress("Setup is adding a Program Manager Group",
"Please wait while Setup adds the Group")
OpenProgManGroup("TDC Interactive")
AddProgManItem("Impressionism and its Sources",<ProgPath>"Intro.exe ELA.EXE ELAVOL4",
<ProgPath>"TDC.ICO",0)
CloseProgManProgress()
;cleanup
IfIncompleteGoto(NotInstalled)
Installed:
SetVariable (Message,
"The Setup program has successfully installed the "
<TitleName> ".%n%n")
GoTo(Exit)
NotInstalled:
SetVariable (Message,
"Setup has finished, but the installation was incomplete. "
"You should correct any problems (such as insufficient disk "
"space, missing source files, or locked directories) and run "
"Setup again.%n%n")
Exit:
DisplayMessage (<Message>,
"Click on {\b OK} or press {\b Enter} to return to the "
"Program Manager.")