Jump to content
Sign in to follow this  
Antwerp

SAP installer help

Recommended Posts

Antwerp

Hello AutoIt community!

I've discovered AutoIt just 2 days ago, and it is amazing how much easier this stuff can make my daily job.

The help file and the forum made a lot of things clear, and I've been playing with it for 2 days in a row now.

I'm currently automating some software installations. I can manage to find a way to click the needed buttons most of the time.

Except for an SAP front end installer I want to fully automate.

As you can see in my image, I need to click the "Select all"-link I marked in red.

Sadly, the AutoIt WIndow Info app doesn't seem to find a unique identifier to recognize this link, even not the text.

I've try to work around this by specifying the x and y coördinates, but the install screen has a different sizes on different screen sizes, so that's not a solution for me.

Does anyone have an idea? Any help would be greatly appreciated!

 

SAP%20Front%20End%20Installer.png

Share this post


Link to post
Share on other sites
lordofthestrings

ehm... why don't you use the SAP package builder that  comes with the full installation? you create a single executable that you launch with a /Silent option  to detach it from it's console window.


Share this post


Link to post
Share on other sites
Antwerp

Thanks lordofthestrings, that makes perfect sence indeed.

But just for the fun of it, any ideas how to deal with this using AutoIt?

Share this post


Link to post
Share on other sites
MHz

Looks like HTML embedded in the window. So you try using _IEAttach(). I have done that with similar installers that use a HTML embedded in the window. :)

Share this post


Link to post
Share on other sites
lordofthestrings

@Mhz: That's an approach I never would have come up with myself :)

 

I would have suggested to save that "select all" button-ish thing in a BMP/JPG and use the pixelsearch function for it

or have you looked into controlclicking the controlclick Coordinates..

but this is a really terrible approach to automate software installation.. 


Share this post


Link to post
Share on other sites
MystrE

I found this in the faq section by Chimera :

Maybe
[Question]: How do i install a program silently
[Answer]: Using a Silent switch /Examples of silent switches /msi and exe
[Optional Example]:

$scriptDir = "My Test Folder" ; the folder where your file is stored (amend accordingly) 
$fileName = "My file i want to install.exe" ; the filename to install (amend accordingly) 
$switch = "/S" ; the switch, there maybe multiple switches for different things check the manufacturers website (amend accordingly) 
RunWait('"' & $scriptDir & "\" & $fileName & '"' & " " & $switch)

Maybe it's of any help to you?

Edited by MystrE

Share this post


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
Sign in to follow this  

×