iriash Posted July 5, 2021 Share Posted July 5, 2021 hi i am trying and i have been watching autoit technical forum. I would like to know how the percentage of a progress bar could be calculated while installing a third party application that I have on a server. The idea is from a client computer when clicking on a button that the application is installed (be careful, the application installs well and I have controlled that the progress bar grows for the duration of the process, but what does not occur to me or I do not know It is how the percentage of that program could be controlled, I have seen things that use such as dirgetsize ()) but I cannot see the solution well, is there a simple way and that the progress bar grows as the unattended installation is performed from a third party app? Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 5, 2021 Moderators Share Posted July 5, 2021 Moved to the appropriate forum. 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 July 5, 2021 Share Posted July 5, 2021 Yes, DirGetSize() is probably your best measure to calculate the progress of a silent installation, knowing in advance the actual installed size of the application. argumentum 1 “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...
iriash Posted July 12, 2021 Author Share Posted July 12, 2021 Ok, but that percentage I understand that it will only move the progress bar when the process finishes ... and what I am looking for would be for the progress bar to grow while the application is installing in silent mode, for example with libreoffice. Link to comment Share on other sites More sharing options...
Musashi Posted July 12, 2021 Share Posted July 12, 2021 (edited) 3 hours ago, iriash said: ... what I am looking for would be for the progress bar to grow while the application is installing in silent mode An external AutoIt script, that monitors the progress of a silent App installation, might be difficult to implement. As long as it's just about copying directory structures, then DirGetSize() is a good approach (as @Nine already suggested). For more extensive applications, however, additional processes usually take place. A typical example is the installation of a required "Microsoft Visual C++ Redistributable", which is called as a separate installer (inside the main installer). This makes it difficult to predict the progress. The best option would be, if the application already provides a progress indicator (e.g. via command line switch) for silent/unattended installation. Unfortunately, this is often not the case. Edited July 12, 2021 by Musashi "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
JockoDundee Posted July 12, 2021 Share Posted July 12, 2021 7 hours ago, Musashi said: As long as it's just about copying directory structures, then DirGetSize() is a good approach… Also one should keep in mind that directory size often experiences short periods of shrinkage as well as growth, as cleanup occurs and containers are discarded, leading to the unintuitive loss of progress shown in the bar. Code hard, but don’t hard code... 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