home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: OtherApp
/
OtherApp.zip
/
osdem1.zip
/
INSTALL.INF
< prev
next >
Wrap
Text File
|
1994-07-28
|
12KB
|
341 lines
;;*************************************************************************;;
;; Variables used: ;;
;; ;;
;; InstallationDirectory Directory to install to. ;;
;; YesOrNo9 Scratch variable. ;;
;; Number1 Upgrading a previous installation? ;;
;; 0 - No upgrade. ;;
;; 1 - Demo upgrade. ;;
;; Number9 Scratch variable. ;;
;; Point1 Ask installation directory question. ;;
;;*************************************************************************;;
;; Set up direct mode video.
SetDirectVideo On
;; Set up the system.
;;SetBackgroundCharTo B0 ;; B0-2 are blocks.
SetScreenAttrTo LightMagentaOnBlue
SetMainBorderTo Single
SetTopLineAttrTo WhiteOnBlack
SetTopLineTo " SourceSafe for OS/2 Demonstration "
SetBottomLineAttrTo WhiteOnBlack
SetBottomLineTo " Press <Ctrl-X> to quit installation "
SetPopupAttrTo WhiteOnMagenta
SetPopupBorderTo Single
SetShadowAttrTo MagentaOnBlack
SetAttentionAttrTo YellowOnRed
;; Set up information displayed on an unexpected error.
SetSupportInformation
For assistance, please call 919/821-4525 Monday-Friday 9-6 EST.
Fax support is available at 919/821-5222, 24 hours a day.
EndSetSupportInformation
;; Set it not to query for file replacement.
SetReplacementInquiry Off
;; Turn off the read only warning.
SetReadOnlyInquiry Off
;; Welcome dialog box.
Dialog
.c Welcome to the SourceSafe Demonstration Disk!
SourceSafe is a complete system for version control.
It offers your development process as much automated power
as some systems costing twice as much--with a speed and
ease of use unmatched by ANY other system.
This demonstration disk will install a complete SourceSafe
system onto your hard drive or network, lacking nothing
of the real product except the User's Manual. We encourage
you to use this demonstration in your day-to-day work, since
this is the best way to become acquainted with SourceSafe.
After thirty days, when the demonstration expires, you can
simply stop using the product; or, you can call One Tree
Software to upgrade to a full license. Either way, you will
not lose your code.
EndDialog
;; Get the SourceSafe installation directory.
:Point1
Dialog [InstallationDirectory] 50 UseHeader " Installation directory "
Please enter the directory you would like to place
SourceSafe in. If the directory you specify does
not exist, it will be created. For instance, you
might type R:\SS at this point.
EndDialog
;; Check if the drive is valid.
If DriveIsPresent InstallationDrive
Else
;; Report the bad installation drive.
Dialog UseHeader " Invalid Drive "
The installation directory you specified is on
an invalid drive or volume.
If you mistyped the drive letter, hit any key
to return to the "Installation directory" dialog
box and enter it again. If you are confident
that you typed it correctly, hit Ctrl-X to exit
INSTALL, and then make sure your drives are
mapped correctly.
EndDialog
;; Get the installation directory again.
goto Point1
EndIf
;; Create the installation directory (checking if the user has rights).
If DirectoryAllowable [InstallationDirectory]
Else
;; Could not create the directory.
Dialog
You don't have the necessary network privileges to install
SourceSafe in the specified directory.
EndDialog
goto Point1
EndIf
;; Extract the serialization program so that we can use it.
QueFileGroup 1 To [InstallationDirectory]
GetQuedFiles Quietly
;; Check if this is an upgrade.
[YesOrNo9] := N
If FileExists [InstallationDirectory]\system.ini
[YesOrNo9] := Y
Endif
If FileExists [InstallationDirectory]\srcsafe.ini
[YesOrNo9] := Y
Endif
[Number1] := 0
If [YesOrNo9] = Y
;; Check if this is a demo installation.
Run [InstallationDirectory]\serializ.exe -q -m[InstallationDirectory] Quietly
If OSExitCode <> 1
Dialog
This demo disk cannot be used to update a real (non-demo)
SourceSafe license.
EndDialog
goto Point1
Else
;; A demo upgrade.
[Number1] := 1
EndIf
;; Check if the user really means to upgrade.
Dialog [YesOrNo9] UseHeader " Upgrading "
Press "Y" to upgrade your previous SourceSafe demo,
adding SourceSafe 3.0 for OS/2 to your
existing installation. Press "N" if you do not wish
to upgrade.
EndDialog
;; If the user did not mean to upgrade, start over.
If [YesOrNo9] = N
Dialog
If you want to completely replace your old installation,
losing all your previous projects and files, press
<Ctrl-X> to exit the installation process. Then delete
your SourceSafe installation from DOS, and re-run INSTALL.
If you want to create a new SourceSafe installation in
a different path, leaving the existing installation
alone, press any key other than <Ctrl-X>.
EndDialog
goto Point1
EndIf
Else
;; Check the free space.
If FreeSpaceOnDrive InstallationDrive < 2048000
Dialog [YesOrNo9] UseHeader "Warning"
It appears that there is not enough free space on the
specified installation drive. SourceSafe requires at least
2 meg of free space for a new installation. If you want to
Install SourceSafe on that drive, press <Ctrl-X> to exit the
installation process. Then free up some space on that drive
and re-run INSTALL to try again.
If the installation process has improperly determined the
amount of free space on your drive, you may choose to ignore
this warning and continue with the installation.
Continue (Y/N)?
EndDialog
;; Does the user want to ignore the warning?
If [YesOrNo9] = N
goto Point1
Endif
EndIf
EndIf
;; Create the directory structure.
CreateDirectoryIfNecessary [InstallationDirectory]\os2
CreateDirectoryIfNecessary [InstallationDirectory]\admin
CreateDirectoryIfNecessary [InstallationDirectory]\data
CreateDirectoryIfNecessary [InstallationDirectory]\data\locks
CreateDirectoryIfNecessary [InstallationDirectory]\temp
CreateDirectoryIfNecessary [InstallationDirectory]\users
;; Queue the appropriate files to the main directory.
If FileExists [InstallationDirectory]\system.ini
Else
If FileExists [InstallationDirectory]\srcsafe.ini
Else
QueFiles To [InstallationDirectory]
srcsafe.ini
EndQueFiles
Endif
EndIf
If FileExists [InstallationDirectory]\users.txt
Else
QueFiles To [InstallationDirectory]
users.txt
EndQueFiles
EndIf
;; Queue the appropriate files to the ADMIN directory.
If FileExists [InstallationDirectory]\admin\ss.ini
Else
QueFiles To [InstallationDirectory]\admin
ss.ini
EndQueFiles
EndIf
;; Queue the appropriate files to the DATA directory.
If FileExists [InstallationDirectory]\data\aaaaaaaa.cnt
Else
QueFiles To [InstallationDirectory]\data
aaaaaaaa
aaaaaaaa.a
aaaaaaaa.cnt
EndQueFiles
EndIf
If FileExists [InstallationDirectory]\data\um.dat
Else
QueFiles To [InstallationDirectory]\data
um.dat
EndQueFiles
EndIf
If [Number1] = 0
;; Queue the appropriate files to the TEMP directory.
QueFiles To [InstallationDirectory]\temp
tmp.tmp
EndQueFiles
;; Set up the Admin's user directory.
CreateDirectoryIfNecessary [InstallationDirectory]\users\admin
;; Set up the Guest's user directory.
CreateDirectoryIfNecessary [InstallationDirectory]\users\guest
QueFiles To [InstallationDirectory]\users\guest
help.c
EndQueFiles
EndIf
;; Queue OS/2 files.
QueFileGroup 5 To [InstallationDirectory]\os2
;; Get the files that have been queued.
GetQuedFiles NoThermometer
;; This is to get around an installit bug that won't let me queue the same
;; file to more than 1 place.
If [Number1] = 0
;; Admin's SS.INI.
CopyFiles From [InstallationDirectory]\admin to [InstallationDirectory]\users\admin Quietly
ss.ini
EndCopyFiles
;; Guest's SS.INI.
CopyFiles From [InstallationDirectory]\admin to [InstallationDirectory]\users\guest Quietly
ss.ini
EndCopyFiles
;; Make the file in the temporary directory read only.
SetFileAttrTo 21 for [InstallationDirectory]\temp\tmp.tmp
EndIf
;; Serialize the system.
If [Number1] = 0
Run [InstallationDirectory]\serializ.exe -q -s147-258-369 -m[InstallationDirectory] Quietly
;; If the serialization failed, run it again, but display the error.
If OSExitCode > 0
Run [InstallationDirectory]\serializ.exe -s147-258-369 -m[InstallationDirectory] WhiteOnMagenta
EndIf
EndIf
;; Move the serialization program into the OS2 directory.
CopyFiles From [InstallationDirectory] to [InstallationDirectory]\os2 Quietly
serializ.exe
EndCopyFiles
DeleteFiles from [InstallationDirectory] Quietly
serializ.exe
EndDeleteFiles
;; Update the data directory format.
TextBox @xy(Center,Center)
Updating the Data directory
EndTextBox
Run [InstallationDirectory]\os2\updini.exe -m[InstallationDirectory] Quietly
Run [InstallationDirectory]\os2\ddconv.exe -m[InstallationDirectory] Quietly
ClearScreen
;; Only do this if we are installing the Macros too.
TextBox @xy(Center,3)
SourceSafe macros enable you to run SourceSafe commands automatically
from within your editor or development environment. Press ENTER now to
install macros for all the systems listed below. If you do *not* want
SourceSafe macros for some environments, use the arrow keys and space
bar to turn those checks off. Then press ENTER to confirm your choice.
EndTextBox
GetMenuChoice PreselectAll @xy(Center,15) UseHeader " Macros "
Install macros for the Brief editor
Install macros for the Borland C++ integrated environment (IDE)
Install macros for the Multi-Edit editor (before version 7.0)
Install macros for the Multi-Edit editor (version 7.0 or later)
EndGetMenuChoice
;; Get rid of the text box for the menu.
ClearScreen
;; Process the selections.
InCase Choice is
=1: QueFileGroup 10 To [InstallationDirectory]\macros\brief
=2: QueFileGroup 11 To [InstallationDirectory]\macros\borlandc
=3: QueFileGroup 12 To [InstallationDirectory]\macros\multiedt
=4: QueFileGroup 13 To [InstallationDirectory]\macros\multiedt.7
EndInCase
;; If some files were queued, get them.
If QueSize > 0
GetQuedFiles NoThermometer
EndIf
;; We have successfully completed the installation.
Dialog
The installation has completed successfully. You can now
immediately start using SourceSafe as the user GUEST, or
change to the OS2 directory and run SSADMIN.EXE to begin
adding the real users who will be running SourceSafe.
For a quick look at SourceSafe, it is highly recommended that
you run through the tutorial included with this demo (in the
booklet that says "Congratulations!" on the outside). If you
do not have the tutorial booklet, you can obtain one at no
charge by calling One Tree Software at 1-800-397-2323.
EndDialog
ChangeDirectoryTo [InstallationDirectory]
SetExitMessageTo "Installation completed successfully."
SoLong
ENDSCRIPT