$progdir1 = READVALUE("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir")
IF EXIST ("$progdir\Symantec\Symantec Endpoint Protection\Rtvscan.exe")
GoTo Skip
ENDIF
;Uninstall old SAV / Install of Symantec Endpoint Protection
$progdir = READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir")
?
?"Verifying if Symantec Anti-Virus is installed"
?
IF EXIST ("$progdir\Symantec AntiVirus\Rtvscan.exe")
$fileversion = GetFileVersion("$progdir\Symantec AntiVirus\Rtvscan.exe", "FileVersion" )
if $fileversion <= "10.1.5.5000"
?"Found Symantec 10.0 ...... Uninstalling Symantec Antivirus"
$PSW = "HKLM\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion\AdministratorOnly\Security"
$ = WriteValue ($PSW,"LockUnloadServices","0","REG_DWORD")
$ = WriteValue ($PSW,"UseVPUninstallPassword","0","REG_DWORD")
;Uninstall command
SHELL "MsiExec.exe /norestart /q/x{productid} REMOVE=ALL"
ENDIF
?
? "Installing Symantec EndPoint Protection ... This will take a few minutes."
?
SHELL "\\AMTAAPP01\SEP-CLINST\setup.exe"
:Skip
exit ;quits the login script