如何下载和执行文件每个月不可见的用户? [英] How to download and execute a file every month invisibly to the user?

查看:160
本文介绍了如何下载和执行文件每个月不可见的用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一种下载(从服务器)并且每月自动和不可见地向用户执行文件的方法。

I need a way to download ( from a server ) and execute a file every month automatically and invisibly to the user.

我该如何做? p>

How can I do that ?

推荐答案

不要盲目地检查日程表上的更新。而是检查用户何时启动您的应用程序(每次,每10次或每30天,但只有当应用程序使用时)。

Don't blindly check for updates on a schedule. Instead, check when the user starts your application (every time, or every 10th time, or every 30th day, but only when the app gets used).

用户讨厌当他们没有运行的应用程序正在占用资源。

Users hate it when an application they aren't running is taking up resources.

正如Steve Jessop指出的,偶尔再次检查应用程序是否正在运行长时间。

As Steve Jessop points out, it may also be good to occasionally check again if the app stays running for a long time.

安装预定任务仍然是要运行的方式,但将其设置为手动运行,而不是定期运行,那么您的应用程序可以触发它。应用程序可以触发任务,其执行权限高于应用程序本身(首先创建任务需要完全管理权限)。该任务还记住上次运行时间,这对于保持流量非常有用

Installing a "Scheduled Task" is still the way to go, but set it to run manually instead of on a periodic schedule, then your app can trigger it. An app can trigger a task that executes with higher permissions than the app itself (creating the task in the first place requires full admin rights). The task also remembers the last time it ran which is useful for keeping traffic down.

这篇关于如何下载和执行文件每个月不可见的用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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