How to speed up the "Check application requirements" window?

I am using ClickOnce to deploy a C # application. It is available only online, so I can not turn off the application to check for updates every time it starts.

Each time it starts from the URL, you will see the "Check application requirements" window. It is perfectly. However, the time required for this window to disappear varies greatly. Sometimes it is instant, sometimes it takes a few seconds. Does anyone know why this is and how to speed up this verification process?

I use process p = Runtime.getRuntime().exec("explorer myURL") to launch the application. I do not know if this matters or is there a better way? (I am running this application from a Java application)

+6
source share
1 answer

There are several reasons why this process may take several seconds. First, if your ClickOnce server is busy, it may take half a second or more to respond to a request for the .application file.

In addition, the .application file must be analyzed and verified by Microsoft Installer software. If the Microsoft Installer application is not loaded into memory, your computer will need to run this application and transfer the .application file. It may also take a second or two.

Finally, if everything is updated, the application will be executed. This may take one or two seconds. Each step may be quite short, but if you are working in a “worst case” scenario for each step, the application may take 6-10 seconds. Perhaps even slower if the ClickOnce application server is extremely busy.

This is not a solution, but I'm sure the answer is that you cannot speed up this process. The best opportunity is to make sure that your ClickOnce web server is connected to a high-speed data connection and that your computer’s Internet connection is reliable and fast.

+1
source

Source: https://habr.com/ru/post/904099/


All Articles