| |

VerySource

 Forgot password?
 Register
Search
View: 738|Reply: 8

How to use the progress bar to measure the progress of software installation?

[Copy link]

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Asia/Pacific Region

Post time: 2020-1-20 17:00:01
| Show all posts |Read mode
I now want to make a progress bar to measure the progress of the software installation. For example, I want to install Outlook, I made a framework, the front desk is a picture, introduces the current installation is outlook, and then uses a progress bar to display the current installation progress , And the background uses the command line to statically install Outlook, I want to ask, how can I achieve, when my Outlook is installed, the progress bar just reaches 100%?
Reply

Use magic Report

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-3-21 17:45:01
| Show all posts
There are experts to help!
Reply

Use magic Report

1

Threads

31

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-3-22 12:15:01
| Show all posts
When you call static installation, you don't know when the installation will be completed, and you won't know that the installation has reached more than 100%, so there is no way to accurately control the progress bar display.In this case, it is best not to display the percentage, but Just display a "loop display" like the search function of Window.
Reply

Use magic Report

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 United States

 Author| Post time: 2020-3-23 23:30:01
| Show all posts
thanks for the reply!
This is indeed the case. The framework I made is almost the same as the framework check during Windows installation. I have added a recyclable progress bar as you said. It is best to implement what I call the progress bar.
Reply

Use magic Report

0

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-27 20:45:01
| Show all posts
Calculate the percentage by the number of files!
Reply

Use magic Report

0

Threads

11

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-4-4 20:30:01
| Show all posts
Uh ~ up ~~~~~~~~
Reply

Use magic Report

0

Threads

27

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-4-5 16:00:01
| Show all posts
There is no way to calculate it very accurately. It can only be approximate. The installation procedure of Windows is the same. Sometimes it is 50% after waiting for a long time, but the next moment is already 100%. It is the number of installation files, and the other is the size of your program. Relatively speaking, it is more accurate to calculate according to the program size.
Reply

Use magic Report

1

Threads

23

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-4-8 12:15:01
| Show all posts
The percentage can be calculated according to the file size * 100 / total file size
This way you need to calculate the length of all files before installing (this is easy)
Reply

Use magic Report

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Asia/Pacific Region

 Author| Post time: 2020-5-17 18:15:01
| Show all posts
I have thought about and tried the method upstairs, I added a thread, the main thread is used to count, and then calculate the size of the file, the additional thread is used to install outlooK, this method can make it possible, but it is too expensive By the way, most of the time of the CPU is to calculate the file size, and the cup utilization rate is always high. So I don't intend to use this method.
Upstairs upstairs method, I think about it.
Thank you all for your help.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list