?
Solved

pass arguments from batch script to setup.exe

Posted on 2012-03-29
2
Medium Priority
?
1,043 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

807 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