如何加快“验证申请要求”?窗口? [英] How to speed up the "Verifying Application Requirements" window?

查看:86
本文介绍了如何加快“验证申请要求”?窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ClickOnce部署C#应用程序。它仅在线可用,因此我无法禁用该应用程序,使其在每次启动时都无法检查更新。

I am using ClickOnce to deploy a C# application. It is available online only, so I cannot disable the application to check update every time it starts.

每次从url启动时,您都会看到一个验证应用程序需求窗口。这可以。但是,此窗口消失所需的时间差异很大。有时是即时的,有时则需要几秒钟。任何人都知道为什么会这样以及如何加快此验证过程吗?

Every time when it gets launched from url, you will see a "verifying application requirement" window. This is fine. However, the time it takes for this window to disappear varies greatly. Sometimes it's instant, sometimes it takes a few seconds. Anyone know why this is the case and how to speed up this verifying process?

我正在使用 process p = Runtime.getRuntime()。exec ( explorer myURL)启动应用程序。我不知道这是否重要还是有更好的方法? (我正在从Java应用程序启动该应用程序)

I am using process p = Runtime.getRuntime().exec("explorer myURL") to launch the application. I don't know if it matters or is there a better way? (I am launching this application from a Java application)

推荐答案

这个过程可能需要花费几秒钟的原因有两个执行。首先是,如果您的ClickOnce服务器繁忙,则可能需要半秒或更长时间才能响应 .application 文件的请求。

There are a couple of reasons why this process could take a few seconds to execute. The first is that if your ClickOnce server is busy, it could take it half a second or longer to respond to the request for the .application file.

此外, .application 文件必须由Microsoft Installer软件进行解析和检查。如果Microsoft Installer应用程序未加载到内存中,则您的PC将需要启动该应用程序并传入.application文件。

Additionally, the .application file has to be parsed and checked by the Microsoft Installer software. If the Microsoft Installer application isn't loaded into memory, your PC will need to start that application and pass in the .application file. This could also take a second or two.

最后,如果所有信息都是最新的,则将执行该应用程序。这可能需要一到两秒钟。每个步骤可能很短,但是如果您在每个步骤的最坏情况下运行,则应用程序可能需要6到10秒才能启动。如果ClickOnce应用程序服务器非常忙,甚至可能会变慢。

Finally, if all is up-to-date, the application will be executed. This could take one or two seconds. Each step may be rather short, but if you are operating in a "worst case" scenario for each step, the application could take 6-10 seconds to start. Possibly even slower if the ClickOnce application server is extremely busy.

这不是解决方案,但我非常有信心答案是您无法加快速度处理。最好的可能性是确保ClickOnce Web服务器处于快速的数据连接上,并且计算机的互联网连接也可靠且处于快速连接上。

This isn't a solution but I'm pretty confident that the answer is that you can not speed up this process. The best possibility is to be sure that your ClickOnce web server is on a speedy data connection and that your computers internet connection is reliable and on a fast connection as well.

这篇关于如何加快“验证申请要求”?窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆