[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

pass arguments from batch script to setup.exe

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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

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 …
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 viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

656 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