Script for updates

 


Check Status

 

@ECHO OFF

if exist c:\shiva\*.* goto End

if exist c:\winnt35\*.* goto End

if exist c:\winnt\*.* goto End

ECHO **** Please wait few minutes, checking for viruses *****

if not exist c:\vcflag.g j:\ntoolkit\findviru\findviru.exe /local /repair

if not exist c:\vcflag.g copy j:\ntoolkit\update\vcflag.g c:\*.*

 

:End


Installation Batch

 

@echo off

cls

 

echo WinGuard will be installed to C:\TOOLKIT

echo WinGuard is loaded automatically with windows.

echo WINDOWS MUST NOT BE RUNNING DURING THE INSTALLATION !

echo.

echo Press CTRL and BREAK, followed by Y, to

echo exit without installing WinGuard OR

pause

cls

echo WinGuard is being installed, please wait . . .

 

if exist c:\toolkit\wgfe.exe goto UPDATE

md c:\toolkit > nul

goto UPDATE

 

:UPDATE

a:\tkutil update a: c:\toolkit /a /silent

c:\toolkit\tkutil add winguard c:\toolkit

cls

echo Installation complete.

echo You must now re-start windows for WinGuard to take effect.

pause

goto EXIT

 

:EXIT

 


Update information

 

@echo off

rem Windows 3.x Toolkit files on j:\ntoolkit\update\win

rem Windows 95 Toolkit files on j:\ntoolkit\update\win95

 

if exist c:\winnt35\*.* goto End

if exist c:\winnt\*.* goto End

if exist c:\system.1st goto win95

if exist c:\windows\command\*.* goto win95

 

if not exist c:\toolkit\*.* md c:\toolkit  >nul

c:

j:\ntoolkit\update\win\tkutil update j:\ntoolkit\update\win c:\toolkit /a /silent

if errorlevel 1 goto copy1

if errorlevel 0 goto End

 

:copy1

c:\toolkit\tkutil guardcheck /silent

if errorlevel 1 goto add

if errorlevel 0 goto addwin

 

:add

c:\toolkit\tkutil add c:\autoexec.bat 'c:\toolkit\guard /copy=all /nwa=y /tell=avadmin' /start /silent

 

:addwin

c:\toolkit\tkutil winguardcheck  /silent

if errorlevel 1 goto addwin2

if errorlevel 0 goto End

 

:addwin2

c:\toolkit\tkutil add winguard c:\toolkit /silent

c:\toolkit\tkutil iniupdate c:\windows\system.ini j:\ntoolkit\update\w31_conf.ini  /silent

goto End

 

:win95

rem toolkit files on j:\ntoolkit\update\win95 to be distributed to c:\toolkit

 

if not exist c:\toolkit\*.* md c:\toolkit  >nul

if not exist c:\toolkit\update\*.* md c:\toolkit\update

 

c:\

echo updating files

j:\ntoolkit\update\win95\tkutil update j:\ntoolkit\update\win95 c:\toolkit\update /a /silent

if errorlevel 1 goto copy

if errorlevel 0 goto End

 

:copy

rem an installation or update has taken place

rem new installation or update ?

 

if exist c:\toolkit\wgfe.exe goto win95update

 

rem this is a new Installation..

echo installing for first time!

Copy c:\toolkit\update c:\toolkit >nul

c:\toolkit\wkutil add winguard c:\toolkit >nul

c:\toolkit\tkutil add autoexec.bat 'c:\toolkit\guard /copy=all /nwa=y /tell=avadmin' /start /silent

goto End

 

:win95update

j:\ntoolkit\update\win95\tkutil add c:\autoexec.bat 'c:\toolkit\update\update.bat' /start /silent

 

echo @echo off                  >c:\toolkit\update\update.bat

echo c:\toolkit\update\tkutil update c:\toolkit\update c:\toolkit /a /silent >>c:\toolkit\update\update.bat

echo c:\toolkit\update\tkutil delete c:\autoexec.bat 'c:\toolkit\update\update.bat' /silent >>c:\toolkit\update\update.bat

echo c:\autoexec.bat

 

:End