1.

Solve : Check for AVG, if it's not there, then install?

Answer»

Trying to create a batch file that will do the following?

Check for file (c:\program files\avg\avg2012)
if there then exit

if not then popup message
user clicks on OK and another batch file is called. (\\192.0.1.100\apps\avg\avgsetup.bat)

 
We have AVG 2012 Business with Admin control. The new 2012 version has a wizard that created an install script. So what I want to do is look for the 2012 file and if its not there then to go ahead and install the program. I PLAN on using this same script for some other programs as well until I can get my system capable of using group policy correctly.So is that the exact path and name of the file? Because that looks LIKE a folder name to me. You seem to be confused about what batch files can do, specifically they can't popup messages with buttons on them. You would be betetr off using Visual Basic Script for that, but maybe that isn't AVAILABLE to you.

Those are.

A long time AGO I used a batch file in this same manner. That might have been the last time. I might have called up a vbs for the popup or maybe even a windows script file. I dont really remember. I'm game for anything that would work.Something like this might do the trick; you'll have to figure out running a batch from a network location, as I can't try that part out on this machine.

CODE: [Select]echo off
if exist "C:\Program Files\AVG\AVG2012" goto end
echo Wscript.echo MsgBox("Click OK to install AVG 2012", vbOKonly, "Message")>Myinput.vbs
cscript //nologo myinput.vbs
cmd /c \\192.0.1.100\apps\avg\avgsetup.bat
:end


I will give it a try. I only wish my memory still worked.



Discussion

No Comment Found