?
Solved

pass arguments from batch script to setup.exe

Posted on 2012-03-29
2
Medium Priority
?
1,036 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
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.
This video teaches viewers about errors in exception handling.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

752 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