Page 1 of 1 1
Topic Options
#138 - 1999-06-23 02:22 AM Auto-update antivirus
gandalf Offline
Lurker

Registered: 2003-06-06
Posts: 3
Loc: none
Hi everyone,

This is my first time with Kixtart. I'm trying to write a loginscript which checks the current version of Dr. Solomons antivirus and updates automatically from the server if necessary. We have Windows 95 machines with a NT network.
Please give me some advice or sample scripts.
Thanks for your help.

Top
#139 - 1999-06-29 11:15 AM Re: Auto-update antivirus
Anonymous
Unregistered


If you ring Solomons support they will email you an internal document that describes how to do a 'silent install'. This also checks for the existance of an up to date version and if out of date then loads the latest version from the master copy on the server.
I have done this recently and it works fine.
If you have problems then leave your Email address here and I will help you further

Top
#140 - 1999-07-01 05:45 AM Re: Auto-update antivirus
Anonymous
Unregistered


I've written a script for McAfee Anti Virus that checks version details and copies files to the win 9x client ready for an install. Unfortunately I haven't mastered getting the thing to run as at logon and put shortcuts into the start menu to run the installs. It only works _after_ windows has loaded the desktop. Hence if I run the script within Windows it works fine - but not as part of the logon. Can anyone suggest anything to fix this ?

TIA

David H.

Top
#141 - 1999-07-06 09:00 AM Re: Auto-update antivirus
Anonymous
Unregistered


Hi all,

This is my solution. Below is the contents of the file virus.bat that I call from the script.bat
In the install section I use Kix to make a selective install based in the ingroup function. Some folder names and messages are in Portuguese(I'm from Brazil), you just have to change it to English.

------------------------------
Contents of virus.bat

if not exist "C:\Arquivos de Programas\Network Associates\McAfee VirusScan\nul" goto cria
goto verifica

:create
md "C:\Arquivos de Programas\Network Associates"
md "C:\Arquivos de Programas\Network Associates\McAfee VirusScan"


:verify
IF NOT EXIST "C:\Arquivos de Programas\Network Associates\McAfee VirusScan\ins403.txt" GOTO instala
IF NOT EXIST "C:\Arquivos de Programas\Network Associates\McAfee VirusScan\cfg403.txt" GOTO padrao
IF NOT EXIST "C:\Arquivos de Programas\Network Associates\McAfee VirusScan\dat4030.txt" GOTO atualiza

goto end


:update
Echo ...Updating antivirus.
IF NOT EXIST "C:\Arquivos de Programas\Network Associates\McAfee VirusScan\ins403.txt" GOTO termino
copy x:\viruscan\dat4\*.dat "C:\Arquivos de Programas\Network Associates\McAfee VirusScan"
COPY x:\viruscan\automat\dat4030.TXT "C:\Arquivos de Programas\Network Associates\McAfee VirusScan"
goto end


:default
IF NOT EXIST "C:\Arquivos de Programas\Network Associates\McAfee VirusScan\ins403.txt" GOTO termino
copy x:\viruscan\teste\DEFAULT.vsh "C:\Arquivos de Programas\Network Associates\McAfee VirusScan"
copy x:\viruscan\teste\update.ini "C:\Arquivos de Programas\Network Associates\McAfee VirusScan"
COPY x:\viruscan\automat\CFG403.TXT "C:\Arquivos de Programas\Network Associates\McAfee VirusScan"
deltree /y "c:\arquivos de programas\mcafee"
goto end


:install

\\server\netlogon\kix32.exe x:\viruscan\automat\ins_scan.kix
goto end


:end
exit

--------------------------
Contents of ins_scn.kix file

IF @lDOMAIN="DOMAIN"

:instala

IF INGROUP ("group")

messagebox("Aguarde enquanto o antivirus esta sendo instalado automaticamente em seu micro.
NÃO ABRA NENHUM DOCUMENTO. O SISTEMA SERÁ REINICIADO AUTOMATICAMENTE APÓS O TÉRMINO DA INSTALAÇÃO.
Clique no botão OK para prosseguir.","Instalação do VirusScan em seu PC",4144)

COPY "X:\viruscan\automat\ins403.txt" "c:\arquivos de programas\network associates\mcafee Virusscan\ins403.txt"
shell "%comspec% /c x:\viruscan\95\setup.exe -s"

GOTO end

ENDIF

:end
exit

Regards,
Fabio Nowak

Top
#142 - 1999-07-06 09:22 AM Re: Auto-update antivirus
Anonymous
Unregistered


In addition,

This is for the mcafee antivirus.
I forgot to translate some labels
padrao=default
atualiza=update
instala=install

Fabio.


Top
#143 - 1999-07-06 11:08 AM Re: Auto-update antivirus
Anonymous
Unregistered


Dear Fabio Nowak,
Thanks for the virus script. I am doing the same thing here at work, and I am new at this kixtart too. My question is I call the kix from a bat file for the 95 machine in our domain and only want the 95 machines to run the virus update and not the nt machines. What could I put to make it check and see if user is on a win 95 or nt machine and if nt skip upgrade and win95 do up grade!!

any help would be great

Andrew Johnson


Top
#144 - 1999-07-07 04:04 AM Re: Auto-update antivirus
Anonymous
Unregistered


@INWIN returns 1 on an NT client and returns
2 on an Windows 9x client.


Good luck!

------------------
Freewan Shakib
freewan.shakib@eurona.se

Top
#145 - 1999-07-07 04:13 AM Re: Auto-update antivirus
Anonymous
Unregistered


Use @inwin to test for the Windows NT or Windows 95

Good Luck

------------------

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1171 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.05 seconds in which 0.021 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org