home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Bill Gates - Unplugged - Comdex 1993
/
CD_ROM.ISO
/
ole
/
mspub
/
pubdemo
/
install
/
dosinstl.bat
< prev
next >
Wrap
DOS Batch File
|
1993-06-17
|
4KB
|
146 lines
echo off
cls
if "%1"=="" goto TRYAGAIN
if "%2"=="" goto TRYAGAIN
if "%2"=="C" goto TRYAGAIN
if "%1"=="A" goto TRYAGAIN
if "%1"=="B" goto TRYAGAIN
if "%2"=="c" goto TRYAGAIN
if "%1"=="a" goto TRYAGAIN
if "%1"=="b" goto TRYAGAIN
echo.
echo.
echo.
echo ************
echo Microsoft Presents
echo Microsoft Publisher 2.0 Demo
echo.
echo DOS INSTALLATION
echo.
echo. (for Windows, use install.exe)
echo.
echo.
echo This installation process requires 4.5 Mb
echo of free disk space on your hard drive.
echo To Run the demo, 490 KB of available RAM
echo is required. It takes from 2 to 7 minutes
echo to automatically install, depending on your
echo system.
echo.
echo Source Drive: [%1]
echo Destination Drive: [%2]
echo.
echo It will make a directory called %2\PUBDEMO.
echo.
echo If you wish to quit at this time,
echo please press [Ctrl] [C].
echo.
pause
if "%1"=="A:" goto AINSTALL
if "%1"=="B:" goto BINSTALL
if "%1"=="a:" goto AINSTALL
if "%1"=="b:" goto BINSTALL
:AINSTALL
a:free %2 4500000
if errorlevel 1 goto NOTFREE
a:free %2 5950000
if errorlevel 1 goto FROMA
md %2\pubdemo >nul
echo.
echo Now installing the demo. Please wait...
copy a:pubarj.exe %2\pubdemo >nul
%2\pubdemo\pubarj.exe -e -y %2\pubdemo\
%2\ >nul
cd %2\pubdemo >nul
del %2\pubdemo\pubarj.exe >nul
copy a:pubdemo.ico %2\pubdemo >nul
pubdemo
goto GOODBYE
:FROMA
md %2\pubdemo >nul
echo.
echo Now installing the demo. Please wait...
a:pubarj.exe -e -y %2\pubdemo\ >nul
%2\ >nul
cd %2\pubdemo >nul
copy a:pubdemo.ico %2\pubdemo >nul
pubdemo
goto GOODBYE
:BINSTALL
b:free %2 4500000
if errorlevel 1 goto NOTFREE
b:free %2 5950000
if errorlevel 1 goto FROMB
md %2\pubdemo >nul
echo.
echo Now installing the demo. Please wait...
copy b:pubarj.exe %2\pubdemo >nul
%2\pubdemo\pubarj.exe -e -y %2\pubdemo\ >nul
%2\ >nul
cd %2\pubdemo >nul
del %2\pubdemo\pubarj.exe >nul
copy b:pubdemo.ico %2\pubdemo >nul
pubdemo
goto GOODBYE
:FROMB
md %2\pubdemo >nul
echo.
echo Now installing the demo. One moment please...
b:pubarj.exe -e -y %2\pubdemo\ >nul
%2\ >nul
cd %2\pubdemo >nul
copy b:pubdemo.ico %2\pubdemo >nul
pubdemo
goto GOODBYE
:TRYAGAIN
cls
echo *******************
echo To install the demo, please type:
echo [source drive]install [source drive] [destination drive]
echo For example:
echo a:install a: c:
echo (remember to put the colons after the drive letters)
echo.
pause
goto EXIT
:NOTFREE
cls
echo *******************
echo Your hard disk [%2] doesn't contain enough free space to
echo install the Publisher Demo. You need at least 4.5 megabytes
echo (4500 kilobytes) of free space to install the demo.
echo *****
echo Please remove some unnecessary files and try again!
echo.
pause
goto EXIT
:GOODBYE
echo *******
echo Thank you for watching the Publisher 2.0 Demo.
echo.
echo Type "pubdemo" in this directory
echo to run the demo again.
echo *******
echo.
pause
goto EXIT
:EXIT
rem Demo produced by:
rem Graphic Media, Inc
rem 411 SW 2nd Ave.
rem Portland, OR 97204
rem 503-223-2262