Jump to content

Recommended Posts

Posted

So I created a GUI in Koda and I want it to show up while an app is installed. I have been searching all over, and it seems simple, but I am not getting it. I have tried wrapping the install in a function but I keep failing somewhere. I am pretty basic on Autoit ability here and just need to compile a legacy app to deploy it through Intune. The install file works, I just want the GUI so people don't move affect the install while its happening. 

 

 

GUI

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 612, 420, 5126, 440)
$Label1 = GUICtrlCreateLabel("Adbase is installing", 0, 0, 613, 216)
GUICtrlSetFont(-1, 24, 800, 0, "Times New Roman")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetResizing(-1, $GUI_DOCKVCENTER)
$Label2 = GUICtrlCreateLabel("Please Do Not Create Your Mouse or Keyboard!", -8, 216, 622, 201)
GUICtrlSetFont(-1, 18, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetResizing(-1, $GUI_DOCKAUTO)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

 

Install 

#RequireAdmin

Run(@ScriptDir & '\AdBase2017-GA170720.exe')
AutoItSetOption('MouseCoordMode',0)


Winwait ('Adbase - InstallShield Wizard', 'Adbase requires the following items')
ControlClick ("Adbase - InstallShield Wizard", "Adbase requires the following items", "[CLASS:Button; INSTANCE:1]")
WinWait ("Adbase - InstallShield Wizard", "The InstallShield(R) Wizard will install Adbase on your computer")
ControlClick("Adbase - InstallShield Wizard", "The InstallShield(R) Wizard will install Adbase on your computer", "[CLASS:Button; INSTANCE:1]")
WinWait("Adbase - InstallShield Wizard", "Typical program features will be installed")
ControlClick("Adbase - InstallShield Wizard", "Typical program features will be installed", "[CLASS:Button; INSTANCE:5]")
WinWait("Adbase - InstallShield Wizard", "Click Install to begin the installation")
ControlClick("Adbase - InstallShield Wizard", "Click Install to begin the installation", "[CLASS:Button; INSTANCE:1]")
WinWait("Adbase - InstallShield Wizard", "InstallShield Wizard Completed")
ControlClick ("Adbase - InstallShield Wizard", "InstallShield Wizard Completed", "[CLASS:Button; INSTANCE:1]")
WinActivate ("Adbase - InstallShield Wizard", "InstallShield Wizard Completed")
Send("{ENTER}")
 

Posted

I assume there is an Installation Manual available for adbase. Have a look at "Silent Installation"
Installshield allows silent installation so no automation of the Gui is needed: https://docs.revenera.com/installshield24helplib/helplibrary/SilentInstall.htm

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

 

Posted
10 minutes ago, water said:

I assume there is an Installation Manual available for adbase. Have a look at "Silent Installation"
Installshield allows silent installation so no automation of the Gui is needed: https://docs.revenera.com/installshield24helplib/helplibrary/SilentInstall.htm

Adbase is an old legacy app and while there are silent switches, they don't work. I have spent hours trying or I wouldn't have gone down this path. 

Posted

Did you have a look at function BlockInput? This stops user input from keyboard and/or mouse but does not stop AutoIt commands like Control*

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

 

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...