Solved

pass arguments from batch script to setup.exe

Posted on 2012-03-29
2
1,021 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now