How to run an interactive batch file on windows from a service?

How to install a software using batch file or windows command line?

  • I need to know how to install a software using a batch file or windows command line. Or explain how to do these steps. Let's say I have the file software.exe I need to run the software and then click the Next button Tick the Agreement and then click the Finish button. How to do these? I know the first step... start software.exe (then the software interface appears) what are the commands to use the Next button and tick the Agreement and other buttons? Please explain. Thanks in advance

  • Answer:

    You cannot do this via batch scripting. You have three choices: 1. use an unattended installation of the software, 2. repackage the application, or 3. use AutoIt to automate the installation. 1. It depends on the installer. If it is a MSI file for example, /quiet /norestart will do the job, if it is a Nullsoft installer, they have standard switches as well, et cetera. This will not work for custom installers, but those are fairly rare nowadays. 2. Create an installer yourself. There are various solutions for this and you could even use a standard installer such as Nullsoft for it if you please. You could also create a self extracting archive which runs a batch script for example to create folders, copy files, create registry settings, et cetera. 3. Download AutoIt and create a script which presses the right buttons as you please.

Sarah at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.