Solved

pass arguments from batch script to setup.exe

Posted on 2012-03-29
2
1,025 Views
Last Modified: 2012-03-30
How can I pass arguments from a batch file, to an executable (setup.exe).  The specific .exe file I need to do this with was made using nsis.  

The gui arguments such as "yes", "next"...etc I want passed from the batch file.  Any way to accomplish this?
0
Comment
Question by:icecom4
  • 2
2 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 500 total points
ID: 37786856
It might have command line arguments of it own or via some sort of unattended setup script / file you reference on the command line -- maybe check setup.exe /?

If not then you can use a package such as autoIt to effectively watch for certain window titles to pop up, then respond by typing or pressing buttons etc. as required.  Is very good when you can't automate something natively.

You then either run it with a machine running Autoit installed or it will compile an EXE file which does it all with no installs needed.

The syntax has changed a few times with the versions of Autoit but not a difficult syntax, just write script it notepad or their editor and test it then when happy compile it put it alongside your exe in the install dir say.

http://www.autoitscript.com/site/autoit/

Steve
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 37789321
Thanks for choosing my answer, did you get anywhere with this then?
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This video teaches viewers about errors in exception handling.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question