home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Standards
/
CD1.mdf
/
hyperrfc
/
setup.inf
< prev
next >
Wrap
Text File
|
1995-06-12
|
6KB
|
185 lines
SetVariable (TitleName, "RFCs in Hypertext") ; Name of the title
SetVariable (ViewerSize, 6 564 970) ; Size of the Viewer files that will
; be copied over (measured in bytes)
SetVariable (ViewerPath, "C:\VIEWER") ; Default path for the Viewer
; Set the title of all dialog windows.
;
WindowTitle (<TitleName> " 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}. ")
DisplayInitialMessage:
DisplayMessage (
"The Setup program will install RFC's In HyperText"
" and the Multimedia Viewer on your hard disk.",
<InitialInstructions>)
GetFromWinIni (ViewerPathTemp, "Multimedia Viewer", "ViewerPath", "Undefined")
IfEqualGoto (<ViewerPathTemp>, "Undefined", PromptViewerPath)
SetVariable (ViewerPath, <ViewerPathTemp>)
AskAgain:
PromptViewerPath:
PromptPath (ViewerPath, <ViewerPath>,
"Where should Setup install the Multimedia Viewer?",
"Modify the default path if necessary, and then click on {\b OK} or "
"press {\b Enter} to continue. ",
"The path is currently not valid. You must specify a drive "
"letter, a colon, and a directory from the root of the drive. ")
GetSpaceAvailable (SpaceAvailable, <ViewerPath>)
IfLowerGoto (<ViewerSize>, <SpaceAvailable>, ViewerPathOK)
AskYesNo (Prompt, "Yes",
"There may not be enough space to install the Multimedia Viewer. "
"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 "
"Multimedia Viewer 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", PromptViewerPath)
ViewerPathOK:
AskYesNo (AskAgain, "No",
"Would you like to change anything before proceeding with "
"the installation?",
"Click on {\b Yes} or press {\b 'Y'} to reenter options.\par "
"Click on {\b No} or press {\b 'N'} to proceed with installation. ")
IfEqualGoto (<AskAgain>, "Yes", AskAgain)
SetVariable (TitlePath, <ViewerPath> "INTERNET")
MakePath (<ViewerPath>)
MakePath (<TitlePath>)
OpenCopyProgress (
"Setup is copying the Multimedia Viewer runtime files.",
"Please wait while Setup is copying files.")
CopyFile ("FTENGINE.DLL", <ViewerPath> "\FTENGINE.DLL", 41000)
CopyFile ("FTUI.DLL", <ViewerPath> "\FTUI.DLL", 54000)
CopyFile ("VIEWER.EXE", <ViewerPath> "\VIEWER.EXE", 241000)
CopyFile ("MVAPI.DLL", <ViewerPath> "\MVAPI.DLL", 5120)
CloseCopyProgress ()
OpenCopyProgress (
"Setup is copying the Multimedia Viewer Book files.",
"Please wait while Setup is copying files.")
CopyFile ("INTERNET.MVB", <TitlePath> "\INTERNET.MVB", 2608210)
CopyFile ("INTERNET.IND", <TitlePath> "\INTERNET.IND", 3366912)
CopyFile ("RFCS.ICO", <TitlePath> "\RFCS.ICO", 766)
CloseCopyProgress ()
;;*************Begin Title Specific Section***************************
OpenProgmanProgress (
"Setup is adding Program Manager groups.",
"Please wait while Setup adds {\b Program Manager} groups".)
OpenProgmanGroup ("Viewer", Delete) ;; Adding the group "Viewer".
AddProgmanItem (<TitleName>,
<ViewerPath> "VIEWER.EXE " <TitlePath> "\INTERNET.MVB",
<TitlePath> "\RFCS.ICO", 0)
CloseProgmanProgress ()
AddToWinIni ("Multimedia Viewer", "ViewerPath", <ViewerPath>)
AddToWinIni ("Extensions", "mvb", "viewer.exe ^.mvb")
;ModifyAutoexec (<ViewerPath>, "", "", "AskInstructions", "Review", "Save")
IfIncompleteGoto (Incomplete)
SetVariable (Message,
"The Setup program has successfully installed the "
"Multimedia Viewer and "
<TitleName> ".%n%n")
Goto (CheckAutoexec)
Incomplete:
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")
CheckAutoexec:
;;====================================================================
;; IfMustModifyGoto (Label)
;; ------------------------
;; This command will branch to the label 'Label' if Setup had to
;; modify the AUTOEXEC.BAT file, but the user chose to do the
;; modifications themselves later.
;;====================================================================
;IfMustModifyGoto (MustModify)
;;====================================================================
;; IfMustRebootGoto (Label)
;; ------------------------
;; This command will branch to the label 'Label' if Setup has
;; modified the AUTOEXEC.BAT file and the user must now reboot their
;; computer.
;;====================================================================
;IfMustRebootGoto (MustReboot)
Goto (End)
MustModify:
SetVariable (Message,
<Message> "Remember to modify your AUTOEXEC.BAT file and reboot your "
"computer before using the Multimedia Viewer.%n%n")
Goto (End)
MustReboot:
SetVariable (Message,
<Message> "For the changes to your AUTOEXEC.BAT file to come into "
"effect, you must reboot your computer. To do this, you must first "
"exit Windows and then simultaneously hold down the Ctrl, Alt, and "
"Del keys. You must do this before using the Multimedia Viewer.%n%n")
End:
;SetVariable (Message,
; <Message> "The advantages of being a registered user are numerous. "
; "Please send in your Product Registration Card TODAY.")
DisplayMessage (<Message>,
"Click on {\b OK} or press {\b Enter} to return to the "
"Program Manager.")