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