home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Panoráma
/
computer_panorama_1997-12-hibas.iso
/
SHARE
/
ANTIVIR
/
AVPD115.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1997-11-01
|
6KB
|
206 lines
@echo off
echo off
if not exist avp.exe goto error1
if %1X==X goto error2
if exist %1\nul goto disk
md %1
if not exist %1\nul goto error3
echo ═êα╧┤L═! >%1\ask.com
cls
:disk
if exist %1\config.sys goto error5
if exist dummy.tst del dummy.tst >nul
if exist %1\dummy.tst del %1\dummy.tst >nul
echo test >%1\dummy.tst
if exist dummy.tst goto carryon
if not exist %1\dummy.tst goto error4
cls
echo.
echo AntiViral Toolkit Pro for DOS - Installation
echo ────────────────────────────────────────────
echo.
echo.
echo Copying AVP files to %1 Please wait . . .
copy *.* %1 >nul
:carryon
cls
echo.
echo AntiViral Toolkit Pro for DOS - Installation
echo ────────────────────────────────────────────
echo.
echo.
echo For easy access to AVP we recommend putting the program in your
echo PATH environment variable.
echo.
echo Do you want to add %1 to your PATH statement ? (Y/n)
%1\ask
if not errorlevel 1 goto autoscan
:pathmod
echo.
echo Backing up C:\AUTOEXEC.BAT to C:\AUTOEXEC.AVP
copy c:\autoexec.bat c:\autoexec.avp >nul
echo.
echo Adding PATH=%%PATH%%;%1 as the last line in AUTOEXEC.BAT
echo PATH=%%PATH%%;%1 >>C:\AUTOEXEC.BAT
echo.
echo NOTE!
echo If you start programs from AUTOEXEC.BAT you will need to manually
echo re-position this line so that it is read before they are executed.
echo.
echo The new PATH statement will not take effect until the computer
echo is rebooted.
echo.
pause
:autoscan
cls
echo.
echo AntiViral Toolkit Pro for DOS - Installation
echo ────────────────────────────────────────────
echo.
echo.
echo Do you want AVP to automatically scan the system every day ? (Y/n)
%1\ask
if not errorlevel 1 goto nomod
:daily
if exist c:\avpxxx.bat del c:\avpxxx.bat >nul
echo %1\avplite *: /* /d /w=avplite.log >c:\avpxxx.bat
copy /a c:\avpxxx.bat+c:\autoexec.bat c:\avpzzz.bat >nul
copy c:\avpzzz.bat c:\autoexec.bat >nul
del c:\avpxxx.bat >nul
del c:\avpzzz.bat >nul
:nomod
cls
echo.
echo AntiViral Toolkit Pro for DOS - Installation
echo ────────────────────────────────────────────
echo.
echo.
echo AntiViral Toolkit Pro for DOS has been installed in %1
echo.
echo Do you want to scan your hard drive(s) now ? (Y/n)
%1\ask
if not errorlevel 1 goto cleanup
if exist %1\install.bat del %1\install.bat >nul
if exist %1\dummy.tst del %1\dummy.tst >nul
if exist %1\ask.com del %1\ask.com >nul
cls
avplite *: /* /w=%1/avplite.log
goto end
:cleanup
if exist %1\install.bat del %1\install.bat >nul
if exist %1\dummy.tst del %1\dummy.tst >nul
if exist %1\ask.com del %1\ask.com >nul
cls
goto end
:quitinstall
%1\
cd %1
del %1\ask.com >nul
cd ..
rd %1
goto end
:error1
cls
echo.
echo AntiViral Toolkit Pro for DOS - Installation
echo ────────────────────────────────────────────
echo.
echo.
echo Error: Invalid program invocation!
echo.
echo You must invoke INSTALL.EXE from the AVP floppy disk!
echo.
echo Example:
echo If the AVP floppy disk is in drive A:, type:
echo A: [Enter]
echo INSTALL [Path] [Enter]
goto end
:error2
cls
echo.
echo AntiViral Toolkit Pro for DOS - Installation
echo ────────────────────────────────────────────
echo.
echo.
echo Error: No destination path specified!
echo.
echo You must specify the full destination path!
echo.
echo Example:
echo If the program is to be copied to C:\AVP
echo type: INSTALL C:\AVP
goto end
:error3
cls
echo.
echo AntiViral Toolkit Pro for DOS - Installation
echo ────────────────────────────────────────────
echo.
echo.
echo Error: Unable to create destination directory %1
echo.
echo Make sure you enter an existing destination path
echo or a path which can be created!
goto end
:error4
cls
echo.
echo AntiViral Toolkit Pro for DOS - Installation
echo ────────────────────────────────────────────
echo.
echo.
echo Error: Unable to copy the AVP files to directory %1
echo.
echo Disk full ? Access denied ?
goto end
:error5
cls
echo.
echo AntiViral Toolkit Pro for DOS - Installation
echo ────────────────────────────────────────────
echo.
echo.
echo Error: No target directory specified!
echo.
echo Make sure you enter a full destination path!
echo %1 is not sufficient!
echo.
echo Example:
echo If AVP is to be copied to C:\AVP
echo type: INSTALL C:\AVP
goto end
:end
: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :
: :
: -. .- :
: _..-'( )`-.._ :
: ./'. '||\\. (\_/) .//||` .`\. :
: ./'.|'.'||||\\|.. )o o( ..|//||||`.`|.`\. :
: ./'..|'.|| |||||\`````` '`"'` ''''''/||||| ||.`|..`\. :
: ./'.||'.|||| ||||||||||||. .|||||||||||| ||||.`||.`\. :
: /'|||'.|||||| ||||||||||||{ }|||||||||||| ||||||.`|||`\ :
: '.|||'.||||||| ||||||||||||{ }|||||||||||| |||||||.`|||.` :
: '.||| ||||||||| |/' ``\||`` ''||/'' `\| ||||||||| |||.` :
: |/' \./' `\./ \!|\ /|!/ \./' `\./ `\| :
: V V V }' `\ /' `{ V V V :
: ` ` ` V ' ' ' :
: rod.bat :
: :
: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :