home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Select: Windows 95 Special 1
/
WINDOWS95_1.ISO
/
utils
/
scrac
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1996-02-28
|
3KB
|
86 lines
@echo off
set PROGNAME=Screen Saver Activate
if not exist .\INSTALL.BAT goto DIRBAD
if not exist .\SSACTVAT.WRI goto DIRBAD
if not exist .\SSACTREG.WRI goto DIRBAD
if not exist .\SSACTVAT.EXE goto DIRBAD
if not exist .\YESNO.COM goto DIRBAD
if exist %windir%\SYSTEM32\CONFIG goto WINNT
if exist %windir%\SYSTEM\IOSUBSYS\*.VXD goto WIN95
echo Install can't find a Windows NT or Windows 95 SYSTEM directory.
echo See the file SSACTVAT.WRI for manual installation instructions.
goto done
:DIRBAD
echo INSTALL is unable to find the files to install...
echo INSTALL must be executed from the same directory as the files to install.
goto done
:WINNT
set OS=NT
set INSDIR=c:\ssactivate
if exist "c:\win32app" goto W32DIR
goto DOWNT
:W32DIR
set INSDIR=C:\win32app\ssactivate
if exist "%INSDIR%" goto DOWNT
md "%INSDIR%"
:DOWNT
echo Install will copy the %PROGNAME% files to %INSDIR%.
echo.
echo If %PROGNAME% is currently active, you must terminate the
echo currently running instance and restart this installation program.
echo.
yesno Do you wish to continue with this installation?
if ERRORLEVEL 1 goto CONT1
goto DONE
:CONT1
echo.
echo Copying %PROGNAME% files to %INSDIR%...
copy SSACTVAT.EXE %INSDIR%\ssactivate.exe
copy SSACTVAT.WRI %INSDIR%\ssactvat.wri
copy SSACTREG.WRI %INSDIR%\ssactreg.wri
rename ssactvat.txt ssactivate.txt
:NTDONE
echo.
echo %PROGNAME% has been installed in %INSDIR%
echo.
yesno Do you wish to run %PROGNAME% now?
if ERRORLEVEL 1 start %INSDIR%\ssactivate.exe
goto done
:WIN95
set OS=95
set INSDIR=c:\ssactivate
if not exist "c:\Program Files\Accessories\*.*" goto CHKDIR95
set INSDIR=C:\Program Files\ssactivate
:CHKDIR95
if exist "%INSDIR%\*.*" goto DO95
md "%INSDIR%"
cls
:DO95
echo Install will copy the %PROGNAME% files to:
echo %INSDIR%.
echo.
echo If %PROGNAME% is currently active, you must terminate the
echo currently running instance and restart this installation program.
echo.
yesno Do you wish to continue with this installation?
if ERRORLEVEL 1 goto CONT2
goto DONE
:CONT2
echo.
echo Copying %PROGNAME% files to %INSDIR%...
copy ssactvat.exe "%INSDIR%\ssactivate.exe"
copy ssactvat.wri "%INSDIR%\ssactivate.wri"
copy ssactreg.wri "%INSDIR%\SSActivate Registration Form.wri"
rename ssactvat.txt ssactivate.txt
:95DONE
echo.
echo %PROGNAME% has been installed in %INSDIR%
echo.
yesno Do you wish to run %PROGNAME% now?
if ERRORLEVEL 1 start "%INSDIR%\ssactivate.exe"
:DONE
set INSDIR=
set PROGNAME=
if "%OS%" == "NT" pause
set OS=