Jump to content

basictheprogram

Members
  • Posts

    13
  • Joined

  • Last visited

basictheprogram's Achievements

Seeker

Seeker (1/7)

2

Reputation

  1. Failure. I wonder if this is a Windows Server 2016 issue? Same results. Logged in as the Local Administrator Confirmed running SciTE as local Administrator Confirmed Running the EasyLogUSB+Installer.exe as Administrator Hit F5 everything works until the Device Driver installer
  2. Fresh vagrant up of Windows Server 2016, few tools installed but EasyLogUSB not installed. Logged in as the Local Administrator PS C:\Users\Administrator\AppData\Local\Temp\2\chocolatey\EasyLogUSB.7.6.0> whoami vagrant\administrator Confirmed running SciTE as local Administrator Confirmed Running the EasyLogUSB+Installer.exe as Administrator Using the code below #AutoIt3Wrapper_Compression=3 #AutoIt3Wrapper_UseUpx=y #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #AutoIt3Wrapper_Add_Constants=n #AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #RequireAdmin #include <MsgBoxConstants.au3> #include <WindowsConstants.au3> #include 'log4a.au3' #include 'WaitForControls.au3' Global $TD_BTN_NEXT = '&Next >' Global $TD_BTN_INSTALL = '&Install' Global $TD_BTN_INSTALL2 = 'Install' Global $TD_BTN_FINISH = '&Finish' Global $TD_BTN_CANCEL = 'Cancel' Global $TD_BTN_IAGREE = "I &accept the terms in the license agreement" Global $TD_BTN_ALTFINISH = '&Finish' Global $TD_BTN_ALLOW_ACCESS = '&Allow access' Global $TD_BTN_REMOVE = '&Remove' Global $TD_BTN_YES = '&Yes' Global $TD_BTN_OK = 'OK' Global $TD_BTN_TYPICAL = '&Typical' Global $TD_EDIT_DATA = '99999' Global $TD_TREE_NAME = 'Tree1' Global $apptext = 'EasyLog USB Device Driver Installer' Global $text = "EasyLog USB - InstallShield Wizard" Global $class = "[CLASS:MsiDialogCloseClass]" Global $stdClass = '[Class:#32770]' Global $button1 = "[CLASS:Button; INSTANCE:1]" Global $button2 = "[CLASS:Button; INSTANCE:2]" Global $button3 = "[CLASS:Button; INSTANCE:3]" Global $button4 = "[CLASS:Button; INSTANCE:4]" Global $button5 = "[CLASS:Button; INSTANCE:5]" #Region ;**** Logging **** ; Enable logging and don't write to stderr _log4a_SetEnable() ; Write to stderr, set min level to warn, customize message format _log4a_SetErrorStream() _log4a_SetCompiledOutput($LOG4A_OUTPUT_FILE) _log4a_SetMinLevel($LOG4A_LEVEL_DEBUG) ; If @compiled Then _log4a_SetMinLevel($LOG4A_LEVEL_WARN) ; Change the min level if the script is compiled _log4a_SetFormat("${date} | ${host} | ${level} | ${message}") #EndRegion ;**** Logging **** Func Install() Local $handle = WinActivate($text) _log4a_Info($handle) _log4a_Info('Begin Install()') _checkClickCtrl($class, $text, $button1, $TD_BTN_NEXT, 0) _checkClickCtrl($class, $text, $button3, $TD_BTN_IAGREE, 0) _checkClickCtrl($class, $text, $button5, $TD_BTN_NEXT, 0) _checkClickCtrl($class, $text, $button1, $TD_BTN_INSTALL, 0) _checkClickCtrl($class, $text, $button1, $TD_BTN_FINISH, 0) _checkClickCtrl($stdClass, $apptext, $button1, $TD_BTN_INSTALL2, 0) _checkClickCtrl($stdClass, 'Success', $button1, $TD_BTN_OK, 0, 3) _log4a_Info('End Install()') EndFunc Install() Putting the console output into a gist https://gist.github.com/basictheprogram/f921514460f3f99fcb0247b312069c63 Now the EasyLog USB Device Driver Installer dialog remains until I click the Install button and the next gist shows the console output https://gist.github.com/basictheprogram/500ddaefbf471360595701abcfe0871a
  3. #AutoIt3Wrapper_Compression=3 #AutoIt3Wrapper_UseUpx=y #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #AutoIt3Wrapper_Add_Constants=n #AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #RequireAdmin #include <MsgBoxConstants.au3> #include <WindowsConstants.au3> #include 'log4a.au3' #include 'WaitForControls.au3' Global $TD_BTN_NEXT = '&Next >' Global $TD_BTN_INSTALL = '&Install' Global $TD_BTN_INSTALL2 = 'Install' Global $TD_BTN_FINISH = '&Finish' Global $TD_BTN_CANCEL = 'Cancel' Global $TD_BTN_IAGREE = "I &accept the terms in the license agreement" Global $TD_BTN_ALTFINISH = '&Finish' Global $TD_BTN_ALLOW_ACCESS = '&Allow access' Global $TD_BTN_REMOVE = '&Remove' Global $TD_BTN_YES = '&Yes' Global $TD_BTN_OK = 'OK' Global $TD_BTN_TYPICAL = '&Typical' Global $TD_EDIT_DATA = '99999' Global $TD_TREE_NAME = 'Tree1' Global $apptext = 'EasyLog USB Device Driver Installer' Global $text = "EasyLog USB - InstallShield Wizard" Global $class = "[CLASS:MsiDialogCloseClass]" Global $stdClass = '[Class:#32770]' Global $button1 = "[CLASS:Button; INSTANCE:1]" Global $button2 = "[CLASS:Button; INSTANCE:2]" Global $button3 = "[CLASS:Button; INSTANCE:3]" Global $button4 = "[CLASS:Button; INSTANCE:4]" Global $button5 = "[CLASS:Button; INSTANCE:5]" #Region ;**** Logging **** ; Enable logging and don't write to stderr _log4a_SetEnable() ; Write to stderr, set min level to warn, customize message format _log4a_SetErrorStream() _log4a_SetCompiledOutput($LOG4A_OUTPUT_FILE) _log4a_SetMinLevel($LOG4A_LEVEL_DEBUG) ; If @compiled Then _log4a_SetMinLevel($LOG4A_LEVEL_WARN) ; Change the min level if the script is compiled _log4a_SetFormat("${date} | ${host} | ${level} | ${message}") #EndRegion ;**** Logging **** Func Install()     Local $handle = WinActivate($text)     _log4a_Info($handle)     _log4a_Info('Begin Install()')     _checkClickCtrl($class, $text, $button1, $TD_BTN_NEXT, 0)     _checkClickCtrl($class, $text, $button3, $TD_BTN_IAGREE, 0)     _checkClickCtrl($class, $text, $button5, $TD_BTN_NEXT, 0)     _checkClickCtrl($class, $text, $button1, $TD_BTN_INSTALL, 0)     _checkClickCtrl($class, $text, $button1, $TD_BTN_FINISH, 0)     _checkClickCtrl($stdClass, $apptext, $button1, $TD_BTN_INSTALL2, 0)     _checkClickCtrl($stdClass, 'Success', $button1, $TD_BTN_OK, 0, 3)     _log4a_Info('End Install()') EndFunc Install() The above code does not work for me 😞 The device driver dialog remains in the screen and the install doesn't finish. Does this video I made help? Gladly look for donuts for you 🙂
  4. The new code installs the first part of the application but not the device driver. That still dialog still remains. Console output >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "\\vboxsvr\projects\chocolatey\chocolatey-EasyLogUSB\tools\LoggingEasyLogUSB.au3"     05\01\2019 11:27:59 | VAGRANT | Info | 0x00080372 05\01\2019 11:27:59 | VAGRANT | Info | Begin Install() 05\01\2019 11:27:59 | VAGRANT | Info | _checkClickCtrl():Begin 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Text: EasyLog USB - InstallShield Wizard 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Control: [CLASS:Button; INSTANCE:1] 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Ctrl Txt: &Next > 05\01\2019 11:27:59 | VAGRANT | Info | Timeout: 0 05\01\2019 11:27:59 | VAGRANT | Info | Time Delay (after click): 0 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Search: &Next > 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Found: &Next > 05\01\2019 11:27:59 | VAGRANT | Info | Found Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:27:59 | VAGRANT | Info | Found Text: EasyLog USB - InstallShield Wizard 05\01\2019 11:27:59 | VAGRANT | Info | Found Control: [CLASS:Button; INSTANCE:1] 05\01\2019 11:27:59 | VAGRANT | Info | Found Ctrl Txt: &Next > 05\01\2019 11:27:59 | VAGRANT | Info | Timeout: 0 05\01\2019 11:27:59 | VAGRANT | Info | Time Delay (after click): 0 05\01\2019 11:27:59 | VAGRANT | Info | [CLASS:Button; INSTANCE:1] 05\01\2019 11:27:59 | VAGRANT | Info | ExitLoop:Normal - [CLASS:Button; INSTANCE:1] 05\01\2019 11:27:59 | VAGRANT | Info | _checkClickCtrl():End 05\01\2019 11:27:59 | VAGRANT | Info | _checkClickCtrl():Begin 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Text: EasyLog USB - InstallShield Wizard 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Control: [CLASS:Button; INSTANCE:3] 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Ctrl Txt: I &accept the terms in the license agreement 05\01\2019 11:27:59 | VAGRANT | Info | Timeout: 0 05\01\2019 11:27:59 | VAGRANT | Info | Time Delay (after click): 0 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Search: I &accept the terms in the license agreement 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Found: I &accept the terms in the license agreement 05\01\2019 11:27:59 | VAGRANT | Info | Found Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:27:59 | VAGRANT | Info | Found Text: EasyLog USB - InstallShield Wizard 05\01\2019 11:27:59 | VAGRANT | Info | Found Control: [CLASS:Button; INSTANCE:3] 05\01\2019 11:27:59 | VAGRANT | Info | Found Ctrl Txt: I &accept the terms in the license agreement 05\01\2019 11:27:59 | VAGRANT | Info | Timeout: 0 05\01\2019 11:27:59 | VAGRANT | Info | Time Delay (after click): 0 05\01\2019 11:27:59 | VAGRANT | Info | [CLASS:Button; INSTANCE:3] 05\01\2019 11:27:59 | VAGRANT | Info | ExitLoop:Normal - [CLASS:Button; INSTANCE:3] 05\01\2019 11:27:59 | VAGRANT | Info | _checkClickCtrl():End 05\01\2019 11:27:59 | VAGRANT | Info | _checkClickCtrl():Begin 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Text: EasyLog USB - InstallShield Wizard 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Control: [CLASS:Button; INSTANCE:5] 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Ctrl Txt: &Next > 05\01\2019 11:27:59 | VAGRANT | Info | Timeout: 0 05\01\2019 11:27:59 | VAGRANT | Info | Time Delay (after click): 0 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Search: &Next > 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Found: &Next > 05\01\2019 11:27:59 | VAGRANT | Info | Found Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:27:59 | VAGRANT | Info | Found Text: EasyLog USB - InstallShield Wizard 05\01\2019 11:27:59 | VAGRANT | Info | Found Control: [CLASS:Button; INSTANCE:5] 05\01\2019 11:27:59 | VAGRANT | Info | Found Ctrl Txt: &Next > 05\01\2019 11:27:59 | VAGRANT | Info | Timeout: 0 05\01\2019 11:27:59 | VAGRANT | Info | Time Delay (after click): 0 05\01\2019 11:27:59 | VAGRANT | Info | [CLASS:Button; INSTANCE:5] 05\01\2019 11:27:59 | VAGRANT | Info | ExitLoop:Normal - [CLASS:Button; INSTANCE:5] 05\01\2019 11:27:59 | VAGRANT | Info | _checkClickCtrl():End 05\01\2019 11:27:59 | VAGRANT | Info | _checkClickCtrl():Begin 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Text: EasyLog USB - InstallShield Wizard 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Control: [CLASS:Button; INSTANCE:1] 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Ctrl Txt: &Install 05\01\2019 11:27:59 | VAGRANT | Info | Timeout: 0 05\01\2019 11:27:59 | VAGRANT | Info | Time Delay (after click): 0 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Search: &Install 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Found: &Install 05\01\2019 11:27:59 | VAGRANT | Info | Found Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:27:59 | VAGRANT | Info | Found Text: EasyLog USB - InstallShield Wizard 05\01\2019 11:27:59 | VAGRANT | Info | Found Control: [CLASS:Button; INSTANCE:1] 05\01\2019 11:27:59 | VAGRANT | Info | Found Ctrl Txt: &Install 05\01\2019 11:27:59 | VAGRANT | Info | Timeout: 0 05\01\2019 11:27:59 | VAGRANT | Info | Time Delay (after click): 0 05\01\2019 11:27:59 | VAGRANT | Info | [CLASS:Button; INSTANCE:1] 05\01\2019 11:27:59 | VAGRANT | Info | ExitLoop:Normal - [CLASS:Button; INSTANCE:1] 05\01\2019 11:27:59 | VAGRANT | Info | _checkClickCtrl():End 05\01\2019 11:27:59 | VAGRANT | Info | _checkClickCtrl():Begin 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Text: EasyLog USB - InstallShield Wizard 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Control: [CLASS:Button; INSTANCE:1] 05\01\2019 11:27:59 | VAGRANT | Info | Searching for Ctrl Txt: &Finish 05\01\2019 11:27:59 | VAGRANT | Info | Timeout: 0 05\01\2019 11:27:59 | VAGRANT | Info | Time Delay (after click): 0 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Search: &Finish 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Found: < &Back 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Search: &Finish 05\01\2019 11:27:59 | VAGRANT | Info | Control Text Found: Cancel <snip> many of the above text repeat many times 05\01\2019 11:28:00 | VAGRANT | Info | Control Text Found: &Finish 05\01\2019 11:28:00 | VAGRANT | Info | Found Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:28:00 | VAGRANT | Info | Found Text: EasyLog USB - InstallShield Wizard 05\01\2019 11:28:00 | VAGRANT | Info | Found Control: [CLASS:Button; INSTANCE:1] 05\01\2019 11:28:00 | VAGRANT | Info | Found Ctrl Txt: &Finish 05\01\2019 11:28:00 | VAGRANT | Info | Timeout: 0 05\01\2019 11:28:00 | VAGRANT | Info | Time Delay (after click): 0 05\01\2019 11:28:00 | VAGRANT | Info | [CLASS:Button; INSTANCE:1] 05\01\2019 11:28:00 | VAGRANT | Info | ExitLoop:Normal - [CLASS:Button; INSTANCE:1] 05\01\2019 11:28:00 | VAGRANT | Info | _checkClickCtrl():End 05\01\2019 11:28:00 | VAGRANT | Info | _checkClickCtrl():Begin 05\01\2019 11:28:00 | VAGRANT | Info | Searching for Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 11:28:00 | VAGRANT | Info | Searching for Text: Install 05\01\2019 11:28:00 | VAGRANT | Info | Searching for Control: [CLASS:Button; INSTANCE:1] 05\01\2019 11:28:00 | VAGRANT | Info | Searching for Ctrl Txt: Install 05\01\2019 11:28:00 | VAGRANT | Info | Timeout: 0 05\01\2019 11:28:00 | VAGRANT | Info | Time Delay (after click): 0 But the EasyLog USB Device Driver Installer dialog remains.
  5. I activated local Administrator on my Windows 2016 vagrant in virtualbox VM and tried the logging code again and things still do not work as expected. Console output below >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "\\vboxsvr\projects\chocolatey\chocolatey-EasyLogUSB\tools\LoggingEasyLogUSB.au3"     05\01\2019 11:11:21 | VAGRANT | Info | 0x00000000 05\01\2019 11:11:21 | VAGRANT | Info | Begin Install() 05\01\2019 11:11:21 | VAGRANT | Info | _checkClickCtrl():Begin 05\01\2019 11:11:21 | VAGRANT | Info | Searching for Formclass: [CLASS:MsiDialogCloseClass] PS C:\projects\chocolatey\chocolatey-EasyLogUSB> whoami vagrant\administrator
  6. Oh, wait, miss understanding. Admin as Administrator or a user with full Admin rights?
  7. >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "\\VBOXSVR\projects\chocolatey\chocolatey-EasyLogUSB\tools\LoggingEasyLogUSB.au3" 05\01\2019 10:56:01 | VAGRANT | Info | 0x00000000 05\01\2019 10:56:01 | VAGRANT | Info | Begin Install() 05\01\2019 10:56:01 | VAGRANT | Info | _checkClickCtrl():Begin 05\01\2019 10:56:01 | VAGRANT | Info | Searching for Formclass: [CLASS:MsiDialogCloseClass] 05\01\2019 10:56:01 | VAGRANT | Info | Searching for Text: EasyLog USB - InstallShield Wizard 05\01\2019 10:56:01 | VAGRANT | Info | Searching for Control: [CLASS:Button; INSTANCE:1] 05\01\2019 10:56:01 | VAGRANT | Info | Searching for Ctrl Txt: &Next > 05\01\2019 10:56:01 | VAGRANT | Info | Timeout: 0 05\01\2019 10:56:01 | VAGRANT | Info | Time Delay (after click): 0 I click on the dialog nothing seems to happen.
  8. I have tried it and then nothing is displayed in the Console. UAC is displayed, I click Yes, nothing happens. Here is the console output >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "\\vboxsvr\projects\chocolatey\chocolatey-EasyLogUSB\tools\EasyLogUSB.au3" >Exit code: 0 Time: 27.7
  9. Changed to WinGetHandle and still doesn't work. Here is the code now. #include <Constants.au3> Func Install()    ConsoleWrite("Install EasyLog" & @LF)    Local $handle = WinGetHandle("EasyLog USB Device Driver Installer")    ConsoleWrite("Install EasyLog2 " & $handle & @LF)    Local $click = ControlClick($handle, "", "[CLASS:Button; INSTANCE:1]", "Left", 1)    ConsoleWrite("Install EasyLog3 " & $click & @LF)    Local $close = WinClose($handle)    ConsoleWrite("Closing " & $close & @LF) EndFunc Install() ConsoleWrite("End of Install!" & @LF) Console output Install EasyLog Install EasyLog2 0x00220278 Install EasyLog3 1 Closing 1
  10. #include <Constants.au3> Func Install()    ConsoleWrite("Install EasyLog" & @LF)    Local $handle = WinWaitActive("EasyLog USB Device Driver Installer")    ConsoleWrite("Install EasyLog2 " & $handle & @LF)    Local $blah = ControlClick($handle, "", "[CLASS:Button; INSTANCE:1]", "Left", 1)    ConsoleWrite("Install EasyLog3 " & $blah & @LF)    WinClose($handle) EndFunc Install() ConsoleWrite("End of Install!" & @LF) Trying to get AutoIt to click "Install" on the EasyLogUSB Device Driver Installer window. Console displays: Install EasyLog Install EasyLog2 0x001B041E Install EasyLog3 1 End of Install! Windows Info confirms the Handle is 0x001B041E Window Info for the Control For the life of me I cannot figure out why the script is not working. Even $blah says the ControlClick succeeded. I've tried Send("{ENTER}") and MouseClick() those didn't work either. Any help would be appreciated. Thanks.
  11. Not 100% a silent install, but a work around: http://forums.stevengould.org/viewtopic.php?t=272 FOR the installation. What I need is the ability to customize the installation and I really don't want to mess around with hacking registry settings as is talked about in the above mentioned forum post. I'd rather walk the proper installation process and proper customization process. But off that, I'd like to learn how to find messages controls respond to and how to send those (potential) custom messages to controls. I'll add that I can manipulate the control using like this: ; Quick Setup Send("{TAB 6}") ; Standard CleanUp! Send("{UP 2}") But when I run the script a second time it moves the slider up another 2 entries. Which isn't want I want to have happen. I also have tried something like this, but it failed. ControlClick("CleanUp! Options", "Quick Setup", "[CLASS:Button; INSTANCE:13]", "primary", 1, 23, 58) Window Info Control Click Coords says "23, 58" but I'm not sure if Window Info is give me the coords relative to the control or window.
  12. I'm trying to automate the installation of CleanUp! There seems to be a custom control (image below) It looks like a slider but AutoIt's Window Info says it's a Button. Moving the slider the only thing that changes is the ControlClick Coords. I've tried Spyxx and the logs are so verbose (even with a minimal amount of logging) I get lost in file. That and I don't know what I'm looking for and if I found a custom message how to use it. So I'm here asking how I can automate this control. I would love to move the slider. I also would like to be able to get the value of the slider's current position. Any help would be appreciated. Thanks.
×
×
  • Create New...