eturner Posted March 24, 2016 Report Share Posted March 24, 2016 Has anyone run into issues installing Antivirus via tasks in an answer file? Trying to install AVG Business 2013 from a batch file that is in my image. The batch runs installation fine when I double click on it as will as run it from a command prompt from the desktop, but doesn't seem to want to install via the task command that I have given it in smartdeploy. Everything that I need to run the batch, including the batch, is in the root of C:\ Here's the section of the answer file where I tell it to run the batch: <task> <phase>FIRSTBOOT</phase> <command>cmd.exe /c c:\AvgSetup.bat</command> </task> Here's the batch: @ECHO OFF REM AVG Setup Batch IF NOT DEFINED PROCESSOR_ARCHITEW6432 ( IF %PROCESSOR_ARCHITECTURE% EQU x86 ( SET SETUP="C:\avg_ipw_x86_all_2013_3553a11388.exe" ) ELSE ( SET SETUP="C:\avg_ipw_x64_all_2013_3553a11388.exe" )) ELSE ( SET SETUP="C:\avg_ipw_x64_all_2013_3553a11388.exe" ) IF NOT EXIST %SETUP% GOTO NoSetup REM Start AVG Setup %SETUP% /ConfigFilePath="C:\AvgSetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9 if %ERRORLEVEL% EQU 1 goto AvgErr goto End :AvgErr ECHO Error while installing AVG goto End :WrongPlatform ECHO Installation file does not support this OS platform(x86 vs x64) goto End :NoSetup ECHO Missing installation files REM Continue batch processing :End ECHO setup returned %ERRORLEVEL% Link to comment Share on other sites More sharing options...
eturner Posted March 24, 2016 Author Report Share Posted March 24, 2016 Think I figured it out Link to comment Share on other sites More sharing options...
Jason93 Posted May 12, 2016 Report Share Posted May 12, 2016 Did you get this working? We are trying to install avast client with a script, it copies the avast folder to program files but it never installs?? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now