Runnning ClickOnce应用程序作为计划任务 [英] Runnning ClickOnce app as Scheduled Task
问题描述
您好,
我想将ClickOnce(离线和在线)应用程序作为计划任务运行。应用程序安装,运行和ClickOnce更新按照公布的方式工作。当我尝试设置计划任务时,向导会询问程序的位置。
如何找到exe位置? ClickOnce更新后会改变吗?
谢谢
Tom
我使用点击一次申请,连续五年直接为我们的业务每日自动化申请。切换到运行2008 R2的新服务器,突然应用程序不会自动更新。在我最终
找到合适的解决方案之前,我尝试了各种各样的东西。这是非常愚蠢的,但它的工作原理:
1.在系统的任何位置创建批处理文件,并将其指向appref-ms文件...即("C:\ Users \%username%\ AppData \Roaming\Microsoft \ Windows \Start Menu \Programs \ Program Division Name \ Program Name.appref-ms" )
2.将计划任务指向批处理文件。
问题解决了。
Hello,
I would like to run a ClickOnce (offline and online) application as a Scheduled Task. The application installs, runs, and the ClickOnce updates work as advertised. When I try to setup the Scheduled Task the Wizard asks for the location of the program.
How do I find the exe location? Will it change after a ClickOnce update?
Thanks
Tom
I used click once applications for literally five years straight for a daily automated application for our business. Switched to a new server running 2008 R2, and suddenly the application wouldn't automatically update. I tried all kinds of stuff before I finally figured out a proper solution. It's extremely stupid, but it works:
1. Create a batch file anywhere on the system, and point it to the appref-ms file... i.e. ("C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Program Group Name\Program Name.appref-ms")
2. Point your scheduled task to the batch file.
Problem solved.
这篇关于Runnning ClickOnce应用程序作为计划任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!