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...
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 account
Already have an account? Sign in here.Sign In Now