Oliver-from-swiss Posted August 13, 2020 Posted August 13, 2020 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.
water Posted August 13, 2020 Posted August 13, 2020 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Oliver-from-swiss Posted August 13, 2020 Author Posted August 13, 2020 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
Developers Jos Posted August 13, 2020 Developers Posted August 13, 2020 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.
water Posted August 13, 2020 Posted August 13, 2020 You mean you manually run "Space_Setup_Image_N05_V1.0.exe /?" My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
water Posted August 13, 2020 Posted August 13, 2020 Is it possible to manually enter a different path (without using "Durchsuchen")? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Oliver-from-swiss Posted August 13, 2020 Author Posted August 13, 2020 Yes i run "Space_Setup_Image_N05_V1.0.exe /?" manually. I have unpacked the exe-file once and there are more exe-files where I can't specify any parameters.
Oliver-from-swiss Posted August 13, 2020 Author Posted August 13, 2020 Yes, it is possible to enter a path manually without using "Durchsuchen".
water Posted August 13, 2020 Posted August 13, 2020 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Oliver-from-swiss Posted August 13, 2020 Author Posted August 13, 2020 I had to disable the two options "Freeze" and "Use Spy++ Control..." and now I can go to the field with the Courser and it is shown to me in the Window Info.
water Posted August 13, 2020 Posted August 13, 2020 You could now try ControlSend and pass the target directory. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Zedna Posted August 13, 2020 Posted August 13, 2020 Also look at my example for "Standard Windows FileSelectFolder dialog automatize" Resources UDF ResourcesEx UDF AutoIt Forum Search
Oliver-from-swiss Posted August 13, 2020 Author Posted August 13, 2020 Hello Water You are my hero. Its working perfect with the ControlSend. Thank you very much for your help and wish you a nice day.
water Posted August 13, 2020 Posted August 13, 2020 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Osman2hmed Posted October 22, 2022 Posted October 22, 2022 Hi I need this application can you send download link
Developers Jos Posted October 22, 2022 Developers Posted October 22, 2022 11 minutes ago, Osman2hmed said: Hi I need this application can you send download link Which application is that? 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.
Osman2hmed Posted October 27, 2022 Posted October 27, 2022 On 10/22/2022 at 5:58 PM, Jos said: Which application is that? HiBaSeD.exe
Developers Jos Posted October 27, 2022 Developers Posted October 27, 2022 This topic is about automating it, not to provide a download.... just go to the developer site for a download of this software. 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now