none
batch script to avoid OK confirmation after installation RRS feed

  • Question

  • Hi Everyone,

    Im using below script for installing antivirus.

    After installation it is asking "OK", so any changes to over this which we can add more to script.??

    Script : 


    cls

    @echo off

    echo copying Antivirus setup...
    mkdir C:\AVClient
    xcopy /E /I \\"shared path here from server where dump available" C:\AVClient
    CD C:\AVClient
    Agent.exe

    • Moved by Bill_Stewart Thursday, January 25, 2018 10:11 PM This is not support forum for third party software
    Wednesday, November 8, 2017 10:10 AM

Answers

  • Your problem is specific to the executable. This is not the correct place to ask about the specifics of a specific executable (we didn't write it).

    -- Bill Stewart [Bill_Stewart]

    • Marked as answer by Bill_Stewart Thursday, January 25, 2018 10:11 PM
    Thursday, November 9, 2017 4:47 PM

All replies

  • add exit at the end of the line and check

    Basati

    Wednesday, November 8, 2017 10:30 AM
  • Install programs used to have a silent or quiet option. You should figure out what that is for your product and add this option to your command line.

    Best regards (79,108,97,102|%{[char]$_})-join''

    Wednesday, November 8, 2017 12:40 PM
  • Install programs used to have a silent or quiet option. You should figure out what that is for your product and add this option to your command line.

    Best regards (79,108,97,102|%{[char]$_})-join''

    RC,

    You can try this line for silent installation

    Agent.exe /v"/qb"


    Basati

    Wednesday, November 8, 2017 12:54 PM
  • ASsuming it's an msi encapsulated in an exe I would recommend
    Agent.exe /v "/qn"
    but that depends on the vendor of the software.

    Best regards (79,108,97,102|%{[char]$_})-join''

    Wednesday, November 8, 2017 1:59 PM
  • hi 

    tried installing agent.exe /s , but in silent mode, script got executed but it is not installing.

    Tried also with

    Agent.exe /v "/qn"

    Agent.exe /v"/qb"

    Its saying invalid parameters

    Thursday, November 9, 2017 4:42 PM
  • Your problem is specific to the executable. This is not the correct place to ask about the specifics of a specific executable (we didn't write it).

    -- Bill Stewart [Bill_Stewart]

    • Marked as answer by Bill_Stewart Thursday, January 25, 2018 10:11 PM
    Thursday, November 9, 2017 4:47 PM