Jump to content

Need Help Running Batch File with Multiple Prompts - (Moved)


Recommended Posts

Hi guys.

This is my first post as I just found the AutoIt tool and am hoping I can use it to perform application installs that are currently done manually with a batch file provided by Oracle.

My hope is that I can get AutoIt to automate the install inputs and the new installer will be a single executable file that I can then remotely push to machines and launch a silent install using some thing like Microsoft Systernals PSEXEC.

I am hoping you can get me started in the initial script steps where this batch file will be run in Administrator mode.

I will be installing PeopleSoft PeopleTools 8.58.05.

When I run the installer Batch file it accepts command line switches

image.png.e9d46d22bb870745b30bcb637a90437c.png

Here is an example of multiple prompts that would need to be accounted for

image.png.096902d0e30bbd175a25db0220676574.png

image.png.8e6efbfc72c4df0b53cf4a3c0562ff68.png

image.png.16ca417b9237b3cb34b8780c1f55a9f3.png

image.png.dc5f3a485a2c2d45bbc01c36060fd265.png

image.png.2e3c6e385f46da11fea31216b9600e2c.png

image.png.316623fc0721a5d098404ad614b84c03.png

image.png.001ac3b006c0a33cdb82dce2bad8c5f4.png

image.png.1a75b4f8a8578c8a983f2a9028ceebb0.png

Here is the final confirmation detail.

image.png.ffc06f3cf42ac491134c8ba992e32548.png

 

Thanks in advance.

Tom

image.png

Link to post
Share on other sites
3 minutes ago, ERPDude said:

application installs that are currently done manually with a batch file provided by Oracle.

hmmm, what a pickle. If you can edit the batch file, you don't have to answer the "press 1" or what not. Having done that, add it to rar/7z.etc, to auto decompress an run the batch.
So, if you can do that, then yes, you can do it in AutoIt. But is easier if you have some experience. ( not meaning to offend, I understand you're in the biz :) )

Welcome to the forum @ERPDude.
Read up about Run() ;)

Link to post
Share on other sites

Hi argumentum.

I dug through the batch file and was able to override some of the command line switch requirements as well as dynamic variable assignments based on those command line switches but I ran into a road block.

Once all variables are setup the final step is to call a Python script to perform the installation.

I do not know the Python language and I would not want to perform updates to the scripts directly as that would overcomplicate future installations which we frequently get.

I still need to have an ability to run a batch file and respond to command window prompt requests.

I have heard of people using response files or concatenating numerous echo commands to the call of a batch file but I'd rather avoid that if at all possible.

Thanks again.

Tom

Link to post
Share on other sites
  • Moderators

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...