Jump to content
Oliver-from-swiss

Need help for my software package with AutoIT - (Moved)

Recommended Posts

I would like to create a software package with AutoIT for our software distribution. Now I have to adjust the target directory in the installation process. Unfortunately I get the input line as Class:Button in the Window Info (see picture). What is the easiest way to solve this so that I can set a different path?

Thank you very much for your help.

 

image.png.6c4e5ec093301d90267683ef2681d77c.png

image.png

Share this post


Link to post
Share on other sites

Seems the product has been packaged using InstallShield (based on this web site).
InstallShield support silent installations - which means you do not need to automate the GUI.

What do you get when you start the installation program with parameter /?

 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

Hello Water

Thank you very much for your answer. Several programs are installed via the setup routine.  If I start the setup with /?, it starts the installation application directly. So I can not give any parameters. 
Why I want to change the program path is because we are not allowed to install anything in C:\ directly. 

 

 

Global $gs_Title, $gs_Text
Opt("TrayIconDebug", 1)
Opt("WinWaitDelay", 500)
Opt("WinDetectHiddenText", 0)

Run(@ScriptDir & '\Space_Setup_Image_N05_V1.0.exe')

$gs_Title = 'Installer Language'
$gs_Text = 'Please select a language.'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)
ControlClick($gs_Title, $gs_Text,1)

$gs_Title = 'Space_Setup_Image_N05_V1.0 Installation'
$gs_Text = 'Klicken Sie auf Weiter, um fortzufahren.'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)
ControlClick($gs_Title, $gs_Text,1)

$gs_Title = 'Space_Setup_Image_N05_V1.0 Installation'
$gs_Text = 'Lizenzabkommen'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)
ControlClick($gs_Title, $gs_Text,1)

$gs_Title = 'Space_Setup_Image_N05_V1.0 Installation'
$gs_Text = 'Komponenten auswählen'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)
ControlClick($gs_Title, $gs_Text, 1032,"left",1,30,24)
Send("{Space}")
ControlClick($gs_Title, $gs_Text,1)


$gs_Title = 'Installer Language'
$gs_Text = 'Please select a language.'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)
ControlClick($gs_Title, $gs_Text,1)

$gs_Title = 'Space Pump N030005 1.0 Installation'
$gs_Text = 'Wählen Sie die Komponenten aus, die Sie installieren möchten und wählen Sie diejenigen ab, die Sie nicht installieren wollen. Klicken Sie auf Installieren, um die Installation zu starten.'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)
ControlClick($gs_Title, $gs_Text,1)

$gs_Title = 'Space Pump N030005 1.0 Installation'
$gs_Text = 'Die Installation wurde erfolgreich abgeschlossen.'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)
ControlClick($gs_Title, $gs_Text,1)

$gs_Title = 'HiBaSeD N_10.1 Installation'
$gs_Text = 'Zielverzeichnis auswählen'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)
ControlClick($gs_Title, $gs_Text, 1020,"left",1,28,87)

XXXXXXXX Here I should be able to change the path.XXXXXXXXXXXXXX


$gs_Title = 'HiBaSeD N_10.1 Installation'
$gs_Text = 'Bestimmen Sie einen Startmenü-Ordner für die Programmverknüpfungen.'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)

ControlClick($gs_Title, $gs_Text,1)

$gs_Title = 'HiBaSeD N_10.1 Installation'
$gs_Text = 'Klicken Sie auf Fertig stellen, um den Installations-Assistenten zu schließen.'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)
ControlClick($gs_Title, $gs_Text,1)

$gs_Title = 'Space_Setup_Image_N05_V1.0 Installation'
$gs_Text = 'Klicken Sie auf Fertig stellen, um den Installations-Assistenten zu schließen.'
WinWait($gs_Title, $gs_Text)
WinActivate($gs_Title, $gs_Text)
ControlClick($gs_Title, $gs_Text,1)

Exit

 

 

Share this post


Link to post
Share on other sites

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


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

You mean you manually run "Space_Setup_Image_N05_V1.0.exe /?"


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

Is it possible to manually enter a different path (without using "Durchsuchen")?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

Could you please deactivate the freeze feature in the AutoIt WIndows Info Tool and move the cursor over the input field till the black frame just covers the input field?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

You could now try ControlSend and pass the target directory.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

:):thumbsup:


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...