GAPManCA Posted February 6, 2021 Share Posted February 6, 2021 I am trying to create a script to install PotPlayer. When I run my script the installer opens and after I count to 10 the AutoIT runtime disappears from the task manager but the screen does not change. Here is the script: Run("C:\Temp\PotPlayerSetup64.exe") WinWait("[CLASS:PotPlayerSetup64.exe]","",10) ;WinActivate("Installer Language","Please Select") ;WinWait("Intaller Languaage","Please select") Send("{ENTER}") If I remove the comments on the lines then the runtime does not go away. I am running this on Windows 10 v20H2. I have tried the 32bit and 64bit runtimes, I have installed the 32bit and 64bit of AutoIT, and also the beta version of the 64bit installer. I know that I am probably doing something stupid but I have no idea what!!! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 6, 2021 Moderators Share Posted February 6, 2021 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 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Nine Posted February 6, 2021 Share Posted February 6, 2021 1- You may want to install it silently (recommended). Look for a /s parameter on installer. 2- If there's no silent install, use au3info.exe tool on window installer and show us result here 3- When posting code, please use this tool. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Earthshine Posted February 6, 2021 Share Posted February 6, 2021 Use /S for silent https://www.manageengine.com/products/desktop-central/software-installation/silent_install_Potplayer-64-Bits.html My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
GAPManCA Posted February 6, 2021 Author Share Posted February 6, 2021 I am using Microsoft's MDT platform to create a build for my new computer so that I can rebuild it at will. The whole reason that I am using AutoIT to install this program is that the installation program does not have a /S option or any other option that I can use on the installer (I am not sure where ManageEngine got their info). Here is the Au3Info info: >>>> Window <<<< Title: Installer Language Class: #32770 Position: 1133, 621 Size: 294, 157 Style: 0x94C808CC ExStyle: 0x00010101 Handle: 0x00000000000D073C >>>> Control <<<< Class: Static Instance: 1 ClassnameNN: Static1 Name: Advanced (Class): [CLASS:Static; INSTANCE:1] ID: 1007 Text: Please select a language. Position: 68, 16 Size: 210, 44 ControlClick Coords: 36, 16 Style: 0x50020000 ExStyle: 0x00000004 Handle: 0x0000000000130682 >>>> Mouse <<<< Position: 1240, 679 Cursor ID: 0 Color: 0xF0F0F0 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< English OK Cancel Please select a language. >>>> Hidden Text <<<< Link to comment Share on other sites More sharing options...
Nine Posted February 6, 2021 Share Posted February 6, 2021 Based on the info tool, it should be : WinWait("[CLASS:#32770]","",10) “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
GAPManCA Posted February 6, 2021 Author Share Posted February 6, 2021 So I have modified my code to the following ; PotPlayer Installation Run("\\mdt01\DeploymentShare\Applications\PotPlayer\PotPlayerSetup64.exe") WinWaitActive("[CLASS:#32770]","Please select") ;Shutdown(0) Send("{ENTER}") The Send command is still not working. My test machines are a physical and virtual (Hyper-V) Windows 10 v20H2. I built a new virtual Win 10 Pro v1903 machine, did not connect it to my domain, and it still does not work. If I remove the comment on the Shutdown command then the computer logs off right when the language select screen appears during the install. If I hit enter on the keyboard of my computer then the installation does continue. Link to comment Share on other sites More sharing options...
Nine Posted February 6, 2021 Share Posted February 6, 2021 It greatly help knowing what is going with a script. So add some error handling and check the returned value of the functions. ConsoleWrite all of it. You could also try with #RequireAdmin “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
GAPManCA Posted February 6, 2021 Author Share Posted February 6, 2021 The #RequireAdmin fixed it. While I know that it is not completely turned off, I did set the UAC to the lowest setting. Merci Beaucoup!!!!!! Link to comment Share on other sites More sharing options...
Nine Posted February 6, 2021 Share Posted February 6, 2021 Pas de quoi ! Glad it is working for you. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
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